Skip to content

PS-1695: configurable controller-id to via CLI and env var#828

Merged
zhming0 merged 1 commit intomainfrom
ming/ps-1695
Mar 5, 2026
Merged

PS-1695: configurable controller-id to via CLI and env var#828
zhming0 merged 1 commit intomainfrom
ming/ps-1695

Conversation

@zhming0
Copy link
Contributor

@zhming0 zhming0 commented Feb 20, 2026

This PR makes the ID config for k8s stack configurable via CLI and Env var. Previously it was only configurable via config file.

It's a useful configuration for people who wants to deploy multiple controllers replicas for the same queue without using Helm.

As part of this change, I've documented the implication of ID in our job distribution.

Copy link
Contributor

@DrJosh9000 DrJosh9000 left a comment

Choose a reason for hiding this comment

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

The name ID for an env var is non-specific (ID of what?), and if the controller weren't running in a container out in k8s there's a chance that ID might already exist (same goes for IMAGE, NAMESPACE, CONFIG). What about BUILDKITE_K8S_STACK_CONTROLLER_ID ?

@zhming0
Copy link
Contributor Author

zhming0 commented Mar 2, 2026

@DrJosh9000 good idea. We probably can't break backward compatibility for other env var but we can make this new env var right.

@zhming0 zhming0 requested review from a team and DrJosh9000 March 2, 2026 00:54
@zhming0 zhming0 merged commit fe7c03a into main Mar 5, 2026
1 check passed
@zhming0 zhming0 deleted the ming/ps-1695 branch March 5, 2026 00:15
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.

2 participants