You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add namespace configuration support for EKS addons (#8476)
* feat: Add namespace configuration support for EKS addons
This commit implements namespace configuration for EKS addons, allowing users to deploy addons to custom namespaces instead of the default kube-system namespace.
Key changes:
- Add AddonNamespaceConfig struct with namespace field
- Add namespaceConfig field to Addon struct with validation
- Implement Kubernetes DNS-1123 namespace name validation
- Add namespace config to JSON schema with proper definitions
- Update create addon action to pass namespace config to AWS API
- Update get addon action to retrieve and display namespace info
- Add namespace config immutability validation for updates
- Add comprehensive test coverage for namespace validation scenarios
- Update CLI to display namespace column in addon listings
Features:
- Namespace config is optional (defaults to kube-system if not specified)
- Validates namespace names according to Kubernetes DNS-1123 standard
- Namespace configuration is immutable after addon creation
- Supports empty namespace (uses default behavior)
- Comprehensive error messages for validation failures
Testing:
- Unit tests for namespace validation (valid/invalid cases)
- CLI tests for create and update operations
- Integration tested with aws-ebs-csi-driver addon
- Verified addon deployment to custom namespace
- Confirmed immutability enforcement during updates
* test: Add comprehensive test coverage for addon namespace config
- Add unit tests for create addon with namespace config
- Add unit tests for update addon with namespace config validation
- Add unit tests for get addon with namespace config display
- Test valid and invalid namespace scenarios
- Test immutability enforcement during updates
- Verify AWS API integration with namespace config
* test: Add integration tests for addon namespace config
- Add integration tests for creating addons with custom namespaces
- Test namespace config validation in real cluster scenarios
- Verify addon deployment to custom namespaces
- Test namespace config immutability during updates
- Add comprehensive end-to-end testing coverage
* deps: Update Go dependencies for addon namespace config feature
- Update AWS SDK dependencies to support namespace config API
- Update go.mod and go.sum with latest dependency versions
- Ensure compatibility with EKS addon namespace configuration
* Update user docs for addon namespace
* go mod tidy
* bump dependencies
* Update generated deepcopy methods for AddonNamespaceConfig
* Fix unit test issues
- Update golden files for printer tests to include new DeletionProtection field
- Fix code generation script to avoid process substitution issues on macOS
* add cli command for addon namespace
* gofmt recent changes
---------
Co-authored-by: sapphirew <[email protected]>
0 commit comments