awx-operator
awx-operator copied to clipboard
Add 'labels' to the Helm chart to simplify the declaration of labels
SUMMARY
Add labels to the Helm chart to simplify the declaration of custom labels.
ISSUE TYPE
- New or Enhanced Feature
ADDITIONAL INFORMATION
- This change allows the labels defined in the
additional_labelsparameters to be specified in the same values.xml file. - These labels are also added to the awx-operator-controller-manager pod. Useful when labels are used to control pod creation based on label rules.
Sample of values.xml
AWX:
enabled: true
labels:
my/team: "foo"
my/service: "bar"
my/do-not-inherit: "yes"
name: awx
spec:
additional_labels:
- my/team
- my/service
Resulting ressources: Definitions are truncated to make this easier to read.
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
name: awx-demo
labels:
my/team: foo
my/service: bar
my/do-not-inherit: yes
spec:
additional_labels:
- my/team
- my/service
apiVersion: apps/v1
kind: Deployment
metadata:
name: awx-operator-controller-manager
labels:
control-plane: controller-manager
helm.sh/chart: awx-operator
my/team: foo
my/service: bar
my/do-not-inherit: yes
spec:
template:
metadata:
labels:
control-plane: controller-manager
helm.sh/chart: awx-operator
my/team: foo
my/service: bar
my/do-not-inherit: yes
Can someone from the community who uses helm give this a try?
@sbilque thank you so much for your contribution! Would you mind rebasing and resolving the merge conflicts? Thank you for your time!
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code