Skip to content

Commit 8e7cbac

Browse files
authored
feat: reads enableCARM value and supplies to controller (#622)
fixes aws-controllers-k8s/community#2625 **Description of changes:** - reads enableCARM value from values.json - supplies arg to controller to disable CARM when set to false By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 9e29f01 commit 8e7cbac

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

templates/helm/templates/deployment.yaml.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ spec:
9191
- --feature-gates
9292
- "$(FEATURE_GATES)"
9393
{{ "{{- end }}" }}
94+
- {{ "--enable-carm={{ .Values.enableCARM }}" }}
9495
image: {{ "{{ .Values.image.repository }}:{{ .Values.image.tag }}" }}
9596
imagePullPolicy: {{ "{{ .Values.image.pullPolicy }}" }}
9697
name: controller

templates/helm/values.schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,11 @@
263263
},
264264
"type": "object"
265265
},
266+
"enableCARM": {
267+
"description": "Parameter to enable or disable cross account resource management.",
268+
"type": "boolean",
269+
"default": true
270+
},
266271
"serviceAccount": {
267272
"description": "ServiceAccount settings",
268273
"properties": {

templates/helm/values.yaml.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ leaderElection:
169169
# pod.
170170
namespace: ""
171171

172+
# Enable Cross Account Resource Management (default = true). Set this to false to disable cross account resource management.
173+
enableCARM: true
174+
172175
# Configuration for feature gates. These are optional controller features that
173176
# can be individually enabled ("true") or disabled ("false") by adding key/value
174177
# pairs below.

0 commit comments

Comments
 (0)