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

Fix k8s driver with certs cannot boot #2454

Merged
merged 1 commit into from
May 27, 2024

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
102 checks passed
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kubernetes self-signed certificate not copied to container
2 participants