Skip to content
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

[Feature] resource_cluster data source #119

Open
scott-the-programmer opened this issue Dec 23, 2023 · 4 comments
Open

[Feature] resource_cluster data source #119

scott-the-programmer opened this issue Dec 23, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@scott-the-programmer
Copy link
Owner

To be close to feature complete, we should implement the ability to reference an existing minikube cluster as a data source

The goal is to allow users to reference previously created clusters (either created via the cli, or through a separate terraform stack) by specifying something like

data "minikube_cluster" "some_cluster" {
    cluster_name = "some_existing_cluster_name"
}

provider "kubernetes" {
  host = minikube_cluster.some_cluster.host

  client_certificate     = data.minikube_cluster.some_cluster.client_certificate
  client_key             = data.minikube_cluster.some_cluster.client_key
  cluster_ca_certificate = data.minikube_cluster.some_cluster.cluster_ca_certificate
}
@scott-the-programmer scott-the-programmer self-assigned this Dec 23, 2023
@scott-the-programmer scott-the-programmer added the enhancement New feature or request label Dec 23, 2023
@caerulescens
Copy link
Contributor

Awesome feature, can't wait.

@caerulescens
Copy link
Contributor

I could use this functionality; may I implement it?

@scott-the-programmer
Copy link
Owner Author

I could use this functionality; may I implement it?

Yup, that would be awesome! I haven't had much time lately, so any help would be appreciated.

I suspect that the implementation would be fairly easy, i.e. pulling the existing config via a cluster name - but i'm not entirely sure if there's a convenient call in minikube to grab this

@caerulescens
Copy link
Contributor

Great, and that's what I was expecting too; nothing too difficult.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants