Skip to content

(feat) Make namespace creation optional#1685

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

(feat) Make namespace creation optional#1685
gianlucam76 merged 1 commit intoprojectsveltos:mainfrom
gianlucam76: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 PolicyRef and KustomizationRef structs.
  • When enabled, Sveltos bypasses the namespace check/creation logic and attempts to deploy resources directly.

Default behavior remains unchanged (false) to ensure backward compatibility.

Fixes #1678

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 PolicyRef and KustomizationRef structs.
- When enabled, Sveltos bypasses the namespace check/creation logic and attempts to deploy resources directly.

Default behavior remains unchanged (false) to ensure backward compatibility.
@gianlucam76 gianlucam76 merged commit 6139402 into projectsveltos:main Apr 1, 2026
8 checks passed
@gianlucam76 gianlucam76 deleted the namespace branch April 1, 2026 17:58
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.

[feature request] Make onboarding of clusters with restricted permissions possible

1 participant