Skip to content

Support Argo Rollouts with workloadRef for restart strategy#1118

Open
a1exx-k wants to merge 2 commits intostakater:masterfrom
a1exx-k:feature/workloadref-rollout-support
Open

Support Argo Rollouts with workloadRef for restart strategy#1118
a1exx-k wants to merge 2 commits intostakater:masterfrom
a1exx-k:feature/workloadref-rollout-support

Conversation

@a1exx-k
Copy link
Copy Markdown

@a1exx-k a1exx-k commented Apr 2, 2026

Rollouts using spec.workloadRef instead of an inline spec.template had empty pod templates, causing Reloader to skip them silently because container scanning found no ConfigMap/Secret references to watch.

This change hydrates the Rollout's template from the referenced Deployment at scan time, enabling Reloader to discover resource references and patch spec.restartAt when changes are detected.

resolves #1090

a1exx-k and others added 2 commits April 2, 2026 11:34
Rollouts using spec.workloadRef instead of an inline spec.template had
empty pod templates, causing Reloader to skip them silently because
container scanning found no ConfigMap/Secret references to watch.

This change hydrates the Rollout's template from the referenced
Deployment at scan time, enabling Reloader to discover resource
references and patch spec.restartAt when changes are detected.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Hydration runs on every polling cycle (~30s), making Info-level logs
too noisy in production. Debug level is appropriate for routine
per-cycle operations.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@a1exx-k
Copy link
Copy Markdown
Author

a1exx-k commented Apr 2, 2026

@Felix-Stakater this is an attempt to address challenges mentioned in #989 and #751 (comment)

Could you please review / provide your opinion on this approach?

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.

[ENHANCE] Restart Rollouts that use spec.workloadRef

1 participant