Skip to content

feat(k8s/cluster): add errorHint method to EKS provider#10

Open
rafeegnash wants to merge 1 commit intok8-gcp-supportfrom
issue-70-eks-error-handling
Open

feat(k8s/cluster): add errorHint method to EKS provider#10
rafeegnash wants to merge 1 commit intok8-gcp-supportfrom
issue-70-eks-error-handling

Conversation

@rafeegnash
Copy link
Copy Markdown

Summary

  • Adds errorHint method to EKS provider that provides helpful guidance for common AWS CLI errors
  • Matches the pattern already implemented in the GKE provider for consistent user experience
  • Adds comprehensive tests covering all error hint scenarios

Error Categories Covered

  • Access denied and authorization errors
  • Resource not found errors
  • Invalid parameter errors
  • Resource in use errors
  • Cluster already exists errors
  • Limit/quota exceeded errors
  • Credential errors (missing or expired)
  • Invalid region errors
  • VPC/subnet/security group not found errors
  • IAM role not found errors
  • Throttling errors

Test Plan

  • All existing cluster tests pass
  • New error hint tests pass with all 16 scenarios covered
  • Code formatted with gofmt

Closes bgdnvk#70

Add errorHint method that provides helpful guidance for common AWS CLI
errors. This matches the pattern already implemented in the GKE provider.

Error categories covered:
- Access denied and authorization errors
- Resource not found errors
- Invalid parameter errors
- Resource in use errors
- Cluster already exists errors
- Limit/quota exceeded errors
- Credential errors (missing or expired)
- Invalid region errors
- VPC/subnet/security group not found errors
- IAM role not found errors
- Throttling errors

Also adds comprehensive tests for all error hint scenarios.

Refs bgdnvk#70

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant