Skip to content

Conversation

@gianlucam76
Copy link
Member

@gianlucam76 gianlucam76 commented Jan 20, 2026

This PR introduces PreDelete and PostDelete validation hooks
to ClusterProfile and Profile resources. This allows users to define
checks that must pass before Sveltos begins deleting resources, or
after the deletion process has finished.

Logic

  1. Pre-Delete: Sveltos will execute these checks against the
    managed cluster before initiating the removal of any resources.
    If a check fails, the deletion is halted to prevent orphaned
    resources or inconsistent states.

  2. Post-Delete: Sveltos will execute these checks after the
    deletion logic completes to verify the cluster has reached the
    desired "clean" state.

@gianlucam76 gianlucam76 force-pushed the pre-delete-checks branch 3 times, most recently from 02f119d to df04338 Compare January 30, 2026 06:50
This PR introduces `PreDelete` and `PostDelete` validation hooks
to ClusterProfile and Profile resources. This allows users to define
checks that must pass before Sveltos begins deleting resources, or
after the deletion process has finished.

1. **Pre-Delete**: Sveltos will execute these checks against the
managed cluster before initiating the removal of any resources.
If a check fails, the deletion is halted to prevent orphaned
resources or inconsistent states.

2. **Post-Delete**: Sveltos will execute these checks after the
deletion logic completes to verify the cluster has reached the
desired "clean" state.
@gianlucam76 gianlucam76 changed the title Pre and post delete checks Add PreDelete and PostDelete Checks to ClusterProfile/Profile Jan 30, 2026
@gianlucam76 gianlucam76 merged commit 9afeefe into projectsveltos:main Jan 30, 2026
14 of 16 checks passed
@gianlucam76 gianlucam76 deleted the pre-delete-checks branch January 30, 2026 21:14
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