Bug: Helm Chart fleet.tls.secretName not usable
Fleet version: (head to the "My account" page in the Fleet UI or run fleetctl --version)
4.17.0
Operating system: (e.g. macOS 11.2.3)
k3s v1.21.11+k3s1
Web browser: (e.g. Chrome 88.0.4324)
n/a
🧑💻 Expected behavior
I expected to be able to set secretName: in the tls section of fleet in values.yaml to point to an existing secret like this: fleet: tls: secretName: fleet-cert
I also expected, that the value is documented in values.yaml
💥 Actual behavior
Setting the name of the secret does not work.
More info
Looking at the deployment.yaml template in the helm chart, it appears that the secretName referenced in the voumes section: volumes: {{- if .Values.fleet.tls.enabled }} - name: fleet-tls secret: secretName: "{{ .Values.fleet.secretName }}" {{- end }} refers to .Values.fleet.secretName instead of .Values.fleet.tls.secretName
I suggest to change the secretName: to secretName: "{{ .Values.fleet.tls.secretName }}" and add the value to the default values.yaml
Background of the change: Setting up fleet to use let's encrypt certs auto-generated with cert-manager. Implementing the above change works like a charm.