Skip to content

policy: allow minor releases to change the worker pod template - #4253

Open
Haven Xia (HavenXia) wants to merge 3 commits into
agent-substrate:mainfrom
HavenXia:pod-template-policy
Open

Haven Xia (HavenXia) wants to merge 3 commits into
agent-substrate:mainfrom
HavenXia:pod-template-policy

Conversation

@HavenXia

Copy link
Copy Markdown
Member

Part of #4017. A follow-up PR will add the worker pod template golden test and update upgrade e2e.

  • Update the version-skew-policy.md and upgrade runbook so a minor release may change the worker pod template, documenting the extra WorkerPool roll on upgrade and rollback.
  • Add an Upgrade Notes section for the upgrade-note label in .github/release.yml, and document it in docs/dev/release-notes.md, docs/dev/releasing.md, and .github/PULL_REQUEST_TEMPLATE.md.

AI use: Gemini-assisted, I reviewed and verified the changes.

  • Tests pass
  • Docs updated

The version skew policy said ate-controller renders the same worker pod
template for a whole major, so that no WorkerPool rolls at
ate-controller's step. That left no way to ship a change to the worker
pod spec, such as a security fix, before the next major.

A minor release may now change the template. The policy and the upgrade
runbook say what that costs: every WorkerPool rolls a second time at
ate-controller's step, and a rollback rolls them there too. ateworker
N+1 must still run with the template ate-controller N renders.

Signed-off-by: Haven Xia <haoyuxia@google.com>
Non-breaking changes that still affect an upgrade, such as a minor release
changing the worker pod template, need a visible place in the release notes
without using the breaking-change label.

Add an Upgrade Notes category for the upgrade-note label right after
Breaking Changes in .github/release.yml, and document it in the release
notes guide, the releasing guide, and the pull request template.

Signed-off-by: Haven Xia <haoyuxia@google.com>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Agent assisted first pass :-) I agree with the direction, the runbook needs a couple more spots updated for the extra roll.

  • we need to create the upgrade-note label, it doesn't exist yet, and #3466 should get it since 1.1 already changes the template vs 1.0
  • until the golden test from #4017 lands nothing flags a template change in review, so the runbook depends on someone remembering the label
  • the upgrade e2e follow-up has to land before #4249's cross-minor lane, which crosses #3466 and will fail at upgrade_test.go:224 until then
  • #4182 is waiting on this too

Comment thread docs/guides/upgrade.md Resolved
Comment thread docs/guides/upgrade.md Resolved
Comment thread docs/guides/upgrade.md Resolved
Comment thread docs/reference/version-skew-policy.md Resolved
Comment thread docs/reference/version-skew-policy.md Resolved
Comment thread docs/reference/version-skew-policy.md Resolved
State in the version skew policy that patch releases do not change the
worker pod template, and that ate-api-server N+1 must not rely on
behavior only the N+1 template enables until ate-controller's roll
finishes. Scope the roll wording to affected WorkerPools rather than
every pool.

Update the upgrade runbook overview, preflight, step 4b (all-at-once
roll, new ReplicaSet check, failed worker startup, and Actors note), and
step 4 rollback guidance (evictions and when to wait for rolls).

Signed-off-by: Haven Xia <haoyuxia@google.com>
@HavenXia

Copy link
Copy Markdown
Member Author

Created and added to #3466.

I have them locally, will send out soon.

Yes.

Added label to it and left a comment there.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/upgrade kind/docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants