Skip to content
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 DescribeClusterVersions status type mismatch #2942

Open
2 of 3 tasks
hjoshi123 opened this issue Jan 6, 2025 · 3 comments
Open
2 of 3 tasks

EKS DescribeClusterVersions status type mismatch #2942

hjoshi123 opened this issue Jan 6, 2025 · 3 comments
Assignees
Labels
bug This issue is a bug. p3 This is a minor priority issue service-api This issue is due to a problem in a service API, not the SDK implementation.

Comments

@hjoshi123
Copy link

Acknowledgements

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

@hjoshi123 hjoshi123 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jan 6, 2025
@adev-code adev-code self-assigned this Jan 8, 2025
@adev-code adev-code added investigating This issue is being investigated and/or work is in progress to resolve the issue. p3 This is a minor priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Jan 8, 2025
@adev-code
Copy link

Hello @hjoshi123, thanks for reaching out and finding out the issue. The issue is that there is a discrepancy between the Service Response and the Service Model. I have reached out to the EKS Service team for fix and will provide an update. If you have any other questions, please let me know. Thanks.

@adev-code adev-code added service-api This issue is due to a problem in a service API, not the SDK implementation. and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Jan 8, 2025
@hjoshi123
Copy link
Author

Thank you @adev-code for looking into the issue. Let me know if I can contribute somehow.

@adev-code
Copy link

Welcome @hjoshi123 , just providing an internal ticket here for reference: P186768396. In the meantime, you could have a string literal or an enum (let's say for comparison). If you have any further questions, please let me know. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. p3 This is a minor priority issue service-api This issue is due to a problem in a service API, not the SDK implementation.
Projects
None yet
Development

No branches or pull requests

2 participants