-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
feat: Add support for managing aws-auth
configmap using new kubernetes_config_map_v1_data
resource
#1999
feat: Add support for managing aws-auth
configmap using new kubernetes_config_map_v1_data
resource
#1999
Conversation
…etes_config_map_v1_data` resource
485efeb
to
55d1c19
Compare
eh, need to take a deeper look at this again |
8f09a8b
to
39a75a3
Compare
ok good to go - had to add in a |
## [18.20.0](v18.19.0...v18.20.0) (2022-04-09) ### Features * Add support for managing `aws-auth` configmap using new `kubernetes_config_map_v1_data` resource ([#1999](#1999)) ([da3d54c](da3d54c))
This PR is included in version 18.20.0 🎉 |
What was the reason to rely on the aws cli instead of the e.g. data "aws_eks_cluster_auth" "cluster" {
name = module.eks.cluster_id
}
provider "kubernetes" {
host = module.eks.cluster_endpoint
cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)
token = data.aws_eks_cluster_auth.cluster.token
load_config_file = false
} |
its up to users to choose when they are using the module, but in the examples we are using exec because that is what is recommended https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs#exec-plugins |
if you have a fargate only cluster, you will also have to create the map , just like the self managed groups |
No, when using Fargate profiles and EKS managed node groups, the EKS service will automatically update the configmap to ensure the roles are added. Self-managed node groups are the only ones who do not update the configmap automatically |
thanks for clarifying that. was about to spin up a cluster to test this. |
@bryantbiggs , you meant to say "when using Fargate profiles and EKS managed node groups..."? |
`kubernetes_config_map_v1_data` See terraform-aws-modules/terraform-aws-eks#1999
Ehe, nice catch. |
@tanvp112 thanks for the catch - yes EKS managed node groups. updated the comment above so as to not confuse anyone who lands here |
* Use K8S Provider to manage AWS Auth ConfirMap `kubernetes_config_map_v1_data` See terraform-aws-modules/terraform-aws-eks#1999 * Loosen versions
…etes_config_map_v1_data` resource (terraform-aws-modules#1999)
## [18.20.0](terraform-aws-modules/terraform-aws-eks@v18.19.0...v18.20.0) (2022-04-09) ### Features * Add support for managing `aws-auth` configmap using new `kubernetes_config_map_v1_data` resource ([terraform-aws-modules#1999](terraform-aws-modules#1999)) ([da3d54c](terraform-aws-modules@da3d54c))
How does this new method work for multiple EKS clusters? |
Each cluster has its own configmap |
…etes_config_map_v1_data` resource (terraform-aws-modules#1999)
## [18.20.0](terraform-aws-modules/terraform-aws-eks@v18.19.0...v18.20.0) (2022-04-09) ### Features * Add support for managing `aws-auth` configmap using new `kubernetes_config_map_v1_data` resource ([terraform-aws-modules#1999](terraform-aws-modules#1999)) ([da3d54c](terraform-aws-modules@da3d54c))
Would it make sense to update https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/docs/UPGRADE-18.0.md? It currently has:
|
@stevo-f3 your comment is spot on!! Super confusing having the central documentation for the upgrade give essentially false misleading information. Wasted a large portion of my day attempting to figure out what the variables I see do and why they are supposedly unsupported even though they're not really |
@bryantbiggs thanks for reintroducing management of aws-auth ConfigMap. Would it make sense to also re-introduce same labels as before in v17 https://github.com/terraform-aws-modules/terraform-aws-eks/blob/v17.24.0/aws_auth.tf#L69-L75 ? |
## [18.20.0](terraform-aws-modules/terraform-aws-eks@v18.19.0...v18.20.0) (2022-04-09) ### Features * Add support for managing `aws-auth` configmap using new `kubernetes_config_map_v1_data` resource ([#1999](terraform-aws-modules/terraform-aws-eks#1999)) ([cf3b2e4](terraform-aws-modules/terraform-aws-eks@cf3b2e4))
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
aws-auth
configmap using newkubernetes_config_map_v1_data
resourcekubernetes_config_map
is added with a variablevar.create_aws_auth_configmap
for scenarios where the configmap does not exist and will need to be created (i.e. - using self managed node groups only)Motivation and Context
Breaking Changes
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull request