-
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.
- Loading branch information
Showing
7 changed files
with
48 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: Bug Fixes | ||
body: Recognize the PCL fn::secret function | ||
time: 2024-11-15T13:03:54.975607828Z | ||
custom: | ||
PR: "683" |
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
32 changes: 32 additions & 0 deletions
32
cmd/pulumi-language-yaml/testdata/projects/l2-invoke-secrets/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,32 @@ | ||
resources: | ||
res: | ||
type: simple:Resource | ||
properties: | ||
value: true | ||
outputs: | ||
# inputs are plain and the invoke response is plain | ||
nonSecret: | ||
fn::invoke: | ||
Function: simple-invoke:secretInvoke | ||
Arguments: | ||
value: hello | ||
secretResponse: false | ||
Return: response | ||
# referencing value from resource | ||
# // invoke response is secret => whole output is secret | ||
firstSecret: | ||
fn::invoke: | ||
Function: simple-invoke:secretInvoke | ||
Arguments: | ||
value: hello | ||
secretResponse: ${res.value} | ||
Return: response | ||
# inputs are secret, invoke response is plain => whole output is secret | ||
secondSecret: | ||
fn::invoke: | ||
Function: simple-invoke:secretInvoke | ||
Arguments: | ||
value: | ||
fn::secret: goodbye | ||
secretResponse: false | ||
Return: response |
2 changes: 2 additions & 0 deletions
2
cmd/pulumi-language-yaml/testdata/projects/l2-invoke-secrets/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: l2-invoke-secrets | ||
runtime: yaml |
3 changes: 3 additions & 0 deletions
3
cmd/pulumi-language-yaml/testdata/projects/l2-invoke-secrets/sdks/simple-invoke.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,3 @@ | ||
packageDeclarationVersion: 1 | ||
name: simple-invoke | ||
version: 10.0.0 |
3 changes: 3 additions & 0 deletions
3
cmd/pulumi-language-yaml/testdata/projects/l2-invoke-secrets/sdks/simple.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,3 @@ | ||
packageDeclarationVersion: 1 | ||
name: simple | ||
version: 2.0.0 |
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