#--- #apiVersion: apps/v1 #kind: Deployment #metadata: # # TODO: add rssbridge # name: {{ include "common.names.fullname" . }} # labels: # {{- include "common.labels" . | nindent 4 }} # {{- with .Values.controller.labels }} # {{- toYaml . | nindent 4 }} # {{- end }} # {{- with .Values.controller.annotations }} # annotations: # {{- toYaml . | nindent 4 }} # {{- end }} #spec: # revisionHistoryLimit: {{ .Values.controller.revisionHistoryLimit }} # replicas: {{ .Values.controller.replicas }} # {{- $strategy := default "Recreate" .Values.controller.strategy }} # {{- if and (ne $strategy "Recreate") (ne $strategy "RollingUpdate") }} # {{- fail (printf "Not a valid strategy type for Deployment (%s)" $strategy) }} # {{- end }} # strategy: # type: {{ $strategy }} # {{- with .Values.controller.rollingUpdate }} # {{- if and (eq $strategy "RollingUpdate") (or .surge .unavailable) }} # rollingUpdate: # {{- with .unavailable }} # maxUnavailable: {{ . }} # {{- end }} # {{- with .surge }} # maxSurge: {{ . }} # {{- end }} # {{- end }} # {{- end }} # selector: # matchLabels: # # TODO: add rssbridge # {{- include "common.labels.selectorLabels" . | nindent 6 }} # template: # metadata: # {{- with .Values.podAnnotations }} # annotations: # {{- toYaml . | nindent 8 }} # {{- end }} # labels: # # TODO: add rssbridge # {{- include "common.labels.selectorLabels" . | nindent 8 }} # {{- with .Values.podLabels }} # {{- toYaml . | nindent 8 }} # {{- end }} # spec: # # TODO: add rssbridge #