https://pulumi.com logo
#general
Title
# general
d

damp-honey-93158

06/23/2023, 11:35 AM
hey pulumiers! I was wondering if it's possible to pre-validate a chart Release() object, and force the use of a "Version" value - enforcing the idea that we never pick "latest"
l

little-cartoon-10569

06/25/2023, 7:35 PM
You can try using Policy as Code / Crossguard (https://www.pulumi.com/docs/using-pulumi/crossguard/get-started/) if you've got a Pulumi plan that supports it. A simpler but less complete solution would be to prohibit use of the unadorned Release class (via lint / code conventions / whatever's suitable in your org), and provide a wrapper class that adds the
"args.version != "latest"
logic.