terraform-provider-kubernetes
terraform-provider-kubernetes copied to clipboard
New data source: `kubernetes_server_version`
Description
Would like to be able to have access to server version.
Potential Terraform Configuration
data "kubernetes_server_version" "current" { }
References
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Hello! Thank you for opening this request, can you comment on what you would be using this feature for?
Hi @BBBmau
With this data source, we could solve the following case:
We have a terraform module that use kubernetes provider to create a ServiceAccount to obtain a non-expiring token.
If the kubernetes server version is greater than 1.24.0, we need to create a Secret annotated with kubernetes.io/service-account.name. Or else we just look for the auto-generated Secret for the ServiceAccount.
@BBBmau, I'd like to give this one a go, are you happy for me to raise a PR?
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!