Skip to content

(feat) add SkipNamespaceCreation to creation bundle#612

Merged
gianlucam76 merged 1 commit intoprojectsveltos:mainfrom
gianlucam76:skip-namespace
Apr 2, 2026
Merged

(feat) add SkipNamespaceCreation to creation bundle#612
gianlucam76 merged 1 commit intoprojectsveltos:mainfrom
gianlucam76:skip-namespace

Conversation

@gianlucam76
Copy link
Copy Markdown
Member

When Sveltos deploys resources defined in PolicyRefs or KustomizationRefs, it automatically attempts to "Get" the target namespace and "Create" it if it is missing. While convenient, this behavior forces Sveltos to require cluster-wide get and create permissions for Namespaces.

For many managed production environments, Sveltos might be granted limited RBAC. If a user is operating in a multi-tenant cluster where namespaces are pre-provisioned and Sveltos lacks cluster-level permissions, the deployment currently fails.

Changes:

  • Introduced SkipNamespaceCreation to the ConfigurationBundle so to pass sveltos-applier the PolicyRefs and KustomizationRef structs.
  • When enabled, Sveltos bypasses the namespace check/creation logic and attempts to deploy resources directly.

When Sveltos deploys resources defined in PolicyRefs or KustomizationRefs,
it automatically attempts to "Get" the target namespace and "Create" it if
it is missing. While convenient, this behavior forces Sveltos to require
cluster-wide get and create permissions for Namespaces.

For many managed production environments, Sveltos might be granted limited RBAC.
If a user is operating in a multi-tenant cluster where namespaces are pre-provisioned
and Sveltos lacks cluster-level permissions, the deployment currently fails.

Changes:

- Introduced SkipNamespaceCreation to the ConfigurationBundle so to pass sveltos-applier
the PolicyRefs and KustomizationRef structs.
- When enabled, Sveltos bypasses the namespace check/creation logic and attempts to deploy
resources directly.
@gianlucam76 gianlucam76 merged commit 26435e6 into projectsveltos:main Apr 2, 2026
2 checks passed
@gianlucam76 gianlucam76 deleted the skip-namespace branch April 2, 2026 18:47
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