|
@@ -1,12 +1,14 @@
|
|
|
apiVersion: apps/v1
|
|
apiVersion: apps/v1
|
|
|
-kind: Deployment
|
|
|
|
|
|
|
+kind: {{ .Values.workloadType }}
|
|
|
metadata:
|
|
metadata:
|
|
|
name: {{ include "ix-chart.fullname" . }}
|
|
name: {{ include "ix-chart.fullname" . }}
|
|
|
labels:
|
|
labels:
|
|
|
{{- include "ix-chart.labels" . | nindent 4 }}
|
|
{{- include "ix-chart.labels" . | nindent 4 }}
|
|
|
spec:
|
|
spec:
|
|
|
|
|
+ {{- if eq .Values.workloadType "Deployment" }}
|
|
|
strategy:
|
|
strategy:
|
|
|
type: {{ .Values.updateStrategy }}
|
|
type: {{ .Values.updateStrategy }}
|
|
|
|
|
+ {{- end }}
|
|
|
selector:
|
|
selector:
|
|
|
matchLabels:
|
|
matchLabels:
|
|
|
{{- include "ix-chart.selectorLabels" . | nindent 6 }}
|
|
{{- include "ix-chart.selectorLabels" . | nindent 6 }}
|