Skip to content

Conversation

@DrJosh9000
Copy link
Contributor

Description

Instead of hard- or firmly-coding the org and cluster, interrogate Buildkite with the Agent token.

Context

https://linear.app/buildkite/issue/PB-989/obtain-the-target-org-and-cluster-from-the-api-token

Changes

Per description.

Testing

  • Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • Code is formatted (with go tool gofumpt -extra -w .)

Disclosures / Credits

Copied and then rewrote parts of the API client from agent-stack-k8s.

@DrJosh9000 DrJosh9000 requested a review from a team December 4, 2025 00:31
Copy link
Contributor

@zhming0 zhming0 left a comment

Choose a reason for hiding this comment

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

Looks good. It might be a good moment to add some instruction to our README friends?

@DrJosh9000 DrJosh9000 merged commit 8758edc into main Dec 4, 2025
2 checks passed
@DrJosh9000 DrJosh9000 deleted the pb-989-obtain-the-target-org-and-cluster-from-the-api-token branch December 4, 2025 00:36
@DrJosh9000
Copy link
Contributor Author

What updates to the README did you have in mind?

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