-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Update cluster not respecting version in config-file / automatically upgrading control plane #915
Comments
Hi @dhanvi , thank you for your report. I see in the last line of the logs that it says
Did you check if it actually upgraded the cluster version or not? You can see the version running |
It didn't upgrade the cluster version without the --approve flag. (It does upgrade with the approve flag) Ideally I am expecting eksctl not to upgrade the cluster (even with the approve flag) as in the yaml we are defining the version to be as 1.12 |
Oh, I see. I think that makes sense. There are several commands where the config file is only used to get the region and the cluster name. We will discuss it in the team. |
The behaviour of the upgrade ignoring the version flag is totally non-intuitive so I would consider this a bug. We are trying to use eksctl as part of a larger automation piece to manage EKS clusters. Having to review the changes and approve them without having any control over what version of EKS we are upgrading to is something very difficult to script. |
Has this been discussed with the team? |
As mentioned in the Slack channel I run into that behavior. I expected that the version in the cluster config file is respected. Today an update of eksctl may also upgrade the clusters control plane version. E.g. switching to eksctl v0.17.0 forcefully upgraded all clusters to 1.15 if
With this approach we have to pin the eksctl version. The current ad-hoc nature of the eksctl commands makes it really hard to maintain multiple clusters in an automated way. It is hard to write down the target configuration into a file and maintain that target state via merge requests. |
Hi @hikhvar , Thank you for this feedback, it's really useful. This command has been creating confusion for a long time. It is commonly mistaken to be something like the
The I think what you would like to have is something like the Regarding reading the version from the config file I think that makes a lot of sense, I will raise this again with the team. |
I think implementing a |
What happened?
eksctl automatically upgraded the control plan version while doing
eksctl update cluster
What you expected to happen?
Not upgrade the control plane version unless asked for.
How to reproduce it?
eksctl create cluster -f eks_config.yaml
with config asand then try to update cluster with
eksctl update cluster -f eks_config.yaml
Related #909
The text was updated successfully, but these errors were encountered: