This message was deleted.
# general
s
This message was deleted.
g
What version of the k8s provider are you using? The
ClusterRoleBinding
resource should have aliases defined so that it shouldn’t require a replacement to update that resource.
f
o
@gorgeous-egg-16927 2.2.2
I'm trying to understand why it thinks it needs replacing
@famous-jelly-72366 - how do you mean. Use it to alias certain items?
@gentle-diamond-70147 just tagging to tie in our private conversation
g
Just to close the loop on this, the following transformation solves this issue:
Copy code
transformations: [
    (obj: any, opts: pulumi.CustomResourceOptions) => {
        if (obj.kind === "ClusterRoleBinding" && obj.metadata.name == "metrics-server:system:auth-delegator") {
            opts.aliases = [
                {name: "kube-system/metrics-server:system:auth-delegator"},
            ];
        }
    },
]