mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-18 04:37:52 +08:00
9abd3a90c3
enable resource for template
22 lines
682 B
YAML
22 lines
682 B
YAML
{{- if .Values.filer.enabled }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
type: Opaque
|
|
metadata:
|
|
name: secret-seaweedfs-db
|
|
namespace: {{ .Release.Namespace }}
|
|
annotations:
|
|
"helm.sh/resource-policy": keep
|
|
"helm.sh/hook": "pre-install"
|
|
labels:
|
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
stringData:
|
|
user: "YourSWUser"
|
|
password: "HardCodedPassword"
|
|
# better to random generate and create in DB
|
|
# password: {{ randAlphaNum 10 | sha256sum | b64enc | trunc 32 }}
|
|
{{- end }}
|