argocd-helm/charts/argo-events/templates/eventsource-controller-deployment.yaml
Paul Ayling 6ff8ee14f5
feat(argo-events): Update Argo Events to 1.5.0 (#995)
* Update image and tag for argo events deployments

Signed-off-by: Paul Ayling <paul.ayling@sky.uk>

* Update Nats images

Signed-off-by: Paul Ayling <paul.ayling@sky.uk>

* Update sensorImage and eventSourceImage

Signed-off-by: Paul Ayling <paul.ayling@sky.uk>

* Update Chart.yaml

Signed-off-by: Paul Ayling <paul.ayling@sky.uk>

* Place new argument at end to work with old images

Signed-off-by: Paul Ayling <paul.ayling@sky.uk>

* Update chart appversion and RBAC

Signed-off-by: Paul Ayling <paulayling.dev@gmail.com>

* Apply suggestions from code review

Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
Signed-off-by: Paul Ayling <paulayling.dev@gmail.com>

* Default to Chart AppVersion if tag does not exist

Signed-off-by: Paul Ayling <paulayling.dev@gmail.com>

* Update Chart AppVersion to v1.5.0

Signed-off-by: Paul Ayling <paulayling.dev@gmail.com>

* Update changelog

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>

Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
2021-10-27 17:13:40 +02:00

80 lines
3.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-{{ .Values.eventsourceController.name }}
namespace: {{ .Release.Namespace }}
labels:
app: {{ .Release.Name }}-{{ .Values.eventsourceController.name }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.eventsourceController.replicaCount }}
selector:
matchLabels:
app: {{ .Release.Name }}-{{ .Values.eventsourceController.name }}
release: {{ .Release.Name }}
template:
metadata:
labels:
app: {{ .Release.Name }}-{{ .Values.eventsourceController.name }}
release: {{ .Release.Name }}
{{- with .Values.eventsourceController.podLabels }}
{{- tpl (toYaml .) $ | nindent 8 }}
{{- end }}
{{- with .Values.eventsourceController.podAnnotations }}
annotations: {{- toYaml . | nindent 8 }}
{{- end }}
spec:
serviceAccountName: {{ .Values.serviceAccount }}
containers:
- name: {{ .Values.eventsourceController.name }}
image: "{{ .Values.registry }}/{{ .Values.eventsourceController.image }}:{{ .Values.eventsourceController.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.imagePullPolicy }}
args:
- eventsource-controller
{{- if .Values.singleNamespace }}
- --namespaced
{{- end }}
env:
{{- with .Values.eventsourceController.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: EVENTSOURCE_IMAGE
value: "{{ .Values.registry }}/{{ .Values.eventsourceController.eventsourceImage }}:{{ .Values.eventsourceController.tag | default .Chart.AppVersion }}"
livenessProbe:
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 3
periodSeconds: 3
readinessProbe:
httpGet:
path: /readyz
port: 8081
initialDelaySeconds: 3
periodSeconds: 3
resources: {{- toYaml .Values.eventsourceController.resources | nindent 12 }}
{{- with .Values.eventsourceController.priorityClassName }}
priorityClassName: {{ . | quote }}
{{- end }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.eventsourceController.nodeSelector }}
nodeSelector: {{ toYaml .Values.eventsourceController.nodeSelector | nindent 8 }}
{{- end }}
{{- if .Values.eventsourceController.tolerations }}
tolerations: {{ toYaml .Values.eventsourceController.tolerations | nindent 8 }}
{{- end }}
{{- if .Values.eventsourceController.affinity }}
affinity: {{ toYaml .Values.eventsourceController.affinity | nindent 8 }}
{{- end }}