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

enable the ability to change the kubernetes API version from vars #183

Closed
jcalles opened this issue Apr 5, 2023 · 2 comments
Closed

enable the ability to change the kubernetes API version from vars #183

jcalles opened this issue Apr 5, 2023 · 2 comments

Comments

@jcalles
Copy link

jcalles commented Apr 5, 2023

Describe the Feature

Im using Atlantis to deploy and change my EKS cluster and whenI've tried to use this var: kube_exec_auth_enabled = true terraform fails as shown:

Error: Failed to configure client: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"

Error: Failed to configure client: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1betha1"

I have added this code in variables.tf:

variable "k8s_provider_api_version" {
default = "client.authentication.k8s.io/v1"
}

and this in auth.tf

dynamic "exec" {
    for_each = local.kube_exec_auth_enabled ? ["exec"] : []
    content {
      #api_version = "client.authentication.k8s.io/v1alpha1"
      api_version = var.k8s_provider_api_version

Expected Behavior

No changes. Infrastructure is up-to-date.

This means that Terraform did not detect any differences between your
configuration and real physical resources that exist. As a result, no
actions need to be performed.

Use Case

to run terraform in CI/CD pipelines

@jcalles
Copy link
Author

jcalles commented May 19, 2023

any comment ?

@Nuru
Copy link
Contributor

Nuru commented May 20, 2023

Closing as duplicate of #123. Please see extensive discussion there and in #131.

Also: note the typo in your error message v1betha1 should be v1beta1

@Nuru Nuru closed this as completed May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants