Bug: postRenderers broken
This MR introduced a bug with post renderers.
It can be reproduced by running helm template chart -f renderers.yaml
where renderers.yaml
:
addons:
harbor:
enabled: true
postRenderers:
- kustomize:
patches:
- target:
groups: apps
version: v1
kind: Deployment
name: harbor-core
patch: |
- op: replace
path: "/spec/template/spec/containers/0/livenessProbe/timeoutSeconds"
value: 3
Current Output:
Error: YAML parse error on bigbang/templates/harbor/helmrelease.yaml: error converting YAML to JSON: yaml: line 67: did not find expected key
Use --debug flag to render out invalid YAML
Suggestion:
If both of these nindent
s were the same, i.e. both 2 or both 4, the template works.
Raised by @marclehner and @jbelleza
Edited by Andrew Shoell