EKS: CDK cluster update event keeps seeing LoggingUpdate
, making it impossible to update the EKS version
#33063
Labels
@aws-cdk/aws-eks
Related to Amazon Elastic Kubernetes Service
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p3
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
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: