#!/bin/bash -eu

for NS in `kubectl get ns -A --no-headers -o custom-columns=":metadata.name"`; do
  echo $NS
  kubectl -n $NS label --overwrite rs  -l app.kubernetes.io/name=hedgedoc app.kubernetes.io/component=app
  kubectl -n $NS label --overwrite po  -l app.kubernetes.io/name=hedgedoc app.kubernetes.io/component=app
done
