Skip to content

Commit ecf0e3f

Browse files
author
hoybx
committed
fix: hosts and secretName cannot be updated
1 parent dda0a63 commit ecf0e3f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/resource/sql_ingress.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ func (b *SQLIngressBuilder) BuildV1Ingress(obj client.Object) error {
9090
ingress.Spec.IngressClassName = &ingressConfig.SQL.IngressClassName
9191
}
9292

93+
for i := range ingressConfig.SQL.TLS {
94+
ingress.Spec.TLS = append(ingress.Spec.TLS, v1.IngressTLS{
95+
Hosts: ingressConfig.SQL.TLS[i].Hosts,
96+
SecretName: ingressConfig.SQL.TLS[i].SecretName,
97+
})
98+
}
99+
93100
return nil
94101
}
95102

0 commit comments

Comments
 (0)