Fix adding custom RBAC rules in zabbix helm chart

XMLWordPrintable

    • Type: Patch request
    • Resolution: Unresolved
    • Priority: Major
    • None
    • Affects Version/s: 7.0.24, 7.4.8, 8.0.0alpha2
    • Component/s: Tools (J)
    • Support backlog
    • 1

      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:
            Evgenii Gordymov
            Reporter:
            Jan Friedl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 4h
                4h