-
Notifications
You must be signed in to change notification settings - Fork 958
New issue
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
Support kubeconfig file data instead of path only #1735
Comments
Hello! Thank you for opening this issue. Currently there's a workaround for this using yamldecode, see this example: |
Hello! I would like to configure the provider this way and I'm interesting to contribute in this feature. |
Some fields of kubeconfig file are not covered in provider arguments, like Currently, even if we have terraform variables, we need to write a file and use With this proposal, it would be easier. We would provide just |
Oh please let this get some traction ASAP. 😄 |
That is a neat feature that will undoubtedly simplifies quite some use-cases, really interested in that! :) |
To add more reasons to support this, I would argue that the workaround of writing a temp file and then specifying the |
Marking this issue as stale due to inactivity. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. This helps our maintainers find and focus on the active issues. Maintainers may also remove the stale label at their discretion. Thank you! |
Description
Would like to be able to provide kubeconfig data directly to the provider instead of a path to the file. Currently trying to pull the data from a Vault secret and it's failing because it's the contents of the file and not the path.
Potential Terraform Configuration
Ideally would like to do something like this:
Currently it only accepts config_path and so providing it the way above errors out with "'config_path' refers to an invalid path:" - proposing adding config_data option to supply the kubeconfig contents directly
Setup that doesn't work currently:
References
Something similar was previously requested, but the issue is now closed.
#917
Community Note
The text was updated successfully, but these errors were encountered: