Develop #79

Merged
metal3d merged 2 commits from develop into master 2024-11-09 12:57:35 +00:00
2 changed files with 6 additions and 4 deletions
Showing only changes of commit 9b392a1f64 - Show all commits

View File

@@ -55,7 +55,7 @@ func NewIngress(service types.ServiceConfig, Chart *HelmChart) *Ingress {
Host: mapping.Hostname,
Class: mapping.Class,
Annotations: mapping.Annotations,
TLS: mapping.TLS,
TLS: TLS{Enabled: mapping.TLS.Enabled},
}
// ingressClassName := `{{ .Values.` + service.Name + `.ingress.class }}`

View File

@@ -20,6 +20,10 @@ type PersistenceValue struct {
Enabled bool `yaml:"enabled"`
}
type TLS struct {
Enabled bool `yaml:"enabled"`
}
// IngressValue is a ingress configuration that will be saved in values.yaml.
type IngressValue struct {
Annotations map[string]string `yaml:"annotations"`
@@ -27,9 +31,7 @@ type IngressValue struct {
Path string `yaml:"path"`
Class string `yaml:"class"`
Enabled bool `yaml:"enabled"`
TLS struct {
Enabled bool `yaml:"enabled"`
} `yaml:"tls"`
TLS TLS `yaml:"tls"`
}
// Value will be saved in values.yaml. It contains configuraiton for all deployment and services.