diff --git a/CHANGELOG.md b/CHANGELOG.md index e1a8dd5d08dc8bf3270c5d847ba03e8c7c0d1c65..eef171e25ba9d51f9706cac971acfdb444e79655 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). --- +## [0.0.6-bb.1] - 2021-07-21 + +### Added + +- Add openshift toggle. If it's set, add port 5353 egress rule. + ## [0.0.6-bb.0] - 2021-06-09 diff --git a/chart/Chart.yaml b/chart/Chart.yaml index c04bc6ab2a5a76590d9b882dbbb5f2dbd380b6ff..a6616c540b5f17b04e97770fc7e7e62f3d893b80 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: twistlock -version: 0.0.6-bb.0 +version: 0.0.6-bb.1 appVersion: 21.04.412 dependencies: - name: gluon diff --git a/chart/templates/networkpolicies/egress-kube-dns.yaml b/chart/templates/networkpolicies/egress-kube-dns.yaml index 7e7a35c87a63ae8361e87e36eb081c50e81c0f09..02f67a9376ea45dd081e8b3018dbc62507fcd952 100644 --- a/chart/templates/networkpolicies/egress-kube-dns.yaml +++ b/chart/templates/networkpolicies/egress-kube-dns.yaml @@ -11,6 +11,10 @@ spec: ports: - port: 53 protocol: UDP + {{- if .Values.openshift }} + - port: 5353 + protocol: UDP + {{- end }} podSelector: {} # all pods in Release namespace policyTypes: - Egress diff --git a/chart/values.yaml b/chart/values.yaml index 1795bdd1fa327fa173d7cf9adaf38387f0915b6c..23bad32f7506fc40a741d4bfa66d2834df320c4e 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -69,3 +69,5 @@ resources: requests: {} # memory: 256Mi # cpu: 100m + +openshift: false