-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve multiline variables in kubernetes manifests correctly (#…
…5270) * fix: resolve multiline variables in kubernetes manifests correctly Co-authored-by: Steffen Neubauer <[email protected]> Co-authored-by: Mikael Högqvist Tabor <[email protected]> * chore: remove context to fix test --------- Co-authored-by: Steffen Neubauer <[email protected]> Co-authored-by: Mikael Högqvist Tabor <[email protected]>
- Loading branch information
1 parent
e256812
commit 946e74b
Showing
5 changed files
with
76 additions
and
12 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
6 changes: 6 additions & 0 deletions
6
core/test/data/test-projects/kubernetes-type/multiline-var-in-manifest/deployment.yml
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: test-configmap | ||
data: | ||
hello: ${var.multiline-var} |
11 changes: 11 additions & 0 deletions
11
core/test/data/test-projects/kubernetes-type/multiline-var-in-manifest/garden.yml
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
kind: Deploy | ||
type: kubernetes | ||
name: multiline-var-in-manifest-deploy | ||
spec: | ||
files: [ "deployment.yml" ] | ||
variables: | ||
multiline-var: | | ||
this is a | ||
multiline | ||
variable | ||
foo: bar |
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