pulumi / pulumi-yaml

YAML language provider for Pulumi
Apache License 2.0
38 stars 11 forks source link

codegen: Handle 'secret(..)' functions #488

Open abhinav opened 1 year ago

abhinav commented 1 year ago

Hello!

Issue details

Follow-up to: https://github.com/pulumi/pulumi-yaml/pull/487#discussion_r1287684356

Specifically, in gen_program.go, genResource has special handling for "secret" separately from generator.function which doesn't recognize the "secret" function.

This code was also previously tracking the arguments to the secret function but not doing anything with that information. This unused slice was dropped in #487.

This issue tracks the follow-up of that.

Affected area/feature

codegen