# cluster_snapshot.yaml
starrocks:
  starrocksCluster:
    disasterRecovery:
      enabled: true
      generation: 4     # bumped to 4 to force DR retry after location typo fix

  starrocksFESpec:
    # mount cluster_snapshot.yaml into the FE conf directory
    configMaps:
    - name: cluster-snapshot
      mountPath: /opt/starrocks/fe/conf/cluster_snapshot.yaml
      subPath: cluster_snapshot.yaml

  configMaps:
  - name: cluster-snapshot
    data:
      cluster_snapshot.yaml: |
        cluster_snapshot:
          # Full URI to the snapshot you want to restore
          cluster_snapshot_path: adls2://drstarrockstest/shared_data/3c76279d-4fd6-40aa-96b5-717032118104/meta/image/automated_cluster_snapshot_1778058302924

          # MUST match the storage volume name from the original cluster
          storage_volume_name: builtin_storage_volume

        # Operator manages followers and CNs - leave empty
        frontends: []
        compute_nodes: []

        # Storage volume definition - name + location + creds 
        # MUST match the original cluster
        storage_volumes:
          - name: builtin_storage_volume
            type: ADLS2
            location: adls2://drstarrockstest/shared_data
            comment: primary ADLS volume
            properties:
              - key: azure.adls2.endpoint
                value: https://ststarrockssvcdevccwus01.dfs.core.windows.net
              - key: azure.adls2.shared_key
                value: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
