<@UE1LN7A22> is something changed or docs are supe...
# kubernetes
i
@gorgeous-egg-16927 is something changed or docs are super outdated, I am seeing new interface for transformations
Copy code
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?
Copy code
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:
Copy code
was not successfully created by the Kubernetes API server : failed to determine if the following GVK is namespaced: /v1, Kind=List
g
i
@gorgeous-egg-16927 looks like the interface is different, anyway, thanks!
@gorgeous-egg-16927 I am keep getting
Copy code
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