diff --git a/CHANGELOG.md b/CHANGELOG.md index a8354d08..8e0f8fa9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +# 1.9.1 +* Configure the Kubernetes API Port for NetworkPolicy + # 1.9.0 * Implement NetworkPolicy for Policy Reporter and related Components [[#68](https://github.com/kyverno/policy-reporter/pull/68) by [windowsrefund](https://github.com/windowsrefund)] * Customize liveness- and readinessProbe for Policy Reporter [[#67](https://github.com/kyverno/policy-reporter/pull/67) by [windowsrefund](https://github.com/windowsrefund)] diff --git a/charts/policy-reporter/Chart.lock b/charts/policy-reporter/Chart.lock index 873f4733..860cd554 100644 --- a/charts/policy-reporter/Chart.lock +++ b/charts/policy-reporter/Chart.lock @@ -7,6 +7,6 @@ dependencies: version: 1.9.0 - name: kyvernoPlugin repository: "" - version: 0.6.0 -digest: sha256:96947793886cef121824fdbc05b1c15df822c86362c04ba3d28255c6dcc85f37 -generated: "2021-09-08T22:06:18.980599+02:00" + version: 0.6.1 +digest: sha256:84d9269f9f276c3448d26968b31b69d593323c733dd1f687ca6f670426d4461b +generated: "2021-09-09T20:35:28.564714+02:00" diff --git a/charts/policy-reporter/Chart.yaml b/charts/policy-reporter/Chart.yaml index 77860ab2..7c89e22c 100644 --- a/charts/policy-reporter/Chart.yaml +++ b/charts/policy-reporter/Chart.yaml @@ -5,7 +5,7 @@ description: | It creates Prometheus Metrics and can send rule validation events to different targets like Loki, Elasticsearch, Slack or Discord type: application -version: 1.9.0 +version: 1.9.1 appVersion: 1.8.5 dependencies: @@ -20,4 +20,4 @@ dependencies: - name: kyvernoPlugin condition: kyvernoPlugin.enabled repository: "" - version: "0.6.0" + version: "0.6.1" diff --git a/charts/policy-reporter/charts/kyvernoPlugin/Chart.yaml b/charts/policy-reporter/charts/kyvernoPlugin/Chart.yaml index 35aa0366..af160d32 100644 --- a/charts/policy-reporter/charts/kyvernoPlugin/Chart.yaml +++ b/charts/policy-reporter/charts/kyvernoPlugin/Chart.yaml @@ -3,5 +3,5 @@ name: kyvernoPlugin description: Policy Reporter Kyverno Plugin type: application -version: 0.6.0 +version: 0.6.1 appVersion: 0.3.2 \ No newline at end of file diff --git a/charts/policy-reporter/charts/kyvernoPlugin/templates/networkpolicy.yaml b/charts/policy-reporter/charts/kyvernoPlugin/templates/networkpolicy.yaml index 2a924e86..dfa6a9a6 100644 --- a/charts/policy-reporter/charts/kyvernoPlugin/templates/networkpolicy.yaml +++ b/charts/policy-reporter/charts/kyvernoPlugin/templates/networkpolicy.yaml @@ -23,5 +23,5 @@ spec: - to: ports: - protocol: TCP - port: 6443 + port: {{ .Values.networkPolicy.kubernetesApiPort }} {{- end }} diff --git a/charts/policy-reporter/charts/kyvernoPlugin/values.yaml b/charts/policy-reporter/charts/kyvernoPlugin/values.yaml index 75df10dc..3c347b15 100644 --- a/charts/policy-reporter/charts/kyvernoPlugin/values.yaml +++ b/charts/policy-reporter/charts/kyvernoPlugin/values.yaml @@ -84,3 +84,4 @@ affinity: {} # used and configured in a default-deny fashion. networkPolicy: enabled: false + kubernetesApiPort: 6443 diff --git a/charts/policy-reporter/templates/networkpolicy.yaml b/charts/policy-reporter/templates/networkpolicy.yaml index 2d46fbe0..5ed6bb61 100644 --- a/charts/policy-reporter/templates/networkpolicy.yaml +++ b/charts/policy-reporter/templates/networkpolicy.yaml @@ -29,7 +29,7 @@ spec: - to: ports: - protocol: TCP - port: 6443 + port: {{ .Values.networkPolicy.kubernetesApiPort }} {{- with .Values.networkPolicy.egress }} {{- toYaml . | nindent 2 }} {{- end }} diff --git a/charts/policy-reporter/values.yaml b/charts/policy-reporter/values.yaml index 2243092d..b64d3313 100644 --- a/charts/policy-reporter/values.yaml +++ b/charts/policy-reporter/values.yaml @@ -76,6 +76,7 @@ resources: {} networkPolicy: enabled: false egress: [] + kubernetesApiPort: 6443 # enable policy-report-ui ui: