Skip to content

(feat) Unify Readiness Logic for Auto and Manual Promotion#1666

Merged
gianlucam76 merged 1 commit intoprojectsveltos:mainfrom
gianlucam76:promotion
Mar 26, 2026
Merged

(feat) Unify Readiness Logic for Auto and Manual Promotion#1666
gianlucam76 merged 1 commit intoprojectsveltos:mainfrom
gianlucam76:promotion

Conversation

@gianlucam76
Copy link
Copy Markdown
Member

@gianlucam76 gianlucam76 commented Mar 26, 2026

This PR moves the Delay, PreHealthCheckDeployment, and PostDelayHealthChecks logic into a shared reconciliation path. Whether a user chooses Auto or Manual mode, Sveltos will now perform the same sequence of validation steps before the stage is considered "ready."

Manual promotion shouldn't mean "blind promotion." By bringing these fields to manual mode, operators get:

  • Guardrails: Sveltos prevents a manual promotion from being triggered if health checks are failing.
  • Consistency: The same validation tests used in Auto mode can be used for sensitive production environments (Manual).
  • Reduced Human Error: Automatically deploying validation Jobs before asking for human approval ensures the reviewer has the data they need to make a decision.

This PR moves the `Delay`, `PreHealthCheckDeployment`, and `PostDelayHealthChecks` logic
into a shared reconciliation path. Whether a user chooses `Auto` or `Manual` mode, Sveltos
will now perform the same sequence of validation steps before the stage is considered "ready."

- **Manual promotion** shouldn't mean "blind promotion." By bringing these fields to manual mode, operators get:

- Guardrails: Sveltos prevents a manual promotion from being triggered if health checks are failing.
- Consistency: The same validation tests used in Auto mode can be used for sensitive production
environments (Manual).
- Reduced Human Error: Automatically deploying validation Jobs before asking for human approval ensures the
reviewer has the data they need to make a decision.
@gianlucam76 gianlucam76 merged commit a903a0e into projectsveltos:main Mar 26, 2026
24 checks passed
@gianlucam76 gianlucam76 deleted the promotion branch March 26, 2026 17: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