Open
Description
Acknowledgements
- I have searched (https://github.com/aws/aws-sdk/issues?q=is%3Aissue) for past instances of this issue
- I have verified all of my SDK modules are up-to-date (you can perform a bulk update with
go get -u github.com/aws/aws-sdk-go-v2/...
)
Describe the bug
When a call to DescribeClusterVersions API is made it returns the following both from the CLI and SDK
{
"clusterVersion": "1.28",
"clusterType": "eks",
"defaultPlatformVersion": "eks.33",
"defaultVersion": false,
"releaseDate": "2023-09-25T18:00:00-06:00",
"endOfStandardSupportDate": "2024-11-25T17:00:00-07:00",
"endOfExtendedSupportDate": "2025-11-25T17:00:00-07:00",
"status": "EXTENDED_SUPPORT",
"kubernetesPatchVersion": "1.28.15"
},
However, the enum values in the code refers to different types of values as shown below:
const (
ClusterVersionStatusUnsupported ClusterVersionStatus = "unsupported"
ClusterVersionStatusStandardSupport ClusterVersionStatus = "standard-support"
ClusterVersionStatusExtendedSupport ClusterVersionStatus = "extended-support"
)
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
The enum type values should match the value returned by the API and CLI.
Current Behavior
The enum values are not matching.
Reproduction Steps
aws eks describe-cluster-versions --region us-west-2
Note the status field on the output.
Possible Solution
No response
Additional Information/Context
This is causing the following PR hashicorp/terraform-provider-aws#40741 to break since the status type is of the ClusterVersionStatus.
AWS Go SDK V2 Module Versions Used
github.com/aws/aws-sdk-go-v2/service/eks v1.56.0
Compiler and Version used
go version go1.23.4 darwin/arm64
Operating System and version
MacOS 15.3
Activity