Skip to content

Commit

Permalink
[installer] Add custom CA cert to papi-server
Browse files Browse the repository at this point in the history
  • Loading branch information
geropl committed Dec 19, 2024
1 parent b29e06a commit 6c72f40
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
},
},
databaseSecretVolume,
common.CAVolume(),
}
volumeMounts := []corev1.VolumeMount{
{
Expand All @@ -59,6 +60,7 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
SubPath: configJSONFilename,
},
databaseSecretMount,
common.CAVolumeMount(),
}

_ = ctx.WithExperimental(func(cfg *experimental.Config) error {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ func TestDeployment_ServerArguments(t *testing.T) {
},
},
},
{
Name: "ca-certificates",
VolumeSource: corev1.VolumeSource{
ConfigMap: &corev1.ConfigMapVolumeSource{
LocalObjectReference: corev1.LocalObjectReference{
Name: "gitpod-ca-bundle",
},
},
},
},
{
Name: "stripe-secret",
VolumeSource: corev1.VolumeSource{
Expand Down

0 comments on commit 6c72f40

Please sign in to comment.