-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable l1-stack-refernce test (#686)
This required two fixes. One to handle `getOutput` functions in PCL and rewrite them into variable expressions. e.g. `getOutput(res, "key")` gets rewritten to `${res.outputs["key"]}`. Secondly resources in the "pulumi" package, like stack reference resources, don't need a "pulumi" plugin so don't return that in GetRequiredPlugins.
- Loading branch information
Showing
6 changed files
with
35 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
component: codegen | ||
kind: Improvements | ||
body: Support stack references in program generation | ||
time: 2024-11-15T17:19:10.259289815Z | ||
custom: | ||
PR: "686" |
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
8 changes: 8 additions & 0 deletions
8
cmd/pulumi-language-yaml/testdata/projects/l1-stack-reference/Main.yaml
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,8 @@ | ||
resources: | ||
ref: | ||
type: pulumi:pulumi:StackReference | ||
properties: | ||
name: organization/other/dev | ||
outputs: | ||
plain: ${ref.outputs["plain"]} | ||
secret: ${ref.outputs["secret"]} |
2 changes: 2 additions & 0 deletions
2
cmd/pulumi-language-yaml/testdata/projects/l1-stack-reference/Pulumi.yaml
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,2 @@ | ||
name: l1-stack-reference | ||
runtime: yaml |
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