Skip to content

Commit

Permalink
fix: hosts and secretName cannot be updated
Browse files Browse the repository at this point in the history
  • Loading branch information
hoybx committed Jun 20, 2022
1 parent dda0a63 commit ecf0e3f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/resource/sql_ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ func (b *SQLIngressBuilder) BuildV1Ingress(obj client.Object) error {
ingress.Spec.IngressClassName = &ingressConfig.SQL.IngressClassName
}

for i := range ingressConfig.SQL.TLS {
ingress.Spec.TLS = append(ingress.Spec.TLS, v1.IngressTLS{
Hosts: ingressConfig.SQL.TLS[i].Hosts,
SecretName: ingressConfig.SQL.TLS[i].SecretName,
})
}

return nil
}

Expand Down

0 comments on commit ecf0e3f

Please sign in to comment.