Skip to content

Revive retained zero-replica Deployments when a drained version becomes draining again #332

@Shivs11

Description

@Shivs11

Worker Controller can scale a drained version’s Kubernetes Deployment to 0 after scaledownDelay, then delete it later after deleteDelay.

We should verify what happens if, during that retention window, the version becomes Draining again because someone moves workflows onto it with a Versioning Override.

Expected behaviour: while the Deployment still exists, the controller should be able to scale it back up so workers can poll for that version again and resume/complete work. There is some existing logic that may already handle this for rollback/target-version cases, but we should add a regression test to confirm the drained-to-zero Deployment can be revived before deleteDelay expires. If the test fails, we may need a small adjustment to the scaling logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions