This message was deleted.
# general
s
This message was deleted.
k
You should be able to new the provider from the config, depending on the provider
e.g.
Copy code
provider: new k8s.Provider("admin-provider", {
          kubeconfig: stackRef.requireOutput("kubeConfigAdmin"),
        }),
This is what I do in a shared config class
f
@kind-mechanic-53546 Thanks for your answer. It works for
k8s.Provider
since it needs only one arg (the
kubeconfig
as a
string
), and I already do that for this one, but that does not really work well for other `Provider`s which require a lot of args (I could eventually export each value but that seems dirty and not practical).