@@ -17,23 +17,23 @@ rules:
1717# analytics.arangodb.com
1818 - apiGroups : ["apiextensions.k8s.io"]
1919 resources : ["customresourcedefinitions"]
20- verbs : ["get", "list", "watch", "update"]
20+ verbs : [{{ if .Values.operator.enableCRDCreation }}"create", {{ end }} "get", "list", "watch", "update"]
2121 resourceNames :
2222 - " graphanalyticsengines.analytics.arangodb.com"
2323{{- end }}
2424{{ if .Values.operator.features.apps -}}
2525# apps.arangodb.com
2626 - apiGroups : ["apiextensions.k8s.io"]
2727 resources : ["customresourcedefinitions"]
28- verbs : ["get", "list", "watch", "update"]
28+ verbs : [{{ if .Values.operator.enableCRDCreation }}"create", {{ end }} "get", "list", "watch", "update"]
2929 resourceNames :
3030 - " arangojobs.apps.arangodb.com"
3131{{- end }}
3232{{ if .Values.operator.features.backup -}}
3333# backup.arangodb.com
3434 - apiGroups : ["apiextensions.k8s.io"]
3535 resources : ["customresourcedefinitions"]
36- verbs : ["get", "list", "watch", "update"]
36+ verbs : [{{ if .Values.operator.enableCRDCreation }}"create", {{ end }} "get", "list", "watch", "update"]
3737 resourceNames :
3838 - " arangobackuppolicies.backup.arangodb.com"
3939 - " arangobackups.backup.arangodb.com"
4242# database.arangodb.com
4343 - apiGroups : ["apiextensions.k8s.io"]
4444 resources : ["customresourcedefinitions"]
45- verbs : ["get", "list", "watch", "update"]
45+ verbs : [{{ if .Values.operator.enableCRDCreation }}"create", {{ end }} "get", "list", "watch", "update"]
4646 resourceNames :
4747 - " arangoclustersynchronizations.database.arangodb.com"
4848 - " arangodeployments.database.arangodb.com"
5353# ml.arangodb.com
5454 - apiGroups : ["apiextensions.k8s.io"]
5555 resources : ["customresourcedefinitions"]
56- verbs : ["get", "list", "watch", "update"]
56+ verbs : [{{ if .Values.operator.enableCRDCreation }}"create", {{ end }} "get", "list", "watch", "update"]
5757 resourceNames :
5858 - " arangomlbatchjobs.ml.arangodb.com"
5959 - " arangomlcronjobs.ml.arangodb.com"
@@ -64,23 +64,23 @@ rules:
6464# networking.arangodb.com
6565 - apiGroups : ["apiextensions.k8s.io"]
6666 resources : ["customresourcedefinitions"]
67- verbs : ["get", "list", "watch", "update"]
67+ verbs : [{{ if .Values.operator.enableCRDCreation }}"create", {{ end }} "get", "list", "watch", "update"]
6868 resourceNames :
6969 - " arangoroutes.networking.arangodb.com"
7070{{- end }}
7171{{ if .Values.operator.features.deploymentReplications -}}
7272# replication.database.arangodb.com
7373 - apiGroups : ["apiextensions.k8s.io"]
7474 resources : ["customresourcedefinitions"]
75- verbs : ["get", "list", "watch", "update"]
75+ verbs : [{{ if .Values.operator.enableCRDCreation }}"create", {{ end }} "get", "list", "watch", "update"]
7676 resourceNames :
7777 - " arangodeploymentreplications.replication.database.arangodb.com"
7878{{- end }}
7979{{ if .Values.operator.features.scheduler -}}
8080# scheduler.arangodb.com
8181 - apiGroups : ["apiextensions.k8s.io"]
8282 resources : ["customresourcedefinitions"]
83- verbs : ["get", "list", "watch", "update"]
83+ verbs : [{{ if .Values.operator.enableCRDCreation }}"create", {{ end }} "get", "list", "watch", "update"]
8484 resourceNames :
8585 - " arangoprofiles.scheduler.arangodb.com"
8686 - " arangoschedulerpods.scheduler.arangodb.com"
9292# platform.arangodb.com
9393 - apiGroups : ["apiextensions.k8s.io"]
9494 resources : ["customresourcedefinitions"]
95- verbs : ["get", "list", "watch", "update"]
95+ verbs : [{{ if .Values.operator.enableCRDCreation }}"create", {{ end }} "get", "list", "watch", "update"]
9696 resourceNames :
9797 - " arangoplatformcharts.platform.arangodb.com"
9898 - " arangoplatformstorages.platform.arangodb.com"
0 commit comments