mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
feat: add policy reporter to the dev lab (#6799)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
847e3e0fea
commit
a3147758e4
2 changed files with 24 additions and 1 deletions
9
Makefile
9
Makefile
|
@ -922,8 +922,15 @@ dev-lab-metrics-server: $(HELM) ## Deploy metrics-server helm chart
|
||||||
--repo https://charts.bitnami.com/bitnami metrics-server \
|
--repo https://charts.bitnami.com/bitnami metrics-server \
|
||||||
--values ./scripts/config/dev/metrics-server.yaml
|
--values ./scripts/config/dev/metrics-server.yaml
|
||||||
|
|
||||||
|
.PHONY: dev-lab-policy-reporter
|
||||||
|
dev-lab-policy-reporter: $(HELM) ## Deploy policy-reporter helm chart
|
||||||
|
@echo Install policy-reporter chart... >&2
|
||||||
|
@$(HELM) upgrade --install policy-reporter --namespace policy-reporter --create-namespace --wait \
|
||||||
|
--repo https://kyverno.github.io/policy-reporter policy-reporter \
|
||||||
|
--values ./scripts/config/dev/policy-reporter.yaml
|
||||||
|
|
||||||
.PHONY: dev-lab-all
|
.PHONY: dev-lab-all
|
||||||
dev-lab-all: dev-lab-ingress-ngingx dev-lab-metrics-server dev-lab-prometheus dev-lab-loki dev-lab-tempo ## Deploy all dev lab components
|
dev-lab-all: dev-lab-ingress-ngingx dev-lab-metrics-server dev-lab-prometheus dev-lab-loki dev-lab-tempo dev-lab-policy-reporter ## Deploy all dev lab components
|
||||||
|
|
||||||
########
|
########
|
||||||
# HELP #
|
# HELP #
|
||||||
|
|
16
scripts/config/dev/policy-reporter.yaml
Normal file
16
scripts/config/dev/policy-reporter.yaml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
ui:
|
||||||
|
enabled: true
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
annotations:
|
||||||
|
nginx.ingress.kubernetes.io/rewrite-target: $1$2
|
||||||
|
nginx.ingress.kubernetes.io/configuration-snippet: |
|
||||||
|
rewrite ^(/policy-reporter)$ $1/ redirect;
|
||||||
|
hosts:
|
||||||
|
- host: ~
|
||||||
|
paths:
|
||||||
|
- path: /policy-reporter(/|$)(.*)
|
||||||
|
pathType: Prefix
|
||||||
|
|
||||||
|
kyvernoPlugin:
|
||||||
|
enabled: true
|
Loading…
Reference in a new issue