-
-
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
Kubernetes provider 2.6.0 breaks EKS creation #1658
Comments
could you paste |
seems be related to hashicorp/terraform-provider-kubernetes#1469 |
and can be potentially related to hashicorp/terraform-provider-kubernetes#1467 |
Looks they released 2.6.1 (there is just a tag without github release) so you can try it |
Issue unfornuately still persists with 2.6.1, but it already fails on
|
please paste how you initialize kubernetes provider in terraform and check does you have in kube config context |
Apart from the module invocation I use the code from the Module documentation:
|
So I tested this and using following providers:
on our example https://github.com/terraform-aws-modules/terraform-aws-eks/tree/master/examples/launch_templates_with_managed_node_groups and no issue observed where kubernetes provider is initialized: terraform-aws-eks/examples/launch_templates_with_managed_node_groups/main.tf Lines 97 to 101 in 967403b
|
Just encountered the same issue again with a different cluster. A downgrade from 2.6.1 to 2.5.1 resolved the issue |
This issue has been automatically marked as stale because it has been open 30 days |
This issue was automatically closed because of stale in 10 days |
This issue has been resolved in version 18.0.0 🎉 |
I'm going to lock this issue 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 similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
I ran into the issue that Terraform fails to apply the calculated plan to set up EKS and import it into Rancher on a new project without existing state.
Plan fails with an error where the kubernetes provider (released on 2021-10-19) complains about an nonexisting context.
After some experimenting it turns out that the issue can be avoided by using kubernetes provider in Vaersion
<2.6.0
.I am not sure whether it is an issue of the EKS module or in kubernetes provider.
Versions
Reproduction
Steps to reproduce the behavior:
Createan EKS cluster with enabled creation of
aws-auth
using the latest versions of the EKS module and kubernetes provider.Code Snippet to Reproduce
(Omitted in the snippet is the
map_roles
andnode_groups
parameter values)Expected behavior
Actual behavior
Terminal Output Screenshot(s)
Additional context
Fixing kubernetes provider to <2.6.0 fixes the issue:
The text was updated successfully, but these errors were encountered: