From c33c2135afe609196369d22f08d94a380904059d Mon Sep 17 00:00:00 2001 From: Brendon Lloyd Date: Thu, 22 Jul 2021 13:15:52 -1000 Subject: [PATCH] Add openshift toggle, conditionally add port 5353 egress. Changing openshift: to true in values.yaml will enable. --- CHANGELOG.md | 4 ++++ chart/Chart.yaml | 2 +- chart/templates/bigbang/networkpolicies/kube-api-egress.yaml | 4 ++++ chart/values.yaml | 2 ++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4d5ae8..7e6afe7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog --- +## [29.1.0-bb.6] - 2021-06-30 +### Added +- Add openshift toggle, conditionally add port 5353 egress. Changing "openshift:" to true in values.yaml will enable. + ## [29.1.0-bb.5] - 2021-06-30 ### Added - Network policy to allow prometheus scraping of istio envoy sidecar diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 878cde7..e07100e 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: nexus-repository-manager -version: 29.1.0-bb.5 +version: 29.1.0-bb.6 appVersion: 3.29.0 description: Sonatype Nexus Repository Manager - Universal Binary repository type: application diff --git a/chart/templates/bigbang/networkpolicies/kube-api-egress.yaml b/chart/templates/bigbang/networkpolicies/kube-api-egress.yaml index 04ed264..fc33585 100644 --- a/chart/templates/bigbang/networkpolicies/kube-api-egress.yaml +++ b/chart/templates/bigbang/networkpolicies/kube-api-egress.yaml @@ -13,6 +13,10 @@ spec: protocol: TCP - port: 53 protocol: UDP + {{- if .Values.openshift }} + - port: 5353 + protocol: UDP + {{- end }} podSelector: matchLabels: app.kubernetes.io/name: nexus-repository-manager diff --git a/chart/values.yaml b/chart/values.yaml index c1b5038..84fc2d3 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -260,3 +260,5 @@ serviceAccount: psp: create: false + +openshift: false -- GitLab