Skip to content

Commit

Permalink
Pass referene to addTLSSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric Kring committed Oct 2, 2019
1 parent efb119e commit 60d0f5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ingress/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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{
Expand Down

0 comments on commit 60d0f5f

Please sign in to comment.