Set empty TLS secrets by default instead of referencing non-existent ones from the config (#29688)

This change fixes nginx errors regarding non-existent config:

e.g.:
```
W0602 09:49:37.725821       7 controller.go:1720] Error getting SSL certificate "fleetdm/chart-example-tls": local SSL certificate fleetdm/chart-example-tls was not found
```

```
➜  ~ k describe ingress fleetdm -n fleetdm
Name:             fleetdm
....
Ingress Class:    nginx
Default backend:  <default>
TLS:
  chart-example-tls terminates chart-example.local
Rules:
```

This approach is simpler than requiring everyone to set tls: [] in their
values file.
This commit is contained in:
Oleksandr Palamarchuk 2025-06-03 17:22:57 +03:00 committed by GitHub
parent 590bfd4cf3
commit 4a411c3703
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 9 deletions

View file

@ -55,10 +55,10 @@ ingress:
paths:
- path: /
pathType: ImplementationSpecific
tls:
- secretName: chart-example-tls
hosts:
- chart-example.local
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
## Section: Fleet
# All of the settings relating to configuring the Fleet server

View file

@ -56,11 +56,10 @@ ingress:
paths:
- path: /
pathType: ImplementationSpecific
#tls: []
tls:
- secretName: chart-example-tls
hosts:
- chart-example.local
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious