Skip to content

Commit db8cac2

Browse files
committed
Update k10status.sh
1 parent bdb427f commit db8cac2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

k10status.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#This is the script for you to verify the backup and export status of the k10- namespace
22
#Run ./k10status, shortly, the backup and and export status will be reported.
33

4-
my_namespace=$(kubectl get ns | grep k10- | awk '{print $1}')
4+
my_namespace=$(kubectl get ns | grep yong- | awk '{print $1}')
55
kubectl get backupactions.actions.kio.kasten.io -n $my_namespace | grep -v NAME | head -1 | awk '{print $1}' > backupname
66
echo "The backup job status is $(kubectl get backupactions.actions.kio.kasten.io -n $my_namespace $(cat backupname) -ojsonpath="{.status.state}{'\n'}")"
77
kubectl get exportactions.actions.kio.kasten.io -n $my_namespace | grep -v NAME | head -1 | awk '{print $1}' > exportname

0 commit comments

Comments
 (0)