* feat(argo-rollouts): Support extraArgs for controller and dashboard Adding support for additional arguments that are passed to the controller and the dashboard. Following the pattern of other Argo charts by re-using the name `extraArgs` for the value. Refs: https://github.com/argoproj/argo-helm/issues/969 Signed-off-by: Sebastian J <zeeman@zeeman.de> * Update charts/argo-rollouts/templates/controller/deployment.yaml Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Signed-off-by: Sebastian J <zeeman@zeeman.de> * Update charts/argo-rollouts/templates/dashboard/deployment.yaml Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Signed-off-by: Sebastian J <zeeman@zeeman.de> * PR comments Signed-off-by: Sebastian J <zeeman@zeeman.de> * Fix newly added parameters in README Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> * Fix changelog keyword Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
68 lines
2.4 KiB
YAML
68 lines
2.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "argo-rollouts.fullname" . }}
|
|
labels:
|
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
|
{{- include "argo-rollouts.selectorLabels" . | nindent 6 }}
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
{{- with .Values.podAnnotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "argo-rollouts.selectorLabels" . | nindent 8 }}
|
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
|
{{- range $key, $value := .Values.podLabels }}
|
|
{{ $key }}: {{ $value | quote }}
|
|
{{- end }}
|
|
spec:
|
|
{{- with .Values.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
serviceAccountName: {{ include "argo-rollouts.serviceAccountName" . }}
|
|
containers:
|
|
- image: "{{ .Values.controller.image.registry }}/{{ .Values.controller.image.repository }}:{{ default .Chart.AppVersion .Values.controller.image.tag }}"
|
|
args:
|
|
{{- if not .Values.clusterInstall }}
|
|
- --namespaced
|
|
{{- end }}
|
|
{{- with .Values.controller.extraArgs }}
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
|
|
name: argo-rollouts
|
|
ports:
|
|
- containerPort: 8090
|
|
name: metrics
|
|
livenessProbe:
|
|
{{- toYaml .Values.controller.livenessProbe | nindent 10 }}
|
|
readinessProbe:
|
|
{{- toYaml .Values.controller.readinessProbe | nindent 10 }}
|
|
securityContext:
|
|
{{- toYaml .Values.containerSecurityContext | nindent 10 }}
|
|
resources:
|
|
{{- toYaml .Values.controller.resources | nindent 10 }}
|
|
{{- if .Values.controller.nodeSelector }}
|
|
nodeSelector:
|
|
{{- toYaml .Values.controller.nodeSelector | nindent 8 }}
|
|
{{- end }}
|
|
securityContext:
|
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
|
{{- if .Values.controller.tolerations }}
|
|
tolerations:
|
|
{{- toYaml .Values.controller.tolerations | nindent 8 }}
|
|
{{- end }}
|
|
{{- if .Values.controller.affinity }}
|
|
affinity:
|
|
{{- toYaml .Values.controller.affinity | nindent 8 }}
|
|
{{- end }}
|