diff --git a/charts/n8n/templates/deployment.webhooks.yaml b/charts/n8n/templates/deployment.webhooks.yaml index 3b7f22e..99977e3 100644 --- a/charts/n8n/templates/deployment.webhooks.yaml +++ b/charts/n8n/templates/deployment.webhooks.yaml @@ -5,6 +5,13 @@ metadata: name: {{ include "n8n.fullname" . }}-webhook labels: {{- include "n8n.labels" . | nindent 4 }} + {{- if .Values.deploymentLabels }} + {{- toYaml .Values.deploymentLabels | nindent 4 }} + {{- end }} + {{- if .Values.deploymentAnnotations }} + annotations: + {{- toYaml .Values.deploymentAnnotations | nindent 4 }} + {{- end }} spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.scaling.webhook.count }} diff --git a/charts/n8n/templates/deployment.worker.yaml b/charts/n8n/templates/deployment.worker.yaml index 0014d3e..a293ce6 100644 --- a/charts/n8n/templates/deployment.worker.yaml +++ b/charts/n8n/templates/deployment.worker.yaml @@ -5,6 +5,13 @@ metadata: name: {{ include "n8n.fullname" . }}-worker labels: {{- include "n8n.labels" . | nindent 4 }} + {{- if .Values.deploymentLabels }} + {{- toYaml .Values.deploymentLabels | nindent 4 }} + {{- end }} + {{- if .Values.deploymentAnnotations }} + annotations: + {{- toYaml .Values.deploymentAnnotations | nindent 4 }} + {{- end }} spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.scaling.worker.count }} diff --git a/charts/n8n/templates/deployment.yaml b/charts/n8n/templates/deployment.yaml index a458441..d418a12 100644 --- a/charts/n8n/templates/deployment.yaml +++ b/charts/n8n/templates/deployment.yaml @@ -4,6 +4,13 @@ metadata: name: {{ include "n8n.fullname" . }} labels: {{- include "n8n.labels" . | nindent 4 }} + {{- if .Values.deploymentLabels }} + {{- toYaml .Values.deploymentLabels | nindent 4 }} + {{- end }} + {{- if .Values.deploymentAnnotations }} + annotations: + {{- toYaml .Values.deploymentAnnotations | nindent 4 }} + {{- end }} spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} diff --git a/charts/n8n/values.yaml b/charts/n8n/values.yaml index 849ba2c..642a6ec 100644 --- a/charts/n8n/values.yaml +++ b/charts/n8n/values.yaml @@ -177,6 +177,18 @@ serviceAccount: # If not set and create is true, a name is generated using the fullname template name: "" +# Annotations to be implemented on Deployment +deploymentAnnotations: {} + # example: + # notification.monitor.io/slack: "true" + # fluxcd.io/automated: "true" + +# Labels to be implemented on Deployment +deploymentLabels: {} + # example: + # environment: production + # team: platform + podAnnotations: {} podLabels: {}