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

Migrate kube_exec_auth to client.authentication.k8s.io/v1beta1 api version #122

Closed
z0rc opened this issue Jul 29, 2021 · 2 comments
Closed
Labels
bug 🐛 An issue with the system

Comments

@z0rc
Copy link
Contributor

z0rc commented Jul 29, 2021

Describe the Bug

Running EKS 1.21. Module configured as

  kube_exec_auth_enabled             = true
  kube_exec_auth_aws_profile_enabled = true
  kube_exec_auth_aws_profile         = local.aws_profile

  kubernetes_config_map_ignore_role_changes = false

with latest AWS CLI v1.

terraform plan on existing provisioned cluster produces:

╷
│ Error: Get "https://1B1210D97134DAE6C8D072075758CAE9.gr7.eu-central-1.eks.amazonaws.com/api/v1/namespaces/kube-system/configmaps/aws-auth": getting credentials: exec plugin is configured to use API version client.authentication.k8s.io/v1alpha1, plugin returned version client.authentication.k8s.io/v1beta1
│ 
│   with module.eks.kubernetes_config_map.aws_auth[0],
│   on .terraform/modules/eks/auth.tf line 132, in resource "kubernetes_config_map" "aws_auth":
│  132: resource "kubernetes_config_map" "aws_auth" {
│ 
╵

Expected Behavior

Plan should succeed.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Install latest AWS CLI v1
  2. Provision EKS cluster with mentioned parameters

Environment (please complete the following information):

Anything that will help us triage the bug will help. Here are some ideas:

% terraform version
Terraform v1.0.3
on darwin_amd64
+ provider registry.terraform.io/hashicorp/aws v3.50.0
+ provider registry.terraform.io/hashicorp/kubernetes v2.3.2
+ provider registry.terraform.io/hashicorp/local v2.1.0
+ provider registry.terraform.io/hashicorp/null v3.1.0
+ provider registry.terraform.io/hashicorp/random v3.1.0
+ provider registry.terraform.io/hashicorp/template v2.2.0
+ provider registry.terraform.io/hashicorp/tls v3.1.0
+ provider registry.terraform.io/hashicorp/vault v2.21.0

Additional Context

aws/aws-cli@3569d49

@z0rc z0rc added the bug 🐛 An issue with the system label Jul 29, 2021
@Nuru
Copy link
Contributor

Nuru commented Jul 30, 2021

This is a breaking change in aws CLI 1.20.9 and 2.2.24, reverted in 1.20.12 and 2.2.25. Not really a bug in this module.

@Nuru
Copy link
Contributor

Nuru commented Aug 2, 2021

Fixed in aws CLI 1.20.12 and 2.2.25

@Nuru Nuru closed this as completed Aug 2, 2021
@Nuru Nuru pinned this issue Aug 2, 2021
@Nuru Nuru unpinned this issue May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants