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

provider.helm: "kubernetes": this field cannot be set #2

Closed
calind opened this issue Aug 7, 2017 · 2 comments
Closed

provider.helm: "kubernetes": this field cannot be set #2

calind opened this issue Aug 7, 2017 · 2 comments

Comments

@calind
Copy link
Contributor

calind commented Aug 7, 2017

When trying to run the plugin I get this error:

1 error(s) occurred:

* provider.helm: "kubernetes": this field cannot be set

The provider is configured as follows:

provider "helm" {
  kubernetes {
    host                    = "${google_container_cluster.core.endpoint}"
    username                = "${google_container_cluster.core.master_auth.0.username}"
    password                = "${google_container_cluster.core.master_auth.0.password}"
    client_certificate      = "${base64decode(google_container_cluster.core.master_auth.0.client_certificate)}"
    client_key              = "${base64decode(google_container_cluster.core.master_auth.0.client_key)}"
    cluster_ca_certificate  = "${base64decode(google_container_cluster.core.master_auth.0.cluster_ca_certificate)}"
  }
}
@mcuadros
Copy link
Collaborator

mcuadros commented Aug 7, 2017

Fixed by 230982e

@mcuadros mcuadros closed this as completed Aug 7, 2017
@calind
Copy link
Contributor Author

calind commented Aug 7, 2017

Now it gives the error:

* kubernetes: One of optional, required, or computed must be set

mcuadros added a commit that referenced this issue Oct 17, 2018
relu added a commit to relu/terraform-provider-helm that referenced this issue Nov 29, 2019
* Swap mergeValues with mergeMaps from helm cli package

* Fix kubernetes block configuration

Using tempfiles to store cert data since genericclioptions.ConfigFlags
don't allow us to set cert data directly and only accepts file paths.
This is an incovenience drawn from Helm's k8s client initialization pattern.
@ghost ghost locked and limited conversation to collaborators Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants