From 64f11d3d438f17e10f66488dd9c837092ed6ec98 Mon Sep 17 00:00:00 2001 From: Simon Emms Date: Fri, 7 Jan 2022 20:45:14 +0000 Subject: [PATCH] [installer]: use a pointer deref if the ssh gateway secret does not exist --- installer/pkg/components/ws-proxy/deployment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/pkg/components/ws-proxy/deployment.go b/installer/pkg/components/ws-proxy/deployment.go index 4bb062cb038679..be5fcd2ded0126 100644 --- a/installer/pkg/components/ws-proxy/deployment.go +++ b/installer/pkg/components/ws-proxy/deployment.go @@ -44,7 +44,7 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) { MountPath: "/mnt/certificates", }) } - if ctx.Config.SSHGatewayHostKey.Name != "" { + if ctx.Config.SSHGatewayHostKey != nil { volumes = append(volumes, corev1.Volume{ Name: "host-key", VolumeSource: corev1.VolumeSource{