-
Notifications
You must be signed in to change notification settings - Fork 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
EKS: CDK cluster update event keeps seeing LoggingUpdate
, making it impossible to update the EKS version
#33063
Comments
Hi, can you share your code snippet about this for better visibility? From what I've read above looks like:
If you didn't redeploy at step 2 and 3 then the major difference is the logging props would change from |
Hi, thanks for checking! The scenario was as follows in our case:
Step 4 fails because of the error mentioned above. If I first enable at least one Logging Type again, then the update works as expected (because the It seems that somewhere in step 3, there is something going wrong, which causes the custom resource to receive incorrect values of the logging config. Looking at the cloudformation templates, what I can see is: Before step 3:
After step 3:
=> I would expect the template to have Hope that helps! |
Describe the bug
We're trying to update our EKS cluster to a new version (e.g. 1.29 => 1.30), and are running into an issue where the EKS cluster custom resource throws an error
Only one type of update - VpcConfigUpdate, LoggingUpdate, EndpointAccessUpdate, or AuthModeUpdate can be allowed
. The issue is that the custom resource thinks that there is both aLoggingUpdate
and an EKS version update, while we're not doing logging updates.Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
When doing an EKS version update, without any other changes, the custom resource should not detect a
LoggingUpdate
.Current Behavior
Upon inspection of the custom resource logs, we can see that it's getting the following event props:
So that causes the custom resource to see a difference in the logging config.
However, both props are incorrect as far as I can see:
oldProps
clusterLogging property should haveenabled: false
, as that's also what is configured on the actual cluster (which can be seen when runningaws eks describe-cluster
).newProps
should be the same asoldProps
(apart from the cluster version), since we're not doing any changes except for the versionSo it looks like there's something going wrong when disabling logs, causing it to have a mismatch between what's in the
oldProps
event properties, and what's actually configured in the cluster.Reproduction Steps
For an existing EKS cluster created using the EKS
Cluster
construct:loggingConfig
being incorrect in theoldProps
andnewProps
The workaround is to temporarily enable one of the logging types, then do the EKS update, and afterwards remove the logging types again.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.176.0
Framework Version
No response
Node.js Version
v20.18.1
OS
Mac/Debian
Language
TypeScript
Language Version
5.5.4
Other information
No response
The text was updated successfully, but these errors were encountered: