Fix collisions with labels and selectors
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
2022-11-16 17:28:54 +03:00
parent 7155146e00
commit b143ede98b
5 changed files with 60 additions and 17 deletions

View File

@ -1,9 +1,9 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "n8n.fullname" . }}-worker
name: {{ include "n8n-worker.fullname" . }}
labels:
{{- include "n8n.labels" . | nindent 4 }}
{{- include "n8n-worker.labels" . | nindent 4 }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
checksum/secret: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
@ -13,7 +13,7 @@ spec:
{{- end }}
selector:
matchLabels:
{{- include "n8n.selectorLabels" . | nindent 6 }}
{{- include "n8n-worker.selectorLabels" . | nindent 6 }}
template:
metadata:
annotations:
@ -23,7 +23,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "n8n.selectorLabels" . | nindent 8 }}
{{- include "n8n-worker.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.worker.image.pullSecrets }}
imagePullSecrets: