https://pulumi.com logo
Title
i

icy-jordan-58549

10/14/2020, 4:55 PM
@gorgeous-egg-16927 is something changed or docs are super outdated, I am seeing new interface for transformations
export declare type ResourceTransformation = (args: ResourceTransformationArgs) => ResourceTransformationResult | undefined;
Also, is there a way to omit resources? I found this approach, https://github.com/pulumi/pulumi-kubernetes/issues/486#issuecomment-527958122 any other ways to workaround it? Thanks
I can’t find anything in SDK that says how to omit resources 😞
thanks
could you please guide?
transformations: [
      (o) => {
        if (o.type === "kubernetes:core/v1:Endpoints") {
          o.props.apiVersion = "v1";
          o.props.kind = "List";
          o.props.metadata = {
            ...o.props.metadata,
            name: `list-${o.props.metadata.name}`,
            labels: {},
          };
        }
        return o;
      },
    ],
this does work, but getting this error:
was not successfully created by the Kubernetes API server : failed to determine if the following GVK is namespaced: /v1, Kind=List
g

gorgeous-egg-16927

10/14/2020, 7:46 PM
i

icy-jordan-58549

10/15/2020, 7:18 AM
@gorgeous-egg-16927 looks like the interface is different, anyway, thanks!
@gorgeous-egg-16927 I am keep getting
was not successfully created by the Kubernetes API server : failed to determine if the following GVK is namespaced: /v1, Kind=List
using that
omit
approach by converting into List, any ideas how to fix it?
-d mode doesn’t help me