-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Resolve `helm lint` invalid Yaml error If using `extraObjects`, the generated manifest fails `helm lint` with: ```shell [ERROR] templates/extraManifests.yaml: unable to parse YAML: invalid Yaml document separator: apiVersion: apps/v1 ``` This is a known issue [1] just with the go templates used for helm lint and doesn't apply to the actual template that is applied. The fix [2] is to make the whitespace work for both commands. [1] helm/helm#10149 [2] helm/helm#10149 (comment) Signed-off-by: Martin Rowe <[email protected]> * Bump version to 2.26.1 and 2.24.1 Signed-off-by: Martin Rowe <[email protected]> --------- Signed-off-by: Martin Rowe <[email protected]>
- Loading branch information
Showing
6 changed files
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{{ range .Values.extraObjects }} | ||
--- | ||
{{- if typeIs "string" . }} | ||
{{- tpl . $ }} | ||
{{ tpl . $ }} | ||
{{- else }} | ||
{{- tpl (toYaml .) $ }} | ||
{{ tpl (toYaml .) $ }} | ||
{{- end }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{{ range .Values.extraObjects }} | ||
--- | ||
{{- if typeIs "string" . }} | ||
{{- tpl . $ }} | ||
{{ tpl . $ }} | ||
{{- else }} | ||
{{- tpl (toYaml .) $ }} | ||
{{ tpl (toYaml .) $ }} | ||
{{- end }} | ||
{{ end }} |