-
Notifications
You must be signed in to change notification settings - Fork 76
Extra deploy for additional manifests #293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,8 @@ | ||||||||||||||||||||||||||||||||||
| {{- range .Values.extraDeploy }} | ||||||||||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||||||||||
| {{- if typeIs "string" . }} | ||||||||||||||||||||||||||||||||||
| {{ tpl . $ }} | ||||||||||||||||||||||||||||||||||
| {{- else }} | ||||||||||||||||||||||||||||||||||
| {{ tpl (. | toYaml) $ }} | ||||||||||||||||||||||||||||||||||
| {{- end }} | ||||||||||||||||||||||||||||||||||
| {{- end }} | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+1
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix whitespace handling to avoid malformed YAML output. Two issues with this template:
🐛 Proposed fix {{- range .Values.extraDeploy }}
---
-{{- if typeIs "string" . }}
- {{ tpl . $ }}
-{{- else }}
- {{ tpl (. | toYaml) $ }}
-{{- end }}
+{{ if typeIs "string" . }}
+{{ tpl . $ }}
+{{- else }}
+{{ tpl (toYaml .) $ }}
+{{- end }}
{{- end }}Note: The YAMLlint syntax error is a false positive since this is a Helm template, not a standalone YAML file. 📝 Committable suggestion
Suggested change
🧰 Tools🪛 YAMLlint (1.37.1)[error] 1-1: syntax error: expected the node content, but found '-' (syntax) 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or maybe we should keep
extraDeployseverywhere?