[bitnami/*] Use common macro to define RBAC apiVersion (#5585)

This commit is contained in:
Juan Ariza Toledano
2021-02-22 17:37:32 +01:00
committed by GitHub
parent 6d5ffcbc78
commit 71fb99f541
140 changed files with 223 additions and 223 deletions

View File

@@ -1,6 +1,6 @@
{{- if and .Values.rbac.create .Values.controller.rbac.create -}}
---
apiVersion: rbac.authorization.k8s.io/v1
apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
kind: ClusterRole
metadata:
name: {{ include "common.names.fullname" . }}-controller
@@ -45,7 +45,7 @@ rules:
- use
---
## Role bindings
apiVersion: rbac.authorization.k8s.io/v1
apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
kind: ClusterRoleBinding
metadata:
name: {{ include "common.names.fullname" . }}-controller