apiVersion: v1
kind: Secret
metadata:
  name: {{ template "msoms.fullname" . }}
  labels:
    app: {{ template "msoms.name" . }}
    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
type: Opaque
data:
  WSID: {{ required "A valid workspace id is required!" .Values.omsagent.secret.wsid | b64enc | quote }}
  KEY: {{ required "A valid workspace key is required!" .Values.omsagent.secret.key | b64enc | quote }}
  DOMAIN: {{ .Values.omsagent.domain | b64enc | quote }}
