Meaning I can't apply the google-cloud resource in the same run as kubernetes_secret, because it will try to read the credential file during compilation, but create it as a resource during application.
This would be easier if the kubernetes_secret implementation was extended to allow referring to a file, and have the provider handle reading the file and base64 encoding it.
I want to do something like
However, I'm using google-cloud modules to create the credentials.json file like
Meaning I can't apply the google-cloud resource in the same run as kubernetes_secret, because it will try to read the credential file during compilation, but create it as a resource during application.
This would be easier if the kubernetes_secret implementation was extended to allow referring to a file, and have the provider handle reading the file and base64 encoding it.