Skip to content

fix: use lastAppliedSpec for rolling update#2413

Closed
rugggger wants to merge 1 commit into03-30-fix_implement_spec_propagation_as_rolling_upgradefrom
03-31-fix_use_lastappliedspec_for_rolling_update
Closed

fix: use lastAppliedSpec for rolling update#2413
rugggger wants to merge 1 commit into03-30-fix_implement_spec_propagation_as_rolling_upgradefrom
03-31-fix_use_lastappliedspec_for_rolling_update

Conversation

@rugggger
Copy link
Copy Markdown
Contributor

@rugggger rugggger commented Mar 31, 2026

TL;DR

Simplified spec version tracking by consolidating status fields and removing unnecessary hash-based change detection.

What changed?

  • Renamed LastAppliedSpecVersion to LastAppliedSpec across all container status tracking
  • Removed hash-based spec change detection in HandleSpecUpdates() - now propagates cluster spec fields to all containers using per-field diffs to avoid unnecessary patches
  • Added first-deploy adoption logic that sets the current spec version without triggering a rolling upgrade
  • Updated upgrade preparation checks to use the renamed status field
  • Modified spec version mismatch handling to remove special case for explicit spec versions when allowRotateNonAnnotated=false

Why make this change?

We want to use LastAppliedSpec for the rolling updates flow

@github-actions
Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 4b278fa.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

Copy link
Copy Markdown
Contributor Author

rugggger commented Mar 31, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add the label main-merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@rugggger rugggger marked this pull request as ready for review March 31, 2026 08:18
@rugggger rugggger requested a review from a team as a code owner March 31, 2026 08:18
@graphite-app graphite-app Bot requested review from assafgi, kristina-solovyova and tigrawap and removed request for tigrawap March 31, 2026 08:19
@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented Mar 31, 2026

Graphite Automations

"Add anton/matt/sergey/kristina as reviwers on operator PRs" took an action on this PR • (03/31/26)

3 reviewers were added to this PR based on Anton Bykov's automation.

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