Skip to content

Commit

Permalink
script to patch the metadata so lagoon will recognize the pvc's
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip committed Sep 6, 2024
1 parent f659772 commit 7f3d807
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions infrastructure/patch-pvc-metadata.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
#
# Start a KK Shell session
#
# Syntax:
# dplsh [-p profile-name] [additional shell args]
#
set -euo pipefail

NAMESPACES=$(kubectl get ns -l lagoon.sh/controller=lagoon --no-headers | awk '{print $1}')
for ns in $NAMESPACES; do
echo $ns
kubectl patch -n $ns pvc nginx -p '{
"metadata": {
"annotations": {
"kubectl.kubernetes.io/last-applied-configuration": null
}
}
}' || true
done

0 comments on commit 7f3d807

Please sign in to comment.