rancher-partner-charts/charts/ondat/ondat-operator/templates/secrets.yaml

41 lines
1.2 KiB
YAML

{{- if .Values.cluster.create }}
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.cluster.secretRefName }}
namespace: {{ template "cluster.namespace" . }}
labels:
app: {{ template "storageos.name" . }}
app.kubernetes.io/component: operator
chart: {{ template "storageos.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
type: "kubernetes.io/storageos"
data:
username: {{ include "validate-username" . | b64enc | quote }}
password: {{ include "validate-password" . | b64enc | quote }}
{{- end }}
---
{{- if .Values.cluster.portalManager.enabled }}
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.cluster.portalManager.secretRefName }}
namespace: {{ template "cluster.namespace" . }}
labels:
app: {{ template "storageos.name" . }}
app.kubernetes.io/component: portal-manager
type: Opaque
data:
CLIENT_ID: {{ .Values.cluster.portalManager.clientId | b64enc | quote }}
PASSWORD: {{ .Values.cluster.portalManager.secret | b64enc | quote }}
TENANT_ID: {{ .Values.cluster.portalManager.tenantId | b64enc | quote }}
URL: {{ .Values.cluster.portalManager.apiUrl | b64enc | quote }}
{{- end}}