From 11ef935cf2a8d0c97a495195dd932497c06c3425 Mon Sep 17 00:00:00 2001 From: AmineAbri Date: Wed, 25 Sep 2024 21:21:32 +0100 Subject: [PATCH] fixes --- templates/networkpolicy.yaml | 2 +- templates/nginx-deployment.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/networkpolicy.yaml b/templates/networkpolicy.yaml index dd1328d..5e29854 100644 --- a/templates/networkpolicy.yaml +++ b/templates/networkpolicy.yaml @@ -8,7 +8,7 @@ spec: {{- if .Values.static.enabled }} role: wordpress {{- else }} - name: {{ .Values.name }}-nginx + role: nginx {{- end }} policyTypes: - Ingress diff --git a/templates/nginx-deployment.yaml b/templates/nginx-deployment.yaml index d1bd7f2..02d197c 100644 --- a/templates/nginx-deployment.yaml +++ b/templates/nginx-deployment.yaml @@ -17,6 +17,7 @@ spec: template: metadata: labels: + role: nginx app: {{ .Values.name }} {{- include "selectorLabels" . | nindent 8 }} spec: