Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure agent images without updating controller with the "image" value #138

Open
andrewlarry opened this issue Mar 7, 2023 · 5 comments

Comments

@andrewlarry
Copy link

I'd like to add custom hooks to the agent image without updating the controller pod. I notice that when I deploy with --set image=my-custom-image:latest, the controller gets redeployed with my image. This was unexpected based on the help text.

--image string The image to use for the Buildkite agent (default "ghcr.io/buildkite/agent-k8s:latest")

Is that behavior intentional? And is there a recommended approach for customizing the agent images?

@benmoss
Copy link
Contributor

benmoss commented Mar 8, 2023

You want to use --set config.image instead of --set image. All the Helm values that start with config will go through to the controller's configuration, but anything that's top-level is values for the controller deployment itself. Sorry if that's a bit confusing.

@andrewlarry
Copy link
Author

Works as expected with --set config.image. Thanks for the help.

The help text is a bit misleading. "The image to use for the controller" seems more accurate.

@benmoss
Copy link
Contributor

benmoss commented Mar 8, 2023

The help text from here? I agree, that's a vestige of a time from before the Helm chart, those are the CLI options for the controller binary.

@andrewlarry
Copy link
Author

Ok, agent-stack-k8s --help makes more sense now. I though "Options" was a continuation of the "Deploy with Helm" section.

@bpoland
Copy link

bpoland commented Feb 23, 2024

Hey were you able to get your hooks working? I just figured out a way but not sure if I missed something!

#258

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

No branches or pull requests

3 participants