-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Hi team,
Current chart for suse-observability doesn't properly support stackstate.license.fromExternalSecret. Upon checking the chart templates, the secret-license-key.yaml file looks to be incorrectly referencing the secret.
I've patched my own version of the chart with the following, which seems to work:
`
{{- define "stackstate.license.secret" -}}
metadata:
name: {{ template "common.fullname.short" . }}-license
data:
LICENSE_KEY: {{ .Values.stackstate.license.key | toString | b64enc | quote }}
{{- end -}}
{{- if not .Values.stackstate.license.fromExternalSecret }}
{{- $commonSecret := fromYaml (include "common.secret" .) -}}
{{- $stackstateLicenseSecret := fromYaml (include "stackstate.license.secret" .) -}}
{{- toYaml (merge $stackstateLicenseSecret $commonSecret) -}}
{{- else }}
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.stackstate.license.fromExternalSecret }}
namespace: suse-observability
{{- end }}
`