@echoing-postman-88590 this doesn't look correct, you're passing the provider as data into the secret? What are you trying to do?
e
echoing-postman-88590
03/30/2022, 3:32 PM
I am not passing any data to the kubernetes Provider, I am relying on the default "read from ~/.kube/config". I would like to copy the kubeconfig content into a secret
I'm sorta wondering why you want to put the kubeconfig in a secret though, you shouldn't really ever need to do that
e
echoing-postman-88590
03/30/2022, 3:36 PM
I need the kubeconfig content for another application, nothing to do with Pulumi.
b
billowy-army-68599
03/30/2022, 3:40 PM
got it. it still shouldn't be needed, because anything running in cluster can just use service account authentication.
but ultimately, you'll need to read the file from disk.
e
echoing-postman-88590
03/30/2022, 3:41 PM
Yes, fair comment about the service account, in this case it is just easier to provide the kubeconfig for the application I am using.
Anyway thanks for the suggestion.