* feat: add imagePullSecrets, labels, annotations and update CRDs * remove global value * keep templated labels * Update charts/argo-rollouts/Chart.yaml update minor version, not just patch Co-Authored-By: Eytan Hanig <eytanhanig@users.noreply.github.com> * Update charts/argo-rollouts/README.md Co-Authored-By: Eytan Hanig <eytanhanig@users.noreply.github.com> Co-authored-by: Eytan Hanig <eytanhanig@users.noreply.github.com>
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Release.Name }}
|
|
{{- if .Values.podAnnotations }}
|
|
annotations:
|
|
{{- range $key, $value := .Values.podAnnotations }}
|
|
{{ $key }}: {{ $value | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
labels:
|
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
|
app.kubernetes.io/name: {{ .Release.Name }}
|
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
|
{{- if .Values.podLabels }}
|
|
{{- toYaml .Values.podLabels | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: {{ .Release.Name }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: {{ .Release.Name }}
|
|
spec:
|
|
{{- with .Values.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
serviceAccountName: {{ .Values.serviceAccount.name }}
|
|
containers:
|
|
- command:
|
|
- "/bin/rollouts-controller"
|
|
image: "{{ .Values.controller.image.repository }}:{{ .Values.controller.image.tag }}"
|
|
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
|
|
name: {{ .Values.controller.name }}
|
|
volumeMounts:
|
|
- name: tmp
|
|
mountPath: /tmp
|
|
volumes:
|
|
- name: tmp
|
|
emptyDir: {}
|
|
strategy:
|
|
type: Recreate
|