Skip to content

Commit 9b392a1

Browse files
committed
Fix problem on getting tls mapping
The types were not compatible to get TLS activation
1 parent 9358076 commit 9b392a1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

generator/ingress.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func NewIngress(service types.ServiceConfig, Chart *HelmChart) *Ingress {
5555
Host: mapping.Hostname,
5656
Class: mapping.Class,
5757
Annotations: mapping.Annotations,
58-
TLS: mapping.TLS,
58+
TLS: TLS{Enabled: mapping.TLS.Enabled},
5959
}
6060

6161
// ingressClassName := `{{ .Values.` + service.Name + `.ingress.class }}`

generator/values.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,18 @@ type PersistenceValue struct {
2020
Enabled bool `yaml:"enabled"`
2121
}
2222

23+
type TLS struct {
24+
Enabled bool `yaml:"enabled"`
25+
}
26+
2327
// IngressValue is a ingress configuration that will be saved in values.yaml.
2428
type IngressValue struct {
2529
Annotations map[string]string `yaml:"annotations"`
2630
Host string `yaml:"host"`
2731
Path string `yaml:"path"`
2832
Class string `yaml:"class"`
2933
Enabled bool `yaml:"enabled"`
30-
TLS struct {
31-
Enabled bool `yaml:"enabled"`
32-
} `yaml:"tls"`
34+
TLS TLS `yaml:"tls"`
3335
}
3436

3537
// Value will be saved in values.yaml. It contains configuraiton for all deployment and services.

0 commit comments

Comments
 (0)