File tree Expand file tree Collapse file tree 5 files changed +16
-3
lines changed Expand file tree Collapse file tree 5 files changed +16
-3
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.17
4
4
5
5
require (
6
- github.com/aws-controllers-k8s/runtime v0.21.0
6
+ github.com/aws-controllers-k8s/runtime v0.22.1
7
7
github.com/aws/aws-sdk-go v1.44.93
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 @@ -90,8 +90,8 @@ github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPd
90
90
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 /go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs =
91
91
github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf /go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY =
92
92
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a /go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY =
93
- github.com/aws-controllers-k8s/runtime v0.21.0 h1:e9DK88QodwXMLz+QXPXk+8XNetVj4ij+puaVwn9uEVc =
94
- github.com/aws-controllers-k8s/runtime v0.21.0 /go.mod h1:k7z4qlf6aK1Kzd4ff49wzcyhDKHjWaUpqxrwgl4uS1o =
93
+ github.com/aws-controllers-k8s/runtime v0.22.1 h1:V5AKMBjGmq3sblGYrVYvi+6utW4CiIVotWA60Ym9T84 =
94
+ github.com/aws-controllers-k8s/runtime v0.22.1 /go.mod h1:k7z4qlf6aK1Kzd4ff49wzcyhDKHjWaUpqxrwgl4uS1o =
95
95
github.com/aws/aws-sdk-go v1.44.93 h1:hAgd9fuaptBatSft27/5eBMdcA8+cIMqo96/tZ6rKl8 =
96
96
github.com/aws/aws-sdk-go v1.44.93 /go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo =
97
97
github.com/benbjohnson/clock v1.0.3 /go.mod h1:bGMdMPoPVvcYyt1gHDf4J2KE153Yf9BuiUKYMaxlTDM =
Original file line number Diff line number Diff line change 55
55
- " $(ACK_RESOURCE_TAGS)"
56
56
- --watch-namespace
57
57
- " $(ACK_WATCH_NAMESPACE)"
58
+ - --deletion-policy
59
+ - " $(DELETION_POLICY)"
58
60
image : {{ .Values.image.repository }}:{{ .Values.image.tag }}
59
61
imagePullPolicy : {{ .Values.image.pullPolicy }}
60
62
name : controller
74
76
value : {{ .Values.aws.endpoint_url | quote }}
75
77
- name : ACK_WATCH_NAMESPACE
76
78
value : {{ include "watch-namespace" . }}
79
+ - name : DELETION_POLICY
80
+ value : {{ .Values.deletionPolicy }}
77
81
- name : ACK_ENABLE_DEVELOPMENT_LOGGING
78
82
value : {{ .Values.log.enable_development_logging | quote }}
79
83
- name : ACK_LOG_LEVEL
Original file line number Diff line number Diff line change 203
203
"pattern" : " (^$|^.*=.*$)"
204
204
}
205
205
},
206
+ "deletionPolicy" : {
207
+ "type" : " string" ,
208
+ "enum" : [" delete" , " retain" ]
209
+ },
206
210
"serviceAccount" : {
207
211
"description" : " ServiceAccount settings" ,
208
212
"properties" : {
Original file line number Diff line number Diff line change @@ -78,6 +78,11 @@ resourceTags:
78
78
- services.k8s.aws/controller-version=%CONTROLLER_SERVICE%-%CONTROLLER_VERSION%
79
79
- services.k8s.aws/namespace=%K8S_NAMESPACE%
80
80
81
+ # Set to "retain" to keep all AWS resources intact even after the K8s resources
82
+ # have been deleted. By default, the ACK controller will delete the AWS resource
83
+ # before the K8s resource is removed.
84
+ deletionPolicy: delete
85
+
81
86
serviceAccount:
82
87
# Specifies whether a service account should be created
83
88
create: true
You can’t perform that action at this time.
0 commit comments