File tree 7 files changed +39
-8
lines changed
7 files changed +39
-8
lines changed Original file line number Diff line number Diff line change 1
1
ack_generate_info :
2
- build_date : " 2024-07-22T18:52:07Z "
3
- build_hash : f0a0f42d507c550c2b063a192b3b43e4522bdd9c
4
- go_version : go1.22.4
5
- version : v0.35 .0
2
+ build_date : " 2024-08-06T02:41:54Z "
3
+ build_hash : 587b90dc860e91ee9a763e9e3bc4d3f1b2fbddb7
4
+ go_version : go1.22.5
5
+ version : v0.36 .0
6
6
api_directory_checksum : 32e6af78d724e0e9858849c91d8810441fac881b
7
7
api_version : v1alpha1
8
8
aws_sdk_go_version : v1.55.0
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ go 1.22.0
5
5
toolchain go1.22.2
6
6
7
7
require (
8
- github.com/aws-controllers-k8s/runtime v0.35 .0
8
+ github.com/aws-controllers-k8s/runtime v0.36 .0
9
9
github.com/aws/aws-sdk-go v1.55.0
10
10
github.com/spf13/pflag v1.0.5
11
11
k8s.io/apimachinery v0.30.3
Original file line number Diff line number Diff line change 1
- github.com/aws-controllers-k8s/runtime v0.35 .0 h1:kLRLFOAcaFJRv/aEiWtb0qhlxFpwvmx6shCWNc1Tuas =
2
- github.com/aws-controllers-k8s/runtime v0.35 .0 /go.mod h1:gI2pWb20UGLP2SnHf1a1VzTd7iVVy+/I9VAzT0Y+Dew =
1
+ github.com/aws-controllers-k8s/runtime v0.36 .0 h1:XEMVGfUwsT9QMShihuCLHlape+daJWyYtXj45s/iJiU =
2
+ github.com/aws-controllers-k8s/runtime v0.36 .0 /go.mod h1:gI2pWb20UGLP2SnHf1a1VzTd7iVVy+/I9VAzT0Y+Dew =
3
3
github.com/aws/aws-sdk-go v1.55.0 h1:hVALKPjXz33kP1R9nTyJpUK7qF59dO2mleQxUW9mCVE =
4
4
github.com/aws/aws-sdk-go v1.55.0 /go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU =
5
5
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM =
Original file line number Diff line number Diff line change @@ -117,4 +117,13 @@ rules:
117
117
- get
118
118
- patch
119
119
- update
120
- { {- end } }
120
+ { {- end } }
121
+
122
+ { {/* Convert k/v map to string like: " key1=value1,key2=value2,..." */} }
123
+ { {- define " ack-apigateway-controller.feature-gates" -} }
124
+ { {- $list := list -} }
125
+ { {- range $k , $v := .Values.featureGates -} }
126
+ { {- $list = append $list (printf " %s=%s" $k ( $v | toString)) -} }
127
+ { {- end -} }
128
+ { { join " ," $list } }
129
+ { {- end -} }
Original file line number Diff line number Diff line change 79
79
{{- range $key, $value := .Values.reconcile.resourceMaxConcurrentSyncs }}
80
80
- --reconcile-resource-max-concurrent-syncs
81
81
- " $(RECONCILE_RESOURCE_MAX_CONCURRENT_SYNCS_{{ $key | upper }})"
82
+ {{- end }}
83
+ {{- if .Values.featureGates}}
84
+ - --feature-gates
85
+ - " $(FEATURE_GATES)"
82
86
{{- end }}
83
87
image : {{ .Values.image.repository }}:{{ .Values.image.tag }}
84
88
imagePullPolicy : {{ .Values.image.pullPolicy }}
@@ -122,6 +126,10 @@ spec:
122
126
{{- range $key, $value := .Values.reconcile.resourceMaxConcurrentSyncs }}
123
127
- name : RECONCILE_RESOURCE_MAX_CONCURRENT_SYNCS_{{ $key | upper }}
124
128
value : {{ $key }}={{ $value }}
129
+ {{- end }}
130
+ {{- if .Values.featureGates}}
131
+ - name : FEATURE_GATES
132
+ value : {{ include "ack-apigateway-controller.feature-gates" . }}
125
133
{{- end }}
126
134
{{- if .Values.aws.credentials.secretName }}
127
135
- name : AWS_SHARED_CREDENTIALS_FILE
Original file line number Diff line number Diff line change 268
268
"type" : " object"
269
269
}
270
270
},
271
+ "featureGates" : {
272
+ "description" : " Feature gates settings" ,
273
+ "type" : " object" ,
274
+ "additionalProperties" : {
275
+ "type" : " boolean"
276
+ }
277
+ },
271
278
"required" : [
272
279
" image" ,
273
280
" deployment" ,
Original file line number Diff line number Diff line change @@ -153,3 +153,10 @@ leaderElection:
153
153
# will attempt to use the namespace of the service account mounted to the Controller
154
154
# pod.
155
155
namespace : " "
156
+
157
+ # Configuration for feature gates. These are optional controller features that
158
+ # can be individually enabled ("true") or disabled ("false") by adding key/value
159
+ # pairs below.
160
+ featureGates : {}
161
+ # featureGate1: true
162
+ # featureGate2: false
You can’t perform that action at this time.
0 commit comments