The Wayback Machine - https://web.archive.org/web/20251014182652/https://github.com/docker/buildx/pull/2454/
Skip to content

Conversation

kariya-mitsuru
Copy link
Contributor

When a self-signed certificate is specified in buildkitd.toml, the current implementation registers the certificate as a ConfigMap, but the volumes and volumeMounts in Deployment are incorrect, so the Deploymetnt cannot start.

This fixes #1800.

Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
@jedevc jedevc requested a review from crazy-max May 13, 2024 09:52
Copy link
Member

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

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

Not really familiar with k8s deployments but looking at changes in #787 and follow-up for k8s driver in #824, it looks good.

PTAL @tonistiigi @morlay

d.Spec.Template.Spec.Volumes = []corev1.Volume{{
Name: "config",
d.Spec.Template.Spec.Volumes = append(d.Spec.Template.Spec.Volumes, corev1.Volume{
Name: cfg.name,
Copy link
Member

Choose a reason for hiding this comment

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

Seems fine to use cfg.name here. Might have been an oversight in #824 (cc @tonistiigi @morlay)

@crazy-max crazy-max merged commit f98ef00 into docker:master May 27, 2024
@kariya-mitsuru kariya-mitsuru deleted the fix-k8s-driver branch May 29, 2024 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants