github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/rancher-backup/templates/s3-secret.yaml (about) 1 {{- if .Values.s3.enabled -}} 2 apiVersion: v1 3 kind: Secret 4 metadata: 5 name: {{ include "backupRestore.s3SecretName" . }} 6 namespace: {{ .Release.Namespace }} 7 labels: 8 {{- include "backupRestore.labels" . | nindent 4 }} 9 type: Opaque 10 stringData: 11 {{- with .Values.s3 }} 12 {{- if .credentialSecretName }} 13 credentialSecretName: {{ .credentialSecretName }} 14 credentialSecretNamespace: {{ required "When providing a Secret containing S3 credentials, a valid .Values.credentialSecretNamespace must be provided" .credentialSecretNamespace }} 15 {{- end }} 16 {{- if .region }} 17 region: {{ .region | quote }} 18 {{- end }} 19 bucketName: {{ required "A valid .Values.bucketName is required for configuring S3 compatible storage as the default backup storage location" .bucketName | quote }} 20 {{- if .folder }} 21 folder: {{ .folder | quote }} 22 {{- end }} 23 endpoint: {{ required "A valid .Values.endpoint is required for configuring S3 compatible storage as the default backup storage location" .endpoint | quote }} 24 {{- if .endpointCA }} 25 endpointCA: {{ .endpointCA }} 26 {{- end }} 27 {{- if .insecureTLSSkipVerify }} 28 insecureTLSSkipVerify: {{ .insecureTLSSkipVerify | quote }} 29 {{- end }} 30 {{- end }} 31 {{ end }}