Skip to content
This repository was archived by the owner on May 4, 2024. It is now read-only.

Commit bdabace

Browse files
committed
update scripts
1 parent 88d4499 commit bdabace

6 files changed

+11
-6
lines changed

checkpoint.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
kubectl exec -it cpdbr-service-57597df6c5-jqqcv -n cpd-instance -- /cpdbr-scripts/cpdbr/checkpoint_create.sh --include-namespaces=cpd-instance
1+
pod=$(kubectl get pod -n cpd-instance -l component=cpdbr-hooks | awk 'NR==2' | awk {'print $1'})
2+
kubectl exec -it $pod -n cpd-instance -- /cpdbr-scripts/cpdbr/checkpoint_create.sh --include-namespaces=cpd-instance

delete-cpd-instance.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ oc patch rolebinding admin -n $ns -p '{"metadata":{"finalizers":[]}}' --type=mer
7575
# Remove $ns Namespace from namespaceMembers field
7676
#oc patch namespacescope cpd-operators -n <cpd_operators_project_name> -p $'{"spec":{"namespaceMembers":["<remaining-namespaces"]}}' --type=merge
7777
oc delete project $ns
78-
oc get project cpd-instance -o jsonpath="{.status}"
78+
oc get project $ns -o jsonpath="{.status}"

post-backup.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
kubectl exec -it cpdbr-service-57597df6c5-jqqcv -n cpd-instance -- /cpdbr-scripts/cpdbr/checkpoint_backup_posthooks.sh --include-namespaces=cpd-instance
1+
pod=$(kubectl get pod -n cpd-instance -l component=cpdbr-hooks | awk 'NR==2' | awk {'print $1'})
2+
kubectl exec -it $pod -n cpd-instance -- /cpdbr-scripts/cpdbr/checkpoint_backup_posthooks.sh --include-namespaces=cpd-instance

post-workload.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
kubectl exec -it cpdbr-service-57597df6c5-jqqcv -n cpd-instance -- /cpdbr-scripts/cpdbr/checkpoint_restore_posthooks.sh --include-namespaces=cpd-instance
1+
pod=$(kubectl get pod -n cpd-instance -l component=cpdbr-hooks | awk 'NR==2' | awk {'print $1'})
2+
kubectl exec -it $pod -n cpd-instance -- /cpdbr-scripts/cpdbr/checkpoint_restore_posthooks.sh --include-namespaces=cpd-instance

pre-backup.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
kubectl exec -it cpdbr-service-57597df6c5-jqqcv -n cpd-instance -- /cpdbr-scripts/cpdbr/checkpoint_backup_prehooks.sh --include-namespaces=cpd-instance
1+
pod=$(kubectl get pod -n cpd-instance -l component=cpdbr-hooks | awk 'NR==2' | awk {'print $1'})
2+
kubectl exec -it $pod -n cpd-instance -- /cpdbr-scripts/cpdbr/checkpoint_backup_prehooks.sh --include-namespaces=cpd-instance

pre-workload.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
kubectl exec -it cpdbr-service-57597df6c5-jqqcv -n cpd-instance -- /cpdbr-scripts/cpdbr/checkpoint_restore_preworkloadhooks.sh --include-namespaces=cpd-instance
1+
pod=$(kubectl get pod -n cpd-instance -l component=cpdbr-hooks | awk 'NR==2' | awk {'print $1'})
2+
kubectl exec -it $pod -n cpd-instance -- /cpdbr-scripts/cpdbr/checkpoint_restore_preworkloadhooks.sh --include-namespaces=cpd-instance

0 commit comments

Comments
 (0)