We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a rough flow in my Pulumi config of:
To do this, I get the kubeConfig like:
val k8sProvider = kubernetesProvider("k8sprovider") { args { kubeconfig(cluster.kubeConfigs.applyValue { kubeConfigs -> kubeConfigs.get(0).rawConfig }) } }
and then later on reference it like:
serviceAccount("my-service-account") { opts { // Specifies which cluster to apply it to. provider(k8sProvider) } }
so that it uses those credentials.
If I forget, it uses the kubectl last-used properties, which is not ideal.
I'm wondering if there is some way to "install" or put the k8s provider as the default for a scope? For instance:
using(k8sProvider) { serviceAccount("my-service-account") {} deployment("some-deployment") {...} }
I'm new to Kotlin, so not just trying to ask a language question - perhaps this needs library support?
The text was updated successfully, but these errors were encountered:
myhau
No branches or pull requests
I have a rough flow in my Pulumi config of:
To do this, I get the kubeConfig like:
and then later on reference it like:
so that it uses those credentials.
If I forget, it uses the kubectl last-used properties, which is not ideal.
I'm wondering if there is some way to "install" or put the k8s provider as the default for a scope? For instance:
I'm new to Kotlin, so not just trying to ask a language question - perhaps this needs library support?
The text was updated successfully, but these errors were encountered: