diff --git a/templates/helm/templates/deployment.yaml.tpl b/templates/helm/templates/deployment.yaml.tpl index 1399388c..b9e15e98 100644 --- a/templates/helm/templates/deployment.yaml.tpl +++ b/templates/helm/templates/deployment.yaml.tpl @@ -91,6 +91,7 @@ spec: - --feature-gates - "$(FEATURE_GATES)" {{ "{{- end }}" }} + - {{ "--enable-carm={{ .Values.enableCARM }}" }} image: {{ "{{ .Values.image.repository }}:{{ .Values.image.tag }}" }} imagePullPolicy: {{ "{{ .Values.image.pullPolicy }}" }} name: controller diff --git a/templates/helm/values.schema.json b/templates/helm/values.schema.json index e656c749..c3f56a0c 100644 --- a/templates/helm/values.schema.json +++ b/templates/helm/values.schema.json @@ -263,6 +263,11 @@ }, "type": "object" }, + "enableCARM": { + "description": "Parameter to enable or disable cross account resource management.", + "type": "boolean", + "default": true + }, "serviceAccount": { "description": "ServiceAccount settings", "properties": { diff --git a/templates/helm/values.yaml.tpl b/templates/helm/values.yaml.tpl index 0c8f1ad8..1b09b2e1 100644 --- a/templates/helm/values.yaml.tpl +++ b/templates/helm/values.yaml.tpl @@ -169,6 +169,9 @@ leaderElection: # pod. namespace: "" +# Enable Cross Account Resource Management (default = true). Set this to false to disable cross account resource management. +enableCARM: true + # Configuration for feature gates. These are optional controller features that # can be individually enabled ("true") or disabled ("false") by adding key/value # pairs below.