Fix adding custom RBAC rules in zabbix helm chart

XMLWordPrintable

    • Type: Patch request
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: None
    • Component/s: Tools (J)
    • None

      The current version of zabbix helm chart supports adding custom RBAC rules, however this does not work. The problem is on this line: https://git.zabbix.com/projects/ZT/repos/kubernetes-helm/browse/templates/cluster-role.yaml#50

      The line should be changed to this to fix the issue with indentation: 

      {{ toYaml . | indent 2 }} 

       

      Steps to reproduce:

      1. add this to you value.yaml file: 
         rbac:
          create: true
          additionalRulesForClusterRole:
            - apiGroups: [ "" ]
              resources:
                - persistentvolumes
                - persistentvolumeclaims
              verbs: [ "get", "list" ]
      1. apply changes with `helm upgrade -f values.yaml`

      Result:
      Error: UPGRADE FAILED: YAML parse error on zabbix-helm-chrt/templates/cluster-role.yaml: error converting YAML to JSON: yaml: line 51: did not find expected key
      Expected:
      helm upgrade to finish successfully.

            Assignee:
            Zabbix Support Team
            Reporter:
            Jan Friedl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: