This message was deleted.
# general
s
This message was deleted.
b
i do this and havent had any issues, do you want to pastebin some code?
l
create the k8s provider based on an output from the cluster resource. This is a snippet of working code
Copy code
// Expose a k8s provider instance of the cluster.
this.provider = new k8s.Provider(`${name}-aks`, {
     kubeconfig: this.cluster.kubeConfigRaw,
}, { parent: this });
b
specify the provider ConfigFile explicitly - it's likely coming from an ambient provider instead
{ dependsOn: [cluster], provider: cluster }
there's a long-standing issue where unless you specify it, an ambient one from your current env. will be used
c
Aaah, yes,
provider: cluster
did the trick! Awesome! Thatโ€™s what I was looking for.
b
remember to do it for everything ๐Ÿ˜„
there is a workaround so that it will fail-fast if you forget but i can't remember what it is
c
Yes, good that Iโ€™m only getting started. Learning early. ๐Ÿ˜„
b
i need to start using that myself actually
c
Well thank you very much for the help ๐Ÿ˜Š
๐Ÿ‘ 1
w