We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9c6917 commit 1f47921Copy full SHA for 1f47921
1 file changed
helm/blueapi/files/scripts/time-stamper.sh
@@ -2,8 +2,9 @@
2
# Get all PVCs currently mounted by running pods
3
MOUNTED_PVCS=$(kubectl get pods -n $RELEASE_NAMESPACE \
4
-o=jsonpath='{.items[*].spec.volumes[*].persistentVolumeClaim.claimName}' | tr ' ' '\n' | sort -u)
5
-NOW=$(date +%s)
+BLUEAPI_PVCS=$( echo $MOUNTED_PVCS | tr ' ' '\n' | grep blueapi-scratch)
6
#loop through all the pvcs annotating ones thare are mounted
7
-for pvc in $MOUNTED_PVCS; do
+NOW=$(date +%s)
8
+for pvc in $BLUEAPI_PVCS; do
9
kubectl annotate --overwrite pvc "$pvc" -n $RELEASE_NAMESPACE last-used="$NOW"
10
done
0 commit comments