ansible-community / awx-operator-helm

Helm chart for the AWX operator.
https://ansible-community.github.io/awx-operator-helm/
GNU General Public License v3.0
28 stars 8 forks source link

Fixed AWX labels #28

Closed miles-w-3 closed 5 days ago

miles-w-3 commented 5 days ago

Fixes oversight in #21 - corrects annotation key and makes templates able to handle multi-value map. Tested with the following values:

AWX:
  enabled: true
  annotations:
    foo: bar
    second: line
  labels:
    foo: baz
    second: line

Output:

# Source: awx-operator/templates/awx-deploy.yaml
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
  name: awx
  namespace: default
  labels:
    foo: baz
    second: line
  annotations:
    foo: bar
    second: line
spec:
  admin_user: admin
  security_context_settings:
    runAsGroup: 0
    runAsUser: 0
    fsGroup: 0
    fsGroupChangePolicy: OnRootMismatch