From 60d0f5f4d3e0ef8330c82da822a72a3921ab9abf Mon Sep 17 00:00:00 2001 From: Cedric Kring Date: Wed, 2 Oct 2019 21:44:45 +0200 Subject: [PATCH] Pass referene to addTLSSpec --- pkg/ingress/query.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ingress/query.go b/pkg/ingress/query.go index eae8dfd2c2..55ac5a0aab 100644 --- a/pkg/ingress/query.go +++ b/pkg/ingress/query.go @@ -57,7 +57,7 @@ func (i *QueryIngress) Get() *extv1beta1.Ingress { spec.Backend = &backend } - i.addTLSSpec(spec) + i.addTLSSpec(&spec) return &extv1beta1.Ingress{ TypeMeta: metav1.TypeMeta{ @@ -83,7 +83,7 @@ func (i *QueryIngress) Get() *extv1beta1.Ingress { } } -func (i *QueryIngress) addTLSSpec(spec extv1beta1.IngressSpec) { +func (i *QueryIngress) addTLSSpec(spec *extv1beta1.IngressSpec) { secretName := i.jaeger.Spec.Ingress.SecretName if secretName != "" { spec.TLS = append(spec.TLS, extv1beta1.IngressTLS{