Skip to content

Commit

Permalink
fix: regression in deploying console with TLS certificates (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alevsk authored Oct 7, 2020
1 parent 872d47e commit 740e04c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/resources/deployments/console-deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@ func NewConsole(t *miniov1.Tenant) *appsv1.Deployment {
Items: tenantCertPaths,
},
})
// Console certificates generated by AutoCert
podVolumeSources = append(podVolumeSources, corev1.VolumeProjection{
Secret: &corev1.SecretProjection{
LocalObjectReference: corev1.LocalObjectReference{
Name: t.ConsoleTLSSecretName(),
},
Items: serverCertPaths,
},
})
} else if t.ConsoleExternalCert() {
serverCertSecret := t.Spec.Console.ExternalCertSecret.Name
// This covers both secrets of type "kubernetes.io/tls" and
Expand Down

0 comments on commit 740e04c

Please sign in to comment.