feat: add imagePullSecrets, labels, annotations and update CRDs (#268)

* 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>
This commit is contained in:
Scott Cabrinha 2020-03-25 09:29:44 -07:00 committed by GitHub
parent 805371544d
commit 4f4c3af0c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 714 additions and 150 deletions

View file

@ -2,10 +2,19 @@ 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:
@ -15,6 +24,10 @@ spec:
labels:
app.kubernetes.io/name: {{ .Release.Name }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ .Values.serviceAccount.name }}
containers:
- command: