Skip to content

feat: add --skew flag and keep a single workload without it - #97

Merged
marcopiraccini merged 1 commit into
mainfrom
skew-flag
Aug 13, 2026
Merged

marcopiraccini merged 1 commit into
mainfrom
skew-flag

Conversation

@marcopiraccini

@marcopiraccini marcopiraccini commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

desk deploy named the workload after the image tag when no --version was given, and the tag is a Date.now() value, so every deploy created a new Deployment instead of replacing the previous one. Nothing removed the old one either: expiry is skew-protection machinery, which ICC leaves off when the feature is disabled.

--skew now selects the shape, and naming a --version implies it. With it, each version is its own workload, ICC manages routing and expiry, and a version is generated before the build when none is named so it can be baked in as PLT_DEPLOYMENT_ID. Without it, the workload keeps the name {app}, each deploy rolls it over in place, and desk writes the HTTPRoute itself.

Replaces the profile lookup from #95, which inferred the mode from skew_protection.enable: the flag does not assume the profile matches the cluster being deployed to (which makes sense now that sp can be enabled per-app).

Companion to platformatic/icc-3#989. Note that profiles/development.yaml also carries an unrelated edit commenting out the workflow service.

Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
@marcopiraccini marcopiraccini changed the title use version and different deployments if skew enabled feat: add --skew flag and keep a single workload without it Aug 13, 2026
@marcopiraccini
marcopiraccini marked this pull request as ready for review August 13, 2026 11:35

@leorossi leorossi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marcopiraccini
marcopiraccini merged commit 1e2881c into main Aug 13, 2026
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.

3 participants