File tree Expand file tree Collapse file tree 5 files changed +11
-1
lines changed Expand file tree Collapse file tree 5 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module github.com/aws-controllers-k8s/code-generator
3
3
go 1.14
4
4
5
5
require (
6
- github.com/aws-controllers-k8s/runtime v0.1 .0
6
+ github.com/aws-controllers-k8s/runtime v0.2 .0
7
7
github.com/aws/aws-sdk-go v1.37.4
8
8
github.com/dlclark/regexp2 v1.4.0
9
9
// pin to v0.1.1 due to release problem with v0.1.2
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ func main() {
54
54
MetricsBindAddress: ackCfg.MetricsAddr,
55
55
LeaderElection: ackCfg.EnableLeaderElection,
56
56
LeaderElectionID: awsServiceAPIGroup,
57
+ Namespace: ackCfg.WatchNamespace,
57
58
} )
58
59
if err != nil {
59
60
setupLog.Error(
Original file line number Diff line number Diff line change 36
36
- "$(ACK_LOG_LEVEL)"
37
37
- --resource-tags
38
38
- "$(ACK_RESOURCE_TAGS)"
39
+ - --watch-namespace
40
+ - "$(ACK_WATCH_NAMESPACE)"
39
41
image: controller:latest
40
42
name: controller
41
43
ports:
Original file line number Diff line number Diff line change 47
47
- " $(ACK_LOG_LEVEL)"
48
48
- --resource-tags
49
49
- " $(ACK_RESOURCE_TAGS)"
50
+ - --watch-namespace
51
+ - " $(ACK_WATCH_NAMESPACE)"
50
52
image : {{ .Values.image.repository }}:{{ .Values.image.tag }}
51
53
name : controller
52
54
ports :
60
62
fieldPath : metadata.namespace
61
63
- name : AWS_REGION
62
64
value : {{ .Values.aws.region }}
65
+ - name : ACK_WATCH_NAMESPACE
66
+ value : {{ .Values.watchNamespace }}
63
67
- name : ACK_RESOURCE_TAGS
64
68
value : {{ join "," .Values.resourceTags | quote }}
65
69
terminationGracePeriodSeconds : 10
Original file line number Diff line number Diff line change 28
28
# If specified, use the AWS region for AWS API calls
29
29
region: ""
30
30
31
+ # If specified, the service controller will watch for object creation only in the provided namespace
32
+ watchNamespace: ""
33
+
31
34
resourceTags:
32
35
# Configures the ACK service controller to always set key/value pairs tags on resources that it manages.
33
36
- services.k8s.aws/managed=true
You can’t perform that action at this time.
0 commit comments