From caa6824a7e85b0f1b68dc14f079d7e0740dacdd1 Mon Sep 17 00:00:00 2001 From: lgomez2 <lgomez2g@gmail.com> Date: Thu, 16 Jan 2025 12:38:55 -0500 Subject: [PATCH 01/18] testing pulling in values from umbrella --- chart/templates/_helpers.tpl | 1 + 1 file changed, 1 insertion(+) diff --git a/chart/templates/_helpers.tpl b/chart/templates/_helpers.tpl index d8532943..ece536e5 100644 --- a/chart/templates/_helpers.tpl +++ b/chart/templates/_helpers.tpl @@ -41,6 +41,7 @@ app: {{ include "kiali-operator.name" . }} {{- if .Chart.AppVersion }} version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +apptest: {{ .Values.networkPolicies.istioSelector }} {{- end }} app.kubernetes.io/part-of: "kiali-operator" {{- end }} -- GitLab From 393e7f45a9deca9a1f8cb764e9320e77f024b61a Mon Sep 17 00:00:00 2001 From: lgomez2 <lgomez2g@gmail.com> Date: Thu, 16 Jan 2025 14:50:59 -0500 Subject: [PATCH 02/18] test --- chart/templates/_helpers.tpl | 4 +++- .../bigbang/networkpolicies/ingress-istio-ingressgateway.yml | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/chart/templates/_helpers.tpl b/chart/templates/_helpers.tpl index ece536e5..870aae0b 100644 --- a/chart/templates/_helpers.tpl +++ b/chart/templates/_helpers.tpl @@ -41,7 +41,9 @@ app: {{ include "kiali-operator.name" . }} {{- if .Chart.AppVersion }} version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -apptest: {{ .Values.networkPolicies.istioSelector }} +{{- if .Values.networkPolicies.istioSelector.enabled }} +test2: {{ .Values.networkPolicies.istioSelector.name }} +{{- end }} {{- end }} app.kubernetes.io/part-of: "kiali-operator" {{- end }} diff --git a/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml b/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml index 421314b6..c83b9ca8 100644 --- a/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml +++ b/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml @@ -12,7 +12,11 @@ spec: - from: - namespaceSelector: matchLabels: + {{- if and .Values.networkPolicies.enabled .Values.networkPolicies.istioSelector.enabled }} + app.kubernetes.io/name: {{ .Values.networkPolicies.istioSelector.name }} + {{- else }} app.kubernetes.io/name: istio-controlplane + {{- end }} podSelector: matchLabels: {{- toYaml .Values.networkPolicies.ingressLabels | nindent 12}} -- GitLab From 9e6c847ee9d9a234ce51ff5cddde42ce896a60db Mon Sep 17 00:00:00 2001 From: lgomez2 <lgomez2g@gmail.com> Date: Tue, 21 Jan 2025 09:49:26 -0500 Subject: [PATCH 03/18] updated Kiali egress policy --- chart/templates/bigbang/networkpolicies/egress-istiod.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chart/templates/bigbang/networkpolicies/egress-istiod.yml b/chart/templates/bigbang/networkpolicies/egress-istiod.yml index aca97d0e..5b7a21aa 100644 --- a/chart/templates/bigbang/networkpolicies/egress-istiod.yml +++ b/chart/templates/bigbang/networkpolicies/egress-istiod.yml @@ -12,7 +12,11 @@ spec: - to: - namespaceSelector: matchLabels: + {{- if and .Values.networkPolicies.enabled .Values.networkPolicies.istioSelector.enabled }} + app.kubernetes.io/name: {{ .Values.networkPolicies.istioSelector.name }} + {{- else }} app.kubernetes.io/name: istio-controlplane + {{- end }} podSelector: matchLabels: app: istiod -- GitLab From d16d3240277a199b8853ec09b443692d15ee3979 Mon Sep 17 00:00:00 2001 From: lgomez2 <lgomez2g@gmail.com> Date: Thu, 23 Jan 2025 09:39:23 -0500 Subject: [PATCH 04/18] Testing dynamic Namespace Selector labels from BB Umbrella helpers.tpl --- chart/templates/_helpers.tpl | 4 +--- chart/templates/bigbang/networkpolicies/egress-istiod.yml | 6 +----- .../networkpolicies/ingress-istio-ingressgateway.yml | 6 +----- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/chart/templates/_helpers.tpl b/chart/templates/_helpers.tpl index 870aae0b..43a3aa6b 100644 --- a/chart/templates/_helpers.tpl +++ b/chart/templates/_helpers.tpl @@ -41,9 +41,7 @@ app: {{ include "kiali-operator.name" . }} {{- if .Chart.AppVersion }} version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- if .Values.networkPolicies.istioSelector.enabled }} -test2: {{ .Values.networkPolicies.istioSelector.name }} -{{- end }} +istio3NSselector: {{ .Values.istioNamespaceSelector | default "no-value-set" }} {{- end }} app.kubernetes.io/part-of: "kiali-operator" {{- end }} diff --git a/chart/templates/bigbang/networkpolicies/egress-istiod.yml b/chart/templates/bigbang/networkpolicies/egress-istiod.yml index 5b7a21aa..b6f7a7bf 100644 --- a/chart/templates/bigbang/networkpolicies/egress-istiod.yml +++ b/chart/templates/bigbang/networkpolicies/egress-istiod.yml @@ -12,11 +12,7 @@ spec: - to: - namespaceSelector: matchLabels: - {{- if and .Values.networkPolicies.enabled .Values.networkPolicies.istioSelector.enabled }} - app.kubernetes.io/name: {{ .Values.networkPolicies.istioSelector.name }} - {{- else }} - app.kubernetes.io/name: istio-controlplane - {{- end }} + app.kubernetes.io/name: {{ .Values.istioNamespaceSelector | default "istio-controlplane" }} podSelector: matchLabels: app: istiod diff --git a/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml b/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml index c83b9ca8..0db84dbd 100644 --- a/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml +++ b/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml @@ -12,11 +12,7 @@ spec: - from: - namespaceSelector: matchLabels: - {{- if and .Values.networkPolicies.enabled .Values.networkPolicies.istioSelector.enabled }} - app.kubernetes.io/name: {{ .Values.networkPolicies.istioSelector.name }} - {{- else }} - app.kubernetes.io/name: istio-controlplane - {{- end }} + app.kubernetes.io/name: {{ .Values.istioNamespaceSelector | default "istio-controlplane" }} podSelector: matchLabels: {{- toYaml .Values.networkPolicies.ingressLabels | nindent 12}} -- GitLab From 9c7315b6f4575d8adad23a5343b9692d179d426f Mon Sep 17 00:00:00 2001 From: lgomez2 <lgomez2g@gmail.com> Date: Thu, 23 Jan 2025 10:14:57 -0500 Subject: [PATCH 05/18] test --- chart/templates/_helpers.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/templates/_helpers.tpl b/chart/templates/_helpers.tpl index 43a3aa6b..da9b2270 100644 --- a/chart/templates/_helpers.tpl +++ b/chart/templates/_helpers.tpl @@ -41,7 +41,7 @@ app: {{ include "kiali-operator.name" . }} {{- if .Chart.AppVersion }} version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -istio3NSselector: {{ .Values.istioNamespaceSelector | default "no-value-set" }} +TEST-ISTIO3SELECTOR-LABEL: {{ .Values.istioNamespaceSelector }} {{- end }} app.kubernetes.io/part-of: "kiali-operator" {{- end }} -- GitLab From 7289778f75089beb3f2a25e13de7c1cb0a825f80 Mon Sep 17 00:00:00 2001 From: lgomez2 <lgomez2g@gmail.com> Date: Thu, 23 Jan 2025 11:00:46 -0500 Subject: [PATCH 06/18] Fixed values path typo --- chart/templates/_helpers.tpl | 2 +- chart/templates/bigbang/networkpolicies/egress-istiod.yml | 2 +- .../bigbang/networkpolicies/ingress-istio-ingressgateway.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chart/templates/_helpers.tpl b/chart/templates/_helpers.tpl index da9b2270..34cc187f 100644 --- a/chart/templates/_helpers.tpl +++ b/chart/templates/_helpers.tpl @@ -41,7 +41,7 @@ app: {{ include "kiali-operator.name" . }} {{- if .Chart.AppVersion }} version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -TEST-ISTIO3SELECTOR-LABEL: {{ .Values.istioNamespaceSelector }} +TEST-ISTIO3SELECTOR-LABEL: {{ .Values.networkPolicies.istioNamespaceSelector | default "no-value-set" }} {{- end }} app.kubernetes.io/part-of: "kiali-operator" {{- end }} diff --git a/chart/templates/bigbang/networkpolicies/egress-istiod.yml b/chart/templates/bigbang/networkpolicies/egress-istiod.yml index b6f7a7bf..7abc5abe 100644 --- a/chart/templates/bigbang/networkpolicies/egress-istiod.yml +++ b/chart/templates/bigbang/networkpolicies/egress-istiod.yml @@ -12,7 +12,7 @@ spec: - to: - namespaceSelector: matchLabels: - app.kubernetes.io/name: {{ .Values.istioNamespaceSelector | default "istio-controlplane" }} + app.kubernetes.io/name: {{ .Values.networkPolicies.istioNamespaceSelector | default "no-value-set"}} podSelector: matchLabels: app: istiod diff --git a/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml b/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml index 0db84dbd..b37ba0b5 100644 --- a/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml +++ b/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml @@ -12,7 +12,7 @@ spec: - from: - namespaceSelector: matchLabels: - app.kubernetes.io/name: {{ .Values.istioNamespaceSelector | default "istio-controlplane" }} + app.kubernetes.io/name: {{ .Values.networkPolicies.istioNamespaceSelector | default "istio-controlplane" }} podSelector: matchLabels: {{- toYaml .Values.networkPolicies.ingressLabels | nindent 12}} -- GitLab From 0802f8f64608ae988ef73bb88a7d6c91b898669d Mon Sep 17 00:00:00 2001 From: Luis Gomez <8248-lgomez2@users.noreply.gitlab.example.com> Date: Fri, 24 Jan 2025 15:00:50 +0000 Subject: [PATCH 07/18] removed testing default value from Update egress-istiod.yml --- chart/templates/bigbang/networkpolicies/egress-istiod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/templates/bigbang/networkpolicies/egress-istiod.yml b/chart/templates/bigbang/networkpolicies/egress-istiod.yml index 7abc5abe..b6159683 100644 --- a/chart/templates/bigbang/networkpolicies/egress-istiod.yml +++ b/chart/templates/bigbang/networkpolicies/egress-istiod.yml @@ -12,7 +12,7 @@ spec: - to: - namespaceSelector: matchLabels: - app.kubernetes.io/name: {{ .Values.networkPolicies.istioNamespaceSelector | default "no-value-set"}} + app.kubernetes.io/name: {{ .Values.networkPolicies.istioNamespaceSelector | default "istio-controlplane" }} podSelector: matchLabels: app: istiod -- GitLab From ee439e0777d999656314f26114453e99c343b3a2 Mon Sep 17 00:00:00 2001 From: Luis Gomez <8248-lgomez2@users.noreply.gitlab.example.com> Date: Fri, 24 Jan 2025 15:01:46 +0000 Subject: [PATCH 08/18] Removed test values from Update _helpers.tpl --- chart/templates/_helpers.tpl | 1 - 1 file changed, 1 deletion(-) diff --git a/chart/templates/_helpers.tpl b/chart/templates/_helpers.tpl index 34cc187f..d8532943 100644 --- a/chart/templates/_helpers.tpl +++ b/chart/templates/_helpers.tpl @@ -41,7 +41,6 @@ app: {{ include "kiali-operator.name" . }} {{- if .Chart.AppVersion }} version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -TEST-ISTIO3SELECTOR-LABEL: {{ .Values.networkPolicies.istioNamespaceSelector | default "no-value-set" }} {{- end }} app.kubernetes.io/part-of: "kiali-operator" {{- end }} -- GitLab From 115da0f4fa0670634c2163e82ce8eedfa83c9b3e Mon Sep 17 00:00:00 2001 From: lgomez2 <lgomez2g@gmail.com> Date: Mon, 27 Jan 2025 10:38:06 -0500 Subject: [PATCH 09/18] Testing egress/ingress passed values in network policies --- chart/templates/bigbang/networkpolicies/egress-istiod.yml | 2 +- .../bigbang/networkpolicies/ingress-istio-ingressgateway.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chart/templates/bigbang/networkpolicies/egress-istiod.yml b/chart/templates/bigbang/networkpolicies/egress-istiod.yml index 7abc5abe..3c0a182f 100644 --- a/chart/templates/bigbang/networkpolicies/egress-istiod.yml +++ b/chart/templates/bigbang/networkpolicies/egress-istiod.yml @@ -12,7 +12,7 @@ spec: - to: - namespaceSelector: matchLabels: - app.kubernetes.io/name: {{ .Values.networkPolicies.istioNamespaceSelector | default "no-value-set"}} + app.kubernetes.io/name: {{ .Values.networkPolicies.istioNamespaceSelector.egress | default "no-value-set"}} podSelector: matchLabels: app: istiod diff --git a/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml b/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml index b37ba0b5..6f0a1f1b 100644 --- a/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml +++ b/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml @@ -12,7 +12,7 @@ spec: - from: - namespaceSelector: matchLabels: - app.kubernetes.io/name: {{ .Values.networkPolicies.istioNamespaceSelector | default "istio-controlplane" }} + app.kubernetes.io/name: {{ .Values.networkPolicies.istioNamespaceSelector.public-ingress | default "istio-controlplane" }} podSelector: matchLabels: {{- toYaml .Values.networkPolicies.ingressLabels | nindent 12}} -- GitLab From 9a3be479e64c9e01de5666f18541f2a59973d92b Mon Sep 17 00:00:00 2001 From: lgomez2 <lgomez2g@gmail.com> Date: Mon, 27 Jan 2025 10:54:13 -0500 Subject: [PATCH 10/18] testing --- .../bigbang/networkpolicies/ingress-istio-ingressgateway.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml b/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml index 6f0a1f1b..e1dd771c 100644 --- a/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml +++ b/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml @@ -12,7 +12,7 @@ spec: - from: - namespaceSelector: matchLabels: - app.kubernetes.io/name: {{ .Values.networkPolicies.istioNamespaceSelector.public-ingress | default "istio-controlplane" }} + app.kubernetes.io/name: {{ .Values.networkPolicies.istioNamespaceSelector.ingress | default "istio-controlplane" }} podSelector: matchLabels: {{- toYaml .Values.networkPolicies.ingressLabels | nindent 12}} -- GitLab From b377caf769d8364cae3d431163036db3596c74ef Mon Sep 17 00:00:00 2001 From: lgomez2 <lgomez2g@gmail.com> Date: Mon, 27 Jan 2025 13:41:30 -0500 Subject: [PATCH 11/18] bumped chart version --- chart/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/Chart.yaml b/chart/Chart.yaml index fd3a9deb..c616e9e7 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: kiali description: Kiali is an open source project for service mesh observability, refer to https://www.kiali.io for details. -version: 2.3.0-bb.0 +version: 2.3.0-bb.1 appVersion: 2.3.0 home: https://github.com/kiali/kiali-operator maintainers: -- GitLab From b437e5121eeca3d5a787b6c442de1d5374fa415f Mon Sep 17 00:00:00 2001 From: lgomez2 <lgomez2g@gmail.com> Date: Mon, 27 Jan 2025 13:44:48 -0500 Subject: [PATCH 12/18] Updated changelog.md --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ae901875..c408b0d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). --- +## [2.3.0-bb.1] - 2025-01-27 + +### Changed + +- Added support for istio Network policy dynamic values + ## [2.3.0-bb.0] - 2025-01-06 ### Changed -- GitLab From 5825eae492d92d0211658b91e94a1ee235af5f70 Mon Sep 17 00:00:00 2001 From: lgomez2 <lgomez2g@gmail.com> Date: Mon, 27 Jan 2025 13:46:13 -0500 Subject: [PATCH 13/18] Updated Readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cb23f4e2..2f616ec4 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ <!-- Warning: Do not manually edit this file. See notes on gluon + helm-docs at the end of this file for more information. --> # kiali -   +   Kiali is an open source project for service mesh observability, refer to https://www.kiali.io for details. ## Upstream References -- <https://github.com/kiali/kiali-operator> +- <https://github.com/kiali/kiali-operator> - <https://github.com/kiali/kiali> - <https://github.com/kiali/kiali-operator> - <https://github.com/kiali/helm-charts> @@ -58,7 +58,7 @@ helm install kiali chart/ | istio.mtls.mode | string | `"STRICT"` | | | port | int | `20001` | | | image.repo | string | `"registry1.dso.mil/ironbank/opensource/kiali/kiali-operator"` | | -| image.tag | string | `"v2.2.0"` | | +| image.tag | string | `"v2.3.0"` | | | image.digest | string | `""` | | | image.pullPolicy | string | `"IfNotPresent"` | | | image.pullSecrets[0] | string | `"private-registry"` | | -- GitLab From 2b9162ac5f7c121224656974e4622bc3687744b9 Mon Sep 17 00:00:00 2001 From: lgomez2 <lgomez2g@gmail.com> Date: Mon, 27 Jan 2025 13:53:21 -0500 Subject: [PATCH 14/18] chart version updates --- CHANGELOG.md | 5 +++++ README.md | 2 +- chart/Chart.yaml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82392ea1..665e82e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). --- +## [2.4.0-bb.1] - 2025-01-27 + +### Changed + +- Added support for istio Network policy dynamic values ## [2.4.0-bb.0] - 2025-01-20 diff --git a/README.md b/README.md index aa98d2f4..bdd79ee4 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ <!-- Warning: Do not manually edit this file. See notes on gluon + helm-docs at the end of this file for more information. --> # kiali -   +   Kiali is an open source project for service mesh observability, refer to https://www.kiali.io for details. diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 9a8e43e0..3fda9d4d 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: kiali description: Kiali is an open source project for service mesh observability, refer to https://www.kiali.io for details. -version: 2.4.0-bb.0 +version: 2.4.0-bb.1 appVersion: 2.4.0 home: https://github.com/kiali/kiali-operator maintainers: -- GitLab From 2ce87a4abb900405f09bec80c213fb34b5e35dd5 Mon Sep 17 00:00:00 2001 From: lgomez2 <lgomez2g@gmail.com> Date: Mon, 27 Jan 2025 14:01:28 -0500 Subject: [PATCH 15/18] Corrected default value in chart/templates/bigbang/networkpolicies/egress-istiod.yml --- chart/templates/bigbang/networkpolicies/egress-istiod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/templates/bigbang/networkpolicies/egress-istiod.yml b/chart/templates/bigbang/networkpolicies/egress-istiod.yml index 3c0a182f..bb9c178a 100644 --- a/chart/templates/bigbang/networkpolicies/egress-istiod.yml +++ b/chart/templates/bigbang/networkpolicies/egress-istiod.yml @@ -12,7 +12,7 @@ spec: - to: - namespaceSelector: matchLabels: - app.kubernetes.io/name: {{ .Values.networkPolicies.istioNamespaceSelector.egress | default "no-value-set"}} + app.kubernetes.io/name: {{ .Values.networkPolicies.istioNamespaceSelector.egress | default "istio-controlplane"}} podSelector: matchLabels: app: istiod -- GitLab From 8a416f10a0acea0f570086e2e81687e9b3b18bfe Mon Sep 17 00:00:00 2001 From: lgomez2 <lgomez2g@gmail.com> Date: Tue, 28 Jan 2025 12:38:04 -0500 Subject: [PATCH 16/18] Added logic flow for null child and parent values in the egress/ingress netpol templates --- chart/templates/bigbang/networkpolicies/egress-istiod.yml | 6 +++++- .../networkpolicies/ingress-istio-ingressgateway.yml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/chart/templates/bigbang/networkpolicies/egress-istiod.yml b/chart/templates/bigbang/networkpolicies/egress-istiod.yml index bb9c178a..fd8fa911 100644 --- a/chart/templates/bigbang/networkpolicies/egress-istiod.yml +++ b/chart/templates/bigbang/networkpolicies/egress-istiod.yml @@ -12,7 +12,11 @@ spec: - to: - namespaceSelector: matchLabels: - app.kubernetes.io/name: {{ .Values.networkPolicies.istioNamespaceSelector.egress | default "istio-controlplane"}} + {{- if .Values.networkPolicies.istioNamespaceSelector }} + app.kubernetes.io/name: {{ .Values.networkPolicies.istioNamespaceSelector.egress }} + {{- else }} + app.kubernetes.io/name: "istio-controlplane" + {{- end }} podSelector: matchLabels: app: istiod diff --git a/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml b/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml index e1dd771c..4f868df0 100644 --- a/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml +++ b/chart/templates/bigbang/networkpolicies/ingress-istio-ingressgateway.yml @@ -12,7 +12,11 @@ spec: - from: - namespaceSelector: matchLabels: - app.kubernetes.io/name: {{ .Values.networkPolicies.istioNamespaceSelector.ingress | default "istio-controlplane" }} + {{- if .Values.networkPolicies.istioNamespaceSelector }} + app.kubernetes.io/name: {{ .Values.networkPolicies.istioNamespaceSelector.ingress }} + {{- else }} + app.kubernetes.io/name: "istio-controlplane" + {{- end }} podSelector: matchLabels: {{- toYaml .Values.networkPolicies.ingressLabels | nindent 12}} -- GitLab From a772d1af2b881db9f3803c416944db7229249f3e Mon Sep 17 00:00:00 2001 From: lgomez2 <lgomez2g@gmail.com> Date: Tue, 28 Jan 2025 14:55:54 -0500 Subject: [PATCH 17/18] Cleaned up CHANGELOG.md --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 665e82e5..117cd12b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,11 +3,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). --- -## [2.4.0-bb.1] - 2025-01-27 +## [2.4.0-bb.1] - 2025-01-28 ### Changed -- Added support for istio Network policy dynamic values +- Added support for istio Operatorless network policy values ## [2.4.0-bb.0] - 2025-01-20 -- GitLab From 69f95c2d4e1bf623acb8a87e8df2109b5c63cef2 Mon Sep 17 00:00:00 2001 From: lgomez2 <lgomez2g@gmail.com> Date: Wed, 29 Jan 2025 10:10:16 -0500 Subject: [PATCH 18/18] Minor changelog update --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 117cd12b..ca885c7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). --- -## [2.4.0-bb.1] - 2025-01-28 +## [2.4.0-bb.1] - 2025-01-29 ### Changed -- GitLab