github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/qdrant/templates/actionset-datafile.yaml (about)

     1  apiVersion: dataprotection.kubeblocks.io/v1alpha1
     2  kind: ActionSet
     3  metadata:
     4    name: qdrant-snapshot
     5    labels:
     6      clusterdefinition.kubeblocks.io/name: qdrant
     7      {{- include "qdrant.labels" . | nindent 4 }}
     8  spec:
     9    backupType: Full
    10    env:
    11      - name: DATA_DIR
    12        value: {{ .Values.dataMountPath }}/
    13    backup:
    14      preBackup: []
    15      postBackup: []
    16      backupData:
    17        image: {{ .Values.images.registry | default "docker.io" }}/{{ .Values.images.tools.repository}}:{{ .Values.images.tools.tag | default "latest" }}
    18        runOnTargetPodNode: false
    19        command:
    20        # no bash available in the image
    21        - sh
    22        - -c
    23        - |
    24          {{- .Files.Get "scripts/qdrant-backup.sh" | nindent 8 }}
    25        syncProgress:
    26          enabled: true
    27          intervalSeconds: 5
    28    restore:
    29      prepareData:
    30        image: {{ .Values.images.registry | default "docker.io" }}/{{ .Values.images.repository}}:{{ include "qdrant.version" . | default .Values.images.tag }}
    31        command:
    32        - bash
    33        - -c
    34        - |
    35          {{- .Files.Get "scripts/qdrant-restore.sh" | nindent 8 }}
    36      postReady: []