fix(schema): Use ingress default values

Ingress has some default values, like path and classname. We need to
ensure that values are taken or nil, and to apply them if they are not
set explicitally. Port is a sepcial case.
This commit is contained in:
2024-11-22 15:55:59 +01:00
parent e925f58e82
commit 7b890df1c5
3 changed files with 31 additions and 8 deletions

View File

@@ -51,9 +51,9 @@ func NewIngress(service types.ServiceConfig, Chart *HelmChart) *Ingress {
Chart.Values[service.Name].(*Value).Ingress = &IngressValue{
Enabled: mapping.Enabled,
Path: mapping.Path,
Path: *mapping.Path,
Host: mapping.Hostname,
Class: mapping.Class,
Class: *mapping.Class,
Annotations: mapping.Annotations,
TLS: TLS{Enabled: mapping.TLS.Enabled},
}