diff --git a/mysql-operator/templates/02-rbac.yaml b/mysql-operator/templates/02-rbac.yaml index 7ce9d85eb..07b6be5f6 100644 --- a/mysql-operator/templates/02-rbac.yaml +++ b/mysql-operator/templates/02-rbac.yaml @@ -31,7 +31,11 @@ rules: - apiGroups: [""] resources: ["secrets"] - verbs: ["create"] + verbs: + {{- if hasPrefix "0.1" .Values.image.tag }} + - get + {{- end}} + - create - apiGroups: [""] resources: