{{- if .Values.envSecret.create -}}
apiVersion: v1
kind: Secret
metadata:
  name: {{ include "openclaw-mission-control.envSecretName" . }}
  labels:
    {{- include "openclaw-mission-control.labels" . | nindent 4 }}
type: Opaque
stringData:
  {{- range $key, $value := .Values.envSecret.data }}
  {{ $key }}: {{ $value | quote }}
  {{- end }}
{{- end }}
