https://pulumi.com logo
m

mysterious-portugal-46322

11/03/2020, 9:20 AM
Hi, what’s the best way to use add a stack validation policy, but only test a specific type of resource, i.e. all kubernetes resources?
g

gentle-diamond-70147

11/03/2020, 4:18 PM
You can check the
type
on each of the resources - e.g. https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/policy/#PolicyResource-type. Type is a string representation so will have a
kubernetes
prefix for all k8s resources.
m

mysterious-portugal-46322

11/09/2020, 6:22 PM
thanks!