https://pulumi.com logo
#general
Title
# general
b

bland-guitar-34582

03/21/2020, 6:10 AM
We are facing the problem that the aks cluster was replaced all the time when running pulumi up when doing k8s.rbac.v1.RoleBinding. And according to this code in pulumi provider, there is a note "We can't tell for sure if a computed value has changed, so we make the conservative choice, and force a replacement.". Is there any way to avoid this replacement all the time?
Copy code
// <https://github.com/pulumi/kubernetes-guides/blob/master/azure/03-cluster-configuration/index.ts>
const aksProvider = new k8s.Provider("aksProvider", {
    kubeconfig: aksCluster.kubeAdminConfigRaw
});

const aksRoleBinding = new k8s.rbac.v1.RoleBinding(`${config.prefix}-aad-integration`, ..., { provider: aksProvider })
👍 1
l

lemon-agent-27707

03/21/2020, 7:42 PM