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,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "n8n.fullname" . }}-webhook
name: {{ include "n8n-webhook.fullname" . }}
labels:
{{- include "n8n.labels" . | nindent 4 }}
spec:
@ -10,7 +10,7 @@ spec:
{{- end }}
selector:
matchLabels:
{{- include "n8n.selectorLabels" . | nindent 6 }}
{{- include "n8n-webhook.selectorLabels" . | nindent 6 }}
template:
metadata:
annotations:
@ -20,7 +20,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "n8n.selectorLabels" . | nindent 8 }}
{{- include "n8n-webhook.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.webhook.image.pullSecrets }}
imagePullSecrets: