Skip to content

Instantly share code, notes, and snippets.

@egeneralov
Created June 29, 2020 20:47
Show Gist options
  • Save egeneralov/d18f3195b0bc17cd351f886ff5c1c457 to your computer and use it in GitHub Desktop.
Save egeneralov/d18f3195b0bc17cd351f886ff5c1c457 to your computer and use it in GitHub Desktop.
kubectl proxy
finalize () {
kubectl get namespace "$1" -o json > tmp.json
sed -i 's/ "kubernetes"//g' tmp.json
curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json "http://127.0.0.1:8001/api/v1/namespaces/$1/finalize"
rm tmp.json
}
finalize olm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment