Skip to content

Commit

Permalink
helm chart cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Jogeleit <[email protected]>
  • Loading branch information
fjogeleit committed Oct 5, 2024
1 parent 344f4ef commit 12da466
Show file tree
Hide file tree
Showing 12 changed files with 981 additions and 864 deletions.
643 changes: 322 additions & 321 deletions charts/policy-reporter/README.md

Large diffs are not rendered by default.

13 changes: 3 additions & 10 deletions charts/policy-reporter/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## Documentation

You can find detailed Information and Screens about Features and Configurations in the [Documentation](https://kyverno.github.io/policy-reporter/guide/02-getting-started#core--policy-reporter-ui).
You can find detailed Information and Screens about Features and Configurations in the [Documentation](https://kyverno.github.io/policy-reporter-docs).

## Installation with Helm v3

Expand All @@ -31,20 +31,13 @@ helm install policy-reporter policy-reporter/policy-reporter -n policy-reporter
You can use the Policy Reporter as standalone Application along with the optional UI SubChart.

### Installation with Policy Reporter UI and Kyverno Plugin enabled

```bash
helm install policy-reporter policy-reporter/policy-reporter --set kyvernoPlugin.enabled=true --set ui.enabled=true --set ui.plugins.kyverno=true -n policy-reporter --create-namespace
helm install policy-reporter policy-reporter/policy-reporter --set plugin.kyverno.enabled=true --set ui.enabled=true -n policy-reporter --create-namespace
kubectl port-forward service/policy-reporter-ui 8082:8080 -n policy-reporter
```
Open `http://localhost:8082/` in your browser.

Check the [Documentation](https://kyverno.github.io/policy-reporter/guide/02-getting-started#core--policy-reporter-ui) for Screens and additional Information

## Resources

* [[Video] 37. #EveryoneCanContribute cafe: Policy reporter for Kyverno](https://youtu.be/1mKywg9f5Fw)
* [[Video] Rawkode Live: Hands on Policy Reporter](https://www.youtube.com/watch?v=ZrOtTELNLyg)
* [[Blog] Monitor Security and Best Practices with Kyverno and Policy Reporter](https://blog.webdev-jogeleit.de/blog/monitor-security-with-kyverno-and-policy-reporter/)


{{ template "chart.valuesSection" . }}

Expand Down
1 change: 0 additions & 1 deletion charts/policy-reporter/configs/core.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ sourceConfig:
logging:
encoding: {{ .Values.logging.encoding }}
logLevel: {{ include "policyreporter.logLevel" . }}
development: {{ .Values.logging.development }}

api:
logging: {{ .Values.api.logging }}
Expand Down
2 changes: 1 addition & 1 deletion charts/policy-reporter/configs/kyverno-plugin.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ logging:
logLevel: {{ .Values.plugin.kyverno.logging.logLevel }}

server:
logging: {{ .Values.plugin.kyverno.server.logging }}
logging: {{ .Values.plugin.kyverno.logging.server }}
basicAuth:
username: {{ .Values.basicAuth.username }}
password: {{ .Values.basicAuth.password }}
Expand Down
2 changes: 1 addition & 1 deletion charts/policy-reporter/configs/trivy-plugin.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ logging:
logLevel: {{ .Values.plugin.trivy.logging.logLevel }}

server:
logging: {{ .Values.plugin.trivy.server.logging }}
logging: {{ .Values.plugin.trivy.logging.server }}
basicAuth:
username: {{ .Values.basicAuth.username }}
password: {{ .Values.basicAuth.password }}
Expand Down
5 changes: 3 additions & 2 deletions charts/policy-reporter/configs/ui.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ namespace: {{ .Release.Namespace }}
tempDir: {{ .Values.ui.tempDir }}

logging:
enabled: {{ .Values.ui.logging.enabled }}
api: {{ .Values.ui.logging.api }}
server: {{ .Values.ui.logging.server }}
encoding: {{ .Values.ui.logging.encoding }}
logLevel: {{ .Values.ui.logging.logLevel }}

server:
port: {{ .Values.ui.server.port }}
logging: {{ .Values.ui.server.logging }}
cors: {{ .Values.ui.server.cors }}
overwriteHost: {{ .Values.ui.server.overwriteHost }}

ui:
Expand Down
4 changes: 2 additions & 2 deletions charts/policy-reporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ metadata:
spec:
replicas: {{ .Values.replicaCount }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
{{- if .Values.deploymentStrategy }}
{{- with .Values.plugin.kyverno.updateStrategy }}
strategy:
{{- toYaml .Values.deploymentStrategy | nindent 4 }}
{{- toYaml . | nindent 4 }}
{{- end }}
selector:
matchLabels:
Expand Down
Loading

0 comments on commit 12da466

Please sign in to comment.