chore(tls): Add secretName to the values

The seret name for TLS wasn't editable, it may be useful to change it
when we generate TLS certificates for specific installation.
This commit is contained in:
2024-12-05 06:43:43 +01:00
parent 4d0e5b2e6a
commit 5c939383be
4 changed files with 133 additions and 16 deletions

View File

@@ -21,7 +21,8 @@ type PersistenceValue struct {
}
type TLS struct {
Enabled bool `yaml:"enabled"`
Enabled bool `yaml:"enabled"`
SecretName string `yaml:"secretName"`
}
// IngressValue is a ingress configuration that will be saved in values.yaml.
@@ -92,6 +93,10 @@ func (v *Value) AddIngress(host, path string) {
Host: host,
Path: path,
Class: "-",
TLS: TLS{
Enabled: true,
SecretName: "",
},
}
}