function terminateNS --argument-names ns --description "Delete a stuck k8s terminating namespace"
    set NAMESPACE $ns
    kubectl proxy &
    kubectl get namespace $NAMESPACE -o json |jq '.spec = {"finalizers":[]}' >temp.json
    curl -k -H "Content-Type: application/json" -X PUT --data-binary @temp.json 127.0.0.1:8001/api/v1/namespaces/$NAMESPACE/finalize
end

Add fish function to terminate a stuck terminating k8s namespace
Add fish function to terminate a stuck terminating k8s namespace

brentbrownfield/dotfiles