https://pulumi.com logo
Title
g

gorgeous-architect-28903

01/19/2023, 3:46 PM
Am I just missing something, or is it not possible to add resource options in transformations for Kubernetes YAML Config Groups in Go: https://github.com/pulumi/pulumi-kubernetes/blob/master/sdk/go/kubernetes/yaml/transformation.go#L28 I can’t append to the resource options and have the caller see it.
w

white-balloon-205

01/19/2023, 8:11 PM
That does appear to be true. Note that there is a Pulumi-wide transformations feature which can also be used, and it does support modifying resource options. You can think of the kubernetes specific one as transforming the kubernetes YAML, and the Pulumi one as transforming the Pulumi resource. https://www.pulumi.com/docs/intro/concepts/resources/options/transformations/
g

gorgeous-architect-28903

01/20/2023, 10:23 AM
Thanks. That makes sense. I can actually just do the transformation I want on the ConfigGroup resource itself instead of in transformations on the args. I did find that confusing though because its a use case pointed out in the docs in other languages: https://www.pulumi.com/registry/packages/kubernetes/api-docs/yaml/configgroup/#yaml-with-transformations