k8s命名空间删除保护operator,使用kopf实现
通过为crd为命名空间配置注解,实现删除保护
git clone https://github.com/suyanhj/namespaceProtect.git --depth=1
cd namespaceProtect
make installpython3 -m kopf run --verbose --standalone --log-format=full --liveness http://0.0.0.0:8080 main/np_operator.py cd tools
sh cert.sh
sh registry-webhook.sh
python3 main/np_webhook.pysh tools/dk-build.sh operator webhook
make install