hey pulumiers! I was wondering if it's possible t...
# general
d
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
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.