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
Allow empty string for AgentInstallNamespace to support template namespaces (#400)
This change updates the AgentInstallNamespace field validation pattern
to allow empty strings, enabling template-type addons to use the namespace
defined in their addonTemplate.
Key changes:
- Updated validation pattern from ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ to
^([a-z0-9]([-a-z0-9]*[a-z0-9])?)?$ to allow empty strings
- Added documentation clarifying behavior for template vs non-template addons
- Regenerated CRD manifests
- Added comprehensive integration tests for validation
This allows users to explicitly set agentInstallNamespace to "" to use
their template's namespace, while maintaining backward compatibility with
the default "open-cluster-management-agent-addon" namespace.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Signed-off-by: zhujian <[email protected]>
Co-authored-by: Claude <[email protected]>
0 commit comments