File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ type: application
11
11
12
12
# This is the chart version. This version number should be incremented each time you make changes
13
13
# to the chart and its templates, including the app version.
14
- version : 30.41 .0
14
+ version : 30.42 .0
15
15
16
16
# This is the version number of the application being deployed. This version number should be
17
17
# incremented each time you make changes to the application.
Original file line number Diff line number Diff line change 1
1
{{- if .Values.web.enabled -}}
2
- apiVersion : apps/v1
3
- kind : Deployment
2
+ apiVersion : {{ .Values.web.deployment.apiVersion }}
3
+ kind : {{ .Values.web.deployment.kind }}
4
4
metadata :
5
5
name : {{ template "posthog.fullname" . }}-web
6
6
labels : {{- include "_snippet-metadata-labels-common" . | nindent 4 }}
@@ -16,10 +16,22 @@ spec:
16
16
{{- end }}
17
17
18
18
strategy :
19
+ {{- if eq .Values.web.deployment.strategy "rollingUpdate" }}
19
20
type : RollingUpdate
20
21
rollingUpdate :
21
22
maxSurge : {{ .Values.web.rollout.maxSurge }}
22
23
maxUnavailable : {{ .Values.web.rollout.maxUnavailable }}
24
+ {{- else if eq .Values.web.deployment.strategy "canary" }}
25
+ canary :
26
+ steps :
27
+ - setWeight : 1
28
+ - pause : {duration: 60s}
29
+ - setWeight : 10
30
+ - pause : {duration: 60s}
31
+ - setWeight : 50
32
+ - pause : {duration: 60s}
33
+ - setWeight : 100
34
+ {{- end }}
23
35
24
36
template :
25
37
metadata :
Original file line number Diff line number Diff line change @@ -191,6 +191,11 @@ web:
191
191
192
192
image : {}
193
193
194
+ deployment :
195
+ apiVersion : apps/v1
196
+ kind : Deployment
197
+ strategy : rollingUpdate
198
+
194
199
podAnnotations :
195
200
# Uncomment these lines if you want Prometheus server to scrape metrics.
196
201
# prometheus.io/scrape: "true"
You can’t perform that action at this time.
0 commit comments