Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,22 +97,4 @@ spec:
profile: default
EOF

# Create VolumeSnapshotLocation
echo "Creating VolumeSnapshotLocation..."
cat <<EOF | oc apply -f -
apiVersion: velero.io/v1
kind: VolumeSnapshotLocation
metadata:
name: ${CLUSTER_NAME}
namespace: openshift-adp
spec:
provider: aws
credential:
name: ${CLUSTER_NAME}
key: credentials
config:
region: ${REGION}
profile: default
EOF

echo "OADP setup complete"
Original file line number Diff line number Diff line change
Expand Up @@ -83,22 +83,5 @@ spec:
profile: default
EOF

echo "Creating VolumeSnapshotLocation..."
cat <<EOF | oc apply -f -
apiVersion: velero.io/v1
kind: VolumeSnapshotLocation
metadata:
name: ${CLUSTER_NAME}
namespace: openshift-adp
spec:
provider: aws
credential:
name: cloud-credentials
key: cloud
config:
region: minio
profile: default
EOF

timeout 5m bash -c "until [[ \$(oc get dataProtectionApplication/dpa-sample -n openshift-adp -o jsonpath='{.status.conditions[?(@.type==\"Reconciled\")].status}' 2>/dev/null) == \"True\" ]]; do sleep 15; done"
timeout 5m bash -c "until [[ \$(oc get backupStorageLocation/${CLUSTER_NAME} -n openshift-adp -o jsonpath='{.status.phase}' 2>/dev/null) == \"Available\" ]]; do sleep 15; done"