We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdb427f commit db8cac2Copy full SHA for db8cac2
k10status.sh
@@ -1,7 +1,7 @@
1
#This is the script for you to verify the backup and export status of the k10- namespace
2
#Run ./k10status, shortly, the backup and and export status will be reported.
3
4
-my_namespace=$(kubectl get ns | grep k10- | awk '{print $1}')
+my_namespace=$(kubectl get ns | grep yong- | awk '{print $1}')
5
kubectl get backupactions.actions.kio.kasten.io -n $my_namespace | grep -v NAME | head -1 | awk '{print $1}' > backupname
6
echo "The backup job status is $(kubectl get backupactions.actions.kio.kasten.io -n $my_namespace $(cat backupname) -ojsonpath="{.status.state}{'\n'}")"
7
kubectl get exportactions.actions.kio.kasten.io -n $my_namespace | grep -v NAME | head -1 | awk '{print $1}' > exportname
0 commit comments