Skip to content

kubernetes: fix rootless BuildKit configuration - #4231

Open
crazy-max wants to merge 1 commit into
docker:masterfrom
crazy-max:fix-kubernetes-rootless-config
Open

crazy-max wants to merge 1 commit into
docker:masterfrom
crazy-max:fix-kubernetes-rootless-config

Conversation

@crazy-max

Copy link
Copy Markdown
Member

Rootless BuildKit uses a different default configuration directory, so it ignores the Kubernetes driver's configuration mounted at /etc/buildkit/buildkitd.toml. Pass that path explicitly with --config when the file is supplied, keeping user flags last so an explicit override still takes precedence.

Rootless BuildKit uses a different default configuration directory, so it
ignores the buildkitd.toml mounted at /etc/buildkit by the Kubernetes driver.

Pass the mounted configuration path explicitly when generating the pod
arguments. Keep user flags last so an explicit --config still takes
precedence, and leave arguments unchanged when no buildkitd.toml is supplied.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rootless kubernetes driver ignores buildkit config

1 participant