Skip to content

Commit

Permalink
check if velero crd directory exists
Browse files Browse the repository at this point in the history
Signed-off-by: Koray Oksay <[email protected]>
  • Loading branch information
koksay authored Oct 8, 2024
1 parent 8d6d0f4 commit 0453c52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helper/kubermatic-installer-script/kubermatic-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ function deployBackup() {
deploy minio minio minio/
deploy s3-exporter kube-system s3-exporter/
fi
kubectl apply -f "$CHART_FOLDER/backup/velero/crd"
if [[ -d "$CHART_FOLDER/backup/velero/crd" ]]; then
kubectl apply -f "$CHART_FOLDER/backup/velero/crd"
fi
deploy velero velero backup/velero
}

Expand Down

0 comments on commit 0453c52

Please sign in to comment.