From 0908ee3339016e3e9c68dc3692a496a8c2b6cb08 Mon Sep 17 00:00:00 2001 From: mpw Date: Mon, 3 Jul 2023 11:33:50 -0300 Subject: [PATCH 1/2] fix: hub-gw network policy selectorlabel --- charts/hub-gateway/Chart.yaml | 2 +- charts/hub-gateway/templates/netpol.yaml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/charts/hub-gateway/Chart.yaml b/charts/hub-gateway/Chart.yaml index d86c6e0..e224e2c 100644 --- a/charts/hub-gateway/Chart.yaml +++ b/charts/hub-gateway/Chart.yaml @@ -18,7 +18,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: '0.23.0' +version: 0.23.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/hub-gateway/templates/netpol.yaml b/charts/hub-gateway/templates/netpol.yaml index 5b4e569..65cb836 100644 --- a/charts/hub-gateway/templates/netpol.yaml +++ b/charts/hub-gateway/templates/netpol.yaml @@ -8,7 +8,9 @@ metadata: spec: podSelector: matchLabels: - {{- include "hub-gateway.selectorLabels" . | nindent 8 }} + app.kubernetes.io/name: apisix + ingress: + - to: {} egress: - to: - podSelector: @@ -120,4 +122,5 @@ spec: {{- end }} policyTypes: - Egress + - Ingress {{- end }} From e19af98467d0d5ce5872ec8b3647da4c072aaf38 Mon Sep 17 00:00:00 2001 From: mpw Date: Mon, 3 Jul 2023 11:36:05 -0300 Subject: [PATCH 2/2] update values --- charts/hub-gateway/values.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/charts/hub-gateway/values.yaml b/charts/hub-gateway/values.yaml index d0bb192..6498643 100644 --- a/charts/hub-gateway/values.yaml +++ b/charts/hub-gateway/values.yaml @@ -12,7 +12,7 @@ maintenanceMode: internalService: enabled: true -maintenanceMode: +networkPolicies: enabled: false routes: @@ -262,9 +262,6 @@ apisixPlugins: files: - plugins/org-lookup.lua -networkPolicies: - enabled: false - apisix: enabled: true fullnameOverride: apisix