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 10:22:57 -04:00
committed by GitHub
parent 590bfd4cf3
commit 4a411c3703
2 changed files with 8 additions and 9 deletions
+4 -4
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
+4 -5
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