Skip to content

Commit 832c17b

Browse files
committed
Change argument name to watchNamespace
1 parent 072ec01 commit 832c17b

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

templates/cmd/controller/main.go.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func main() {
5454
MetricsBindAddress: ackCfg.MetricsAddr,
5555
LeaderElection: ackCfg.EnableLeaderElection,
5656
LeaderElectionID: awsServiceAPIGroup,
57-
Namespace: ackCfg.ListenNamespace,
57+
Namespace: ackCfg.WatchNamespace,
5858
})
5959
if err != nil {
6060
setupLog.Error(

templates/config/controller/deployment.yaml.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ spec:
3636
- "$(ACK_LOG_LEVEL)"
3737
- --resource-tags
3838
- "$(ACK_RESOURCE_TAGS)"
39-
- --listen-namespace
40-
- "$(ACK_LISTEN_NAMESPACE)"
39+
- --watch-namespace
40+
- "$(ACK_WATCH_NAMESPACE)"
4141
image: controller:latest
4242
name: controller
4343
ports:

templates/helm/templates/deployment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ spec:
4747
- "$(ACK_LOG_LEVEL)"
4848
- --resource-tags
4949
- "$(ACK_RESOURCE_TAGS)"
50-
- --listen-namespace
51-
- "$(ACK_LISTEN_NAMESPACE)"
50+
- --watch-namespace
51+
- "$(ACK_WATCH_NAMESPACE)"
5252
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
5353
name: controller
5454
ports:
@@ -62,8 +62,8 @@ spec:
6262
fieldPath: metadata.namespace
6363
- name: AWS_REGION
6464
value: {{ .Values.aws.region }}
65-
- name: ACK_LISTEN_NAMESPACE
66-
value: {{ .Values.listenNamespace }}
65+
- name: ACK_WATCH_NAMESPACE
66+
value: {{ .Values.watchNamespace }}
6767
- name: ACK_RESOURCE_TAGS
6868
value: {{ join "," .Values.resourceTags | quote }}
6969
terminationGracePeriodSeconds: 10

templates/helm/values.yaml.tpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ aws:
2828
# If specified, use the AWS region for AWS API calls
2929
region: ""
3030

31-
listenNamespace: ""
31+
# If specified, the service controller will watch for object creation only in the provided namespace
32+
watchNamespace: ""
3233

3334
resourceTags:
3435
# Configures the ACK service controller to always set key/value pairs tags on resources that it manages.

0 commit comments

Comments
 (0)