terraform-provider-kubernetes icon indicating copy to clipboard operation
terraform-provider-kubernetes copied to clipboard

Kubernetes Server Version data

Open framctr opened this issue 2 years ago • 4 comments
trafficstars

Description

Get the server version of Kubernetes as a data object. It would be useful in cases in which someone needs to create resources depending on the kubernetes version (e.g., deprecated resources removed in a future k8s version).

Potential Terraform Configuration

Example:

data "kubernetes_server_version" "cluster_name"  { }

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

framctr avatar Jul 19 '23 07:07 framctr

We have a function that would help in implementing this data source

BBBmau avatar Jul 19 '23 14:07 BBBmau

@BBBmau I gave this one a poke as a foray into golang and have something that works locally but can't push the branch. What's the recommended path here?

torqu3e avatar Sep 27 '23 19:09 torqu3e

@BBBmau I gave this one a poke as a foray into golang and have something that works locally but can't push the branch. What's the recommended path here?

Hello! Are you attempting to push to a branch that you made from a cloned repo? You'll need to fork it and make the changes on your forked repo then from there make a PR for us to review.

BBBmau avatar Sep 28 '23 17:09 BBBmau

Here is the PR for this feature https://github.com/hashicorp/terraform-provider-kubernetes/pull/2306

daemon4d-us avatar Oct 05 '23 06:10 daemon4d-us

Closed from merging this PR: https://github.com/hashicorp/terraform-provider-kubernetes/pull/2306

BBBmau avatar Oct 11 '24 06:10 BBBmau