Hi, what’s the best way to use add a stack validat...
# typescript
m
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
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
thanks!