Keycloak postrenderers improper indentation
Bug
Description
.Values.addons.keycloak.postrenderers
is not rendering correctly in the keycloak helm release
Pass in a values files like:
addons:
keycloak:
postRenderers:
- kustomize:
patches:
- target:
kind: VirtualService
name: keycloak
namespace: keycloak
patch: |
- op: add
path: /spec/http/0/corsPolicy
value:
allowOrigins:
- exact: https://test.dev.com
allowMethods:
- POST
- PUT
- GET
- DELETE
allowHeaders:
- "*"
maxAge: 1h
BigBang Version
3.4.0
Fix
This needs to be and indent 2
diff --git a/chart/templates/keycloak/helmrelease.yaml b/chart/templates/keycloak/helmrelease.yaml
index 4ffe7616..03442f04 100644
--- a/chart/templates/keycloak/helmrelease.yaml
+++ b/chart/templates/keycloak/helmrelease.yaml
@@ -52,7 +52,7 @@ spec:
{{ include "keycloak.mtlsServiceMonitorPostrenderers" . | nindent 2 }}
{{- end }}
{{- if .Values.addons.keycloak.postRenderers }}
- {{ toYaml .Values.addons.keycloak.postRenderers | nindent 4 }}
+ {{ toYaml .Values.addons.keycloak.postRenderers | nindent 2 }}
{{- end }}
{{- end }}