#!/bin/bash -eu

for NS in `kubectl get ns -A --no-headers -o custom-columns=":metadata.name"`; do
  echo $NS
  kubectl label --overwrite ns/$NS name=$NS
done
