for folder in `find . -type d | grep -v 'chat\|trash\|temp\|pad\|git\|common' | grep 'wombat\|nuage\|partage\|mairie'`;
do
  cd $folder;
  export NS=`pwd | rev | cut -d'/' -f 2 | rev`
  k -n $NS delete job dump
  libre apply ../../common/nextcloud/manifests/dump.yml;
  cd ../..;
done
k get po -A | grep -v '\-dump' | grep dump

for folder in `find . -type d | grep -v 'chat\|trash\|temp\|pad\|git\|common' | grep 'wombat\|nuage\|partage\|mairie'`;
do
  cd $folder;
  libre diff ../../common/nextcloud/manifests/app.yaml;
  retVal=$?
  if [ $retVal -ne 0 ]; then
    read -p "Press any key to apply..."
    libre apply ../../common/nextcloud/manifests/app.yaml;
    export NS=`pwd | rev | cut -d'/' -f 2 | rev`
    k -n $NS delete update-nc
    libre apply ../../common/nextcloud/manifests/update-job.yml;
  fi
  cd ../..;
done
