This repository was archived by the owner on May 4, 2024. It is now read-only.
File tree 6 files changed +11
-6
lines changed
6 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -75,4 +75,4 @@ oc patch rolebinding admin -n $ns -p '{"metadata":{"finalizers":[]}}' --type=mer
75
75
# Remove $ns Namespace from namespaceMembers field
76
76
# oc patch namespacescope cpd-operators -n <cpd_operators_project_name> -p $'{"spec":{"namespaceMembers":["<remaining-namespaces"]}}' --type=merge
77
77
oc delete project $ns
78
- oc get project cpd-instance -o jsonpath=" {.status}"
78
+ oc get project $ns -o jsonpath=" {.status}"
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments