Skip to content

Commit f12b228

Browse files
committed
Remove duplicated volume
1 parent 8b967ad commit f12b228

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

install/installer/pkg/components/cluster/certmanager.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
package cluster
66

77
import (
8+
"fmt"
89
"time"
910

1011
"github.com/gitpod-io/gitpod/installer/pkg/common"
@@ -19,7 +20,7 @@ import (
1920

2021
func certmanager(ctx *common.RenderContext) ([]runtime.Object, error) {
2122
issuerName := "gitpod-self-signed-issuer"
22-
secretCAName := "gitpod-identity-trust-roots"
23+
secretCAName := "gitpod-identity-trust-root"
2324

2425
return []runtime.Object{
2526
// Define a self-signed issuer so we can generate a CA
@@ -89,7 +90,7 @@ func certmanager(ctx *common.RenderContext) ([]runtime.Object, error) {
8990
IsCA: true,
9091
Duration: &metav1.Duration{Duration: time.Duration(2190 * time.Hour)}, // 90 days
9192
CommonName: "ca.gitpod.cluster.local",
92-
SecretName: secretCAName,
93+
SecretName: fmt.Sprintf("%v-intermediate", secretCAName),
9394
PrivateKey: &v1.CertificatePrivateKey{
9495
Algorithm: v1.ECDSAKeyAlgorithm,
9596
Size: 256,

install/installer/pkg/components/registry-facade/daemonset.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,12 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
224224
Name: name,
225225
MountPath: "/mnt/pull-secret",
226226
},
227+
{
228+
Name: "ca-certificate",
229+
MountPath: "/usr/local/share/ca-certificates/gitpod-ca.crt",
230+
SubPath: "ca.crt",
231+
ReadOnly: true,
232+
},
227233
common.CAVolumeMount(),
228234
},
229235
volumeMounts...,
@@ -288,10 +294,11 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
288294
}},
289295
},
290296
{
291-
Name: "ws-manager-client-tls-certs",
297+
298+
Name: "ca-certificate",
292299
VolumeSource: corev1.VolumeSource{
293300
Secret: &corev1.SecretVolumeSource{
294-
SecretName: wsmanager.TLSSecretNameClient,
301+
SecretName: "gitpod-identity-trust-root",
295302
},
296303
},
297304
},

0 commit comments

Comments
 (0)