-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[installer] Add custom CA secret support #9082
Conversation
@@ -64,3 +64,41 @@ func InternalCAContainer(ctx *RenderContext, mod ...func(*corev1.Container)) *co | |||
|
|||
return res | |||
} | |||
|
|||
// CustomCACertVolume produces the objects required to mount custom CA certificates | |||
func CustomCACertVolume(ctx *RenderContext) (vol *corev1.Volume, mnt *corev1.VolumeMount, env *corev1.EnvVar, ok bool) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Would it make sense to have the return values in a wrapper struct
@csweichel I think something is missing in the test description around I believe |
Yes. I just used
Yep, fixed it in the description.
AFAIK there are two incompatible versions of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good 👍 🛹
When running through the test steps, it fails for me on: ./installer validate cluster --config config.yaml
{
"status": "ERROR",
"items": [
...,
{
"name": "custom-ca-cert is present and valid",
"description": "ensures the custom-ca-cert secret is present and contains the required data",
"status": "ERROR",
"errors": [
{
"message": "secret custom-ca-cert not found",
"type": "ERROR"
}
]
}
]
}
My setup:
|
@easyCZ that's a UX bug in the installer. The installer requires users to pass the namespace explicitly, i.e. @corneliusludmann @lucasvaltl do we have an issue for this already? |
@csweichel Doesn't the workspace pod configuration have to be changed/updated as well so that git inside workspace can talk to an SCM with custom CA? |
Yes. That will be a follow up PR. We already have the corresponding support in ws-manager. All that's missing is a config change. |
Description
Adds custom CA cert support to the installer. When specified, the CA certs are mounted into
server
,image-builder
andws-daemon
.Related Issue(s)
Fixes #9077
How to test
(proper test is to install Gitpod on a cluster trying to talk to a Docker registry and SCM which use custom certs).
Release Notes