File tree Expand file tree Collapse file tree 8 files changed +69
-10
lines changed Expand file tree Collapse file tree 8 files changed +69
-10
lines changed Original file line number Diff line number Diff line change 3
3
4
4
This file documents all notable changes to [ Gravitee.io API Management 3.x] ( https://github.com/gravitee-io/helm-charts/tree/master/apim/3.x ) Helm Chart. The release numbering uses [ semantic versioning] ( http://semver.org ) .
5
5
6
+ ### 3.20.12
7
+
8
+ - Add support for managed Service Account for each product
9
+
10
+ ### 3.19.17
11
+
12
+ - Add support for managed Service Account for each product
13
+
14
+ ### 3.18.28
15
+
16
+ - Add support for managed Service Account for each product
17
+
6
18
### 3.20.11
7
19
8
20
- Change APIM charts versioning
Original file line number Diff line number Diff line change 1
1
apiVersion : v1
2
2
name : apim
3
- # When the version: 3.20.11
4
3
# Also update CHANGELOG.md
5
- version : 3.20.11
4
+ version : 3.20.12
6
5
appVersion : 3.20.x-latest
7
6
description : Official Gravitee.io Helm chart for API Management
8
7
home : https://gravitee.io
@@ -20,5 +19,4 @@ annotations:
20
19
# List of changes for the release in artifacthub.io
21
20
# https://artifacthub.io/packages/helm/graviteeio/apim?modal=changelog
22
21
artifacthub.io/changes : |
23
- - Change the version 3.20.11
24
- - Remove duplicate annotation in ui deployment
22
+ - Add support for managed Service Account for each product
Original file line number Diff line number Diff line change 86
86
{{- end }}
87
87
{{- end }}
88
88
spec :
89
- {{- if $serviceAccount }}
89
+ {{- if not (eq .Values.api.deployment.serviceAccount "") }}
90
+ serviceAccountName : {{ .Values.api.deployment.serviceAccount }}
91
+ {{- else if $serviceAccount }}
90
92
serviceAccountName : {{ $serviceAccount }}
91
- {{ end }}
93
+ {{- end }}
92
94
affinity : {{ toYaml .Values.api.deployment.affinity | nindent 8 }}
93
95
nodeSelector : {{ toYaml .Values.api.deployment.nodeSelector | nindent 8 }}
94
96
topologySpreadConstraints : {{ toYaml .Values.api.deployment.topologySpreadConstraints | nindent 8 }}
Original file line number Diff line number Diff line change 67
67
{{- end }}
68
68
spec :
69
69
restartPolicy : Never
70
- {{- if $serviceAccount }}
70
+ {{- if not (eq .Values.api.deployment.serviceAccount "") }}
71
+ serviceAccountName : {{ .Values.api.deployment.serviceAccount }}
72
+ {{- else if $serviceAccount }}
71
73
serviceAccountName : {{ $serviceAccount }}
72
- {{ end }}
74
+ {{- end }}
73
75
affinity : {{ toYaml .Values.api.deployment.affinity | nindent 8 }}
74
76
nodeSelector : {{ toYaml .Values.api.deployment.nodeSelector | nindent 8 }}
75
77
topologySpreadConstraints : {{ toYaml .Values.api.deployment.topologySpreadConstraints | nindent 8 }}
Original file line number Diff line number Diff line change 83
83
{{- end }}
84
84
{{- end }}
85
85
spec :
86
- {{- if $serviceAccount }}
86
+ {{- if not (eq .Values.gateway.deployment.serviceAccount "") }}
87
+ serviceAccountName : {{ .Values.gateway.deployment.serviceAccount }}
88
+ {{- else if $serviceAccount }}
87
89
serviceAccountName : {{ $serviceAccount }}
88
- {{ end }}
90
+ {{- end }}
89
91
affinity : {{ toYaml .Values.gateway.deployment.affinity | nindent 8 }}
90
92
nodeSelector : {{ toYaml .Values.gateway.deployment.nodeSelector | nindent 8 }}
91
93
topologySpreadConstraints : {{ toYaml .Values.gateway.deployment.topologySpreadConstraints | nindent 8 }}
Original file line number Diff line number Diff line change @@ -148,6 +148,24 @@ tests:
148
148
path : spec.template.spec.serviceAccountName
149
149
value : " test-sa"
150
150
151
+ - it : Deploy with component specific ServiceAccount
152
+ template : api/api-deployment.yaml
153
+ set :
154
+ apim :
155
+ managedServiceAccount : true
156
+ serviceAccount : " test-sa"
157
+ api :
158
+ deployment :
159
+ serviceAccount : " apim-api"
160
+ asserts :
161
+ - hasDocuments :
162
+ count : 1
163
+ - isKind :
164
+ of : Deployment
165
+ - equal :
166
+ path : spec.template.spec.serviceAccountName
167
+ value : " apim-api"
168
+
151
169
- it : Deploy with long api name
152
170
template : api/api-deployment.yaml
153
171
set :
Original file line number Diff line number Diff line change @@ -174,6 +174,24 @@ tests:
174
174
path : spec.template.spec.serviceAccountName
175
175
value : " test-sa"
176
176
177
+ - it : Deploy with component specific ServiceAccount
178
+ template : gateway/gateway-deployment.yaml
179
+ set :
180
+ apim :
181
+ managedServiceAccount : true
182
+ serviceAccount : " test-sa"
183
+ gateway :
184
+ deployment :
185
+ serviceAccount : " apim-gateway"
186
+ asserts :
187
+ - hasDocuments :
188
+ count : 1
189
+ - isKind :
190
+ of : Deployment
191
+ - equal :
192
+ path : spec.template.spec.serviceAccountName
193
+ value : " apim-gateway"
194
+
177
195
- it : Deploy with long api name
178
196
template : gateway/gateway-deployment.yaml
179
197
set :
Original file line number Diff line number Diff line change 11
11
managedServiceAccount : true
12
12
13
13
# Custom service account override that the pod will use
14
+ # if customer provides a dedicated SA for any component, that will have the priority
14
15
serviceAccount : " "
15
16
16
17
roleRules :
413
414
securityContext :
414
415
runAsUser : 1001
415
416
runAsNonRoot : true
417
+
418
+ # Dedicated Service account provided for this component
419
+ serviceAccount : " "
416
420
strategy :
417
421
type : RollingUpdate
418
422
rollingUpdate :
@@ -729,6 +733,9 @@ gateway:
729
733
securityContext :
730
734
runAsUser : 1001
731
735
runAsNonRoot : true
736
+
737
+ # Dedicated Service account provided for this component
738
+ serviceAccount : " "
732
739
strategy :
733
740
type : RollingUpdate
734
741
rollingUpdate :
You can’t perform that action at this time.
0 commit comments