1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-15 16:56:56 +00:00

fix: admission controller rbac templating (#7774)

Fixes an regression introduced in #7633 where the helm template would render multiple
resources on the same line, resulting in invalid yaml.

This removes the hyphen in the template to ensure that each resource is
rendered on a new line

Signed-off-by: Paul Nicholson <brenix@gmail.com>
This commit is contained in:
Paul N 2023-07-07 02:36:42 -07:00 committed by GitHub
parent 210fdbbcc6
commit faa50615d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -26,6 +26,8 @@ annotations:
url: https://kyverno.io/docs
# valid kinds are: added, changed, deprecated, removed, fixed and security
artifacthub.io/changes: |
- kind: fixed
description: rbac templating issues
- kind: added
description: make sigstore volume configurable
- kind: changed

View file

@ -45,7 +45,7 @@ rules:
resources:
- deployments
{{- if .Values.webhooksCleanup.enabled }}
{{- if not .Values.templating.enabled -}}
{{- if not .Values.templating.enabled }}
- deployments/scale
{{- end }}
{{- end }}
@ -54,7 +54,7 @@ rules:
- list
- watch
{{- if .Values.webhooksCleanup.enabled }}
{{- if not .Values.templating.enabled -}}
{{- if not .Values.templating.enabled }}
- patch
- update
{{- end }}