Skip to content

Commit

Permalink
Account for correct grep of file name
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Sep 4, 2024
1 parent 9799bb9 commit e1a1756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubernetes/cmsweb/scripts/extract_secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ odir=$3
files=`kubectl describe secrets -n $1 $2 | grep bytes | awk '{print $1}' | sed -e "s/://g"`
for sfile in $files; do
echo "extract $sfile"
kubectl get secrets -n $ns $secret -o yaml | grep $sfile | head -1 | awk '{print $2}' | base64 -d > $odir/$sfile
kubectl get secrets -n $ns $secret -o yaml | grep " $sfile" | head -1 | awk '{print $2}' | base64 -d > $odir/$sfile
done

0 comments on commit e1a1756

Please sign in to comment.