colebrooke / kubernetes-nagios

Basic health checks for a Kubernetes cluster
MIT License
50 stars 44 forks source link

Parameterize API versions #7

Open MnrGreg opened 4 years ago

MnrGreg commented 4 years ago

/kind bug

The Deployment resource API post k8s 1.16 is /apps/v1. /extensions/v1beta1/ is deprecated.

https://github.com/colebrooke/kubernetes-nagios/blob/e617a5d98f2b6aebe8de8faaa1352abeb142671f/check_kube_deployments.sh#L92

Parameterize API versions as variable within shell scripts to accommodate

from: /apis/extensions/v1beta1/ to: /apis/apps/v1/

colebrooke commented 4 years ago

Thanks for raising these! I'm not using this project at present, although I may find the time to fix these items soon! If you have already fixed you are welcome to raise a PR.