Skip to content

Reject WorkerPool names longer than 63 characters - #3136

Merged
Tim Hockin (thockin) merged 1 commit into
agent-substrate:mainfrom
haiyanmeng:workerpool-name-max-63
Oct 23, 2026
Merged

Tim Hockin (thockin) merged 1 commit into
agent-substrate:mainfrom
haiyanmeng:workerpool-name-max-63

Conversation

@haiyanmeng

@haiyanmeng haiyanmeng commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

A WorkerPool name can be up to 253 characters, but ate-controller puts it in the ate.dev/worker-pool label on the worker pods and the pool's NetworkPolicy. Label values are capped at 63 characters. A longer name is accepted, and then every reconcile of the pool fails, with the error only in the controller log.

The CRD now rejects names longer than 63 characters at create time. Came up while reviewing #3130.

AI use: Claude Code wrote the change, the test rows and this description. I reviewed them.

@haiyanmeng
haiyanmeng marked this pull request as ready for review October 22, 2026 21:40
@haiyanmeng haiyanmeng added area/node kind/cleanup Small fixes that are not bugs, for example a typo in a code comment labels Oct 22, 2026
@haiyanmeng
haiyanmeng force-pushed the workerpool-name-max-63 branch from 7e5bec6 to 7011a53 Compare October 22, 2026 23:18
@haiyanmeng
haiyanmeng force-pushed the workerpool-name-max-63 branch from 7011a53 to 6c2553c Compare October 23, 2026 12:19

@EItanya Eitan Yarmush (EItanya) left a comment

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.

This solution LGTM, Benjamin Elder (@BenTheElder) mentioned he was just thinking through it so I'll wait for him to LGTM as well

@BenTheElder

Copy link
Copy Markdown
Collaborator

let's ship it, cc Julian Gutierrez Oschmann (@juli4n) have we thought about if this is the right way to expose this info?

@BenTheElder
Benjamin Elder (BenTheElder) added this pull request to the merge queue Oct 23, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 23, 2026
Worker pods and the pool's NetworkPolicy use the pool name as the
ate.dev/worker-pool label value, which Kubernetes caps at 63 characters.
A longer name was accepted, and then every reconcile failed.
@haiyanmeng
haiyanmeng force-pushed the workerpool-name-max-63 branch from 6c2553c to 0d23118 Compare October 23, 2026 22:02
@thockin
Tim Hockin (thockin) added this pull request to the merge queue Oct 23, 2026
Merged via the queue into agent-substrate:main with commit f470a3b Oct 23, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/node kind/cleanup Small fixes that are not bugs, for example a typo in a code comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants