Replace Deployments when the strategy type changes #2

Merged
litelotus merged 1 commit from fix/yarr-once-over into main 2026-11-19 12:37:13 +00:00
Owner

Switching the live Deployments to Recreate failed in preview:
"spec.strategy.rollingUpdate: Forbidden: may not be specified when
strategy type is 'Recreate'". The API server defaulted rollingUpdate
when it created each Deployment, and server-side apply doesn't remove
it.

Replace each Deployment when spec.strategy.type changes, deleting the
old one first, so the new object starts without rollingUpdate and old
and new pods never run together. This replaces the six Deployments once;
later deploys don't change the strategy type.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

Switching the live Deployments to Recreate failed in preview: "spec.strategy.rollingUpdate: Forbidden: may not be specified when strategy type is 'Recreate'". The API server defaulted rollingUpdate when it created each Deployment, and server-side apply doesn't remove it. Replace each Deployment when spec.strategy.type changes, deleting the old one first, so the new object starts without rollingUpdate and old and new pods never run together. This replaces the six Deployments once; later deploys don't change the strategy type. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace Deployments when the strategy type changes
Some checks failed
ci/crow/push/deploy Pipeline failed
690e36992d
Switching the live Deployments to Recreate failed in preview:
"spec.strategy.rollingUpdate: Forbidden: may not be specified when
strategy type is 'Recreate'". The API server defaulted rollingUpdate
when it created each Deployment, and server-side apply doesn't remove
it.

Replace each Deployment when spec.strategy.type changes, deleting the
old one first, so the new object starts without rollingUpdate and old
and new pods never run together. This replaces the six Deployments once;
later deploys don't change the strategy type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
litelotus deleted branch fix/yarr-once-over 2026-11-19 12:37:25 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
homelab/yarr!2
No description provided.