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:
- add this to you value.yaml file:
rbac: create: true additionalRulesForClusterRole: - apiGroups: [ "" ] resources: - persistentvolumes - persistentvolumeclaims verbs: [ "get", "list" ]
- 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.
- part of
-
ZBXNEXT-10349 Out of the box Kubernetes template changes/improvements
-
- Ready for QA
-