|
|
@@ -14,12 +14,12 @@ spec:
|
|
|
|
configuration:
|
|
|
|
configuration:
|
|
|
|
destinationPath: {{ $context.destinationPath }}
|
|
|
|
destinationPath: {{ $context.destinationPath }}
|
|
|
|
endpointURL: {{ $context.endpointURL }}
|
|
|
|
endpointURL: {{ $context.endpointURL }}
|
|
|
|
{{- if $context.endpointCA.name }}
|
|
|
|
{{- if not (empty $context.endpointCA.name) }}
|
|
|
|
endpointCA:
|
|
|
|
endpointCA:
|
|
|
|
name: {{ $context.endpointCA.name }}
|
|
|
|
name: {{ $context.endpointCA.name }}
|
|
|
|
key: {{ $context.endpointCA.key }}
|
|
|
|
key: {{ $context.endpointCA.key }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if $context.clusterName }}
|
|
|
|
{{- if not (empty $context.clusterName) }}
|
|
|
|
serverName: "{{ $context.clusterName }}-backup-{{ $context.index }}"
|
|
|
|
serverName: "{{ $context.clusterName }}-backup-{{ $context.index }}"
|
|
|
|
{{- else }}
|
|
|
|
{{- else }}
|
|
|
|
serverName: "{{ include "cluster.name" $context }}-backup-{{ $context.index }}"
|
|
|
|
serverName: "{{ include "cluster.name" $context }}-backup-{{ $context.index }}"
|
|
|
@@ -38,14 +38,14 @@ spec:
|
|
|
|
jobs: {{ $context.data.jobs }}
|
|
|
|
jobs: {{ $context.data.jobs }}
|
|
|
|
s3Credentials:
|
|
|
|
s3Credentials:
|
|
|
|
accessKeyId:
|
|
|
|
accessKeyId:
|
|
|
|
{{- if $context.endpointCredentials }}
|
|
|
|
{{- if not (empty $context.endpointCredentials) }}
|
|
|
|
name: {{ $context.endpointCredentials }}
|
|
|
|
name: {{ $context.endpointCredentials }}
|
|
|
|
{{- else }}
|
|
|
|
{{- else }}
|
|
|
|
name: {{- printf "%s-backup-secret" (include "cluster.name" $context) | trunc 63 | trimSuffix "-" -}}
|
|
|
|
name: {{- printf "%s-backup-secret" (include "cluster.name" $context) | trunc 63 | trimSuffix "-" -}}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
key: ACCESS_KEY_ID
|
|
|
|
key: ACCESS_KEY_ID
|
|
|
|
secretAccessKey:
|
|
|
|
secretAccessKey:
|
|
|
|
{{- if $context.endpointCredentials }}
|
|
|
|
{{- if not (empty $context.endpointCredentials) }}
|
|
|
|
name: {{ $context.endpointCredentials }}
|
|
|
|
name: {{ $context.endpointCredentials }}
|
|
|
|
{{- else }}
|
|
|
|
{{- else }}
|
|
|
|
name: {{- printf "%s-backup-secret" (include "cluster.name" $context) | trunc 63 | trimSuffix "-" -}}
|
|
|
|
name: {{- printf "%s-backup-secret" (include "cluster.name" $context) | trunc 63 | trimSuffix "-" -}}
|
|
|
@@ -67,7 +67,7 @@ spec:
|
|
|
|
configuration:
|
|
|
|
configuration:
|
|
|
|
destinationPath: {{ .Values.recovery.objectStore.destinationPath }}
|
|
|
|
destinationPath: {{ .Values.recovery.objectStore.destinationPath }}
|
|
|
|
endpointURL: {{ .Values.recovery.objectStore.endpointURL }}
|
|
|
|
endpointURL: {{ .Values.recovery.objectStore.endpointURL }}
|
|
|
|
{{- if .Values.recovery.objectStore.endpointCA.name }}
|
|
|
|
{{- if not (empty .Values.recovery.objectStore.endpointCA.name) }}
|
|
|
|
endpointCA:
|
|
|
|
endpointCA:
|
|
|
|
name: {{ .Values.recovery.objectStore.endpointCA.name }}
|
|
|
|
name: {{ .Values.recovery.objectStore.endpointCA.name }}
|
|
|
|
key: {{ .Values.recovery.objectStore.endpointCA.key }}
|
|
|
|
key: {{ .Values.recovery.objectStore.endpointCA.key }}
|
|
|
|