Skip to content

Support for stackstate.license.fromExternalSecret broken #27

@ikunduraci

Description

@ikunduraci

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 }}
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions