Either:
A. Clone check_kube_deployments.sh to check_kube_statefulsets.sh and check_kube_daemonsets.sh and update the specific differences where needed.
B. Modify check_kube_deployments.sh to gather status for all resource types (deployments, statefulsets and daemonsets) within the same namespace.
In favor of option B because:
Less input variables required for Nagios operators & consumers.
Likely kubernetes operators are interested in all failures within a namespace and not a partial view.
/kind feature
Cater for more resource types:
Either: A. Clone
check_kube_deployments.sh
tocheck_kube_statefulsets.sh
andcheck_kube_daemonsets.sh
and update the specific differences where needed.B. Modify
check_kube_deployments.sh
to gather status for all resource types (deployments, statefulsets and daemonsets) within the same namespace.In favor of option B because: