You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\t[ -n | --namespacename ] Namespace name (needed for specific workload or pod checks)
165
166
\t[ -w | --workloadname ] Workload name (for specific workload check)
166
167
\t[ -o | --podname ] Pod name (for specific pod check, this makes only sense if you use static pods)
167
-
\t[ -i | --ignore ] Comma-separated list of status(es) to ignore (currently only supported in node check type)
168
+
\t[ -i | --ignore ] Comma-separated list of status(es) to ignore (on node and workload check type) or list of workload name(s) to ignore (on workload check type)
168
169
\t[ --cpu-warn ] Exit with WARNING status if more than PERCENT of cpu capacity is used (currently only supported in cluster specific node and cluster check type)
169
170
\t[ --cpu-crit ] Exit with CRITICAL status if more than PERCENT of cpu capacity is used (currently only supported in cluster specific node and cluster check type)
170
171
\t[ --memory-warn ] Exit with WARNING status if more than PERCENT of mem capacity is used (currently only supported in cluster specific node and cluster check type)
@@ -1001,6 +1002,10 @@ if [[ -z $workloadname ]]; then
1001
1002
i=0
1002
1003
forworkloadin${workload_names[*]};do
1003
1004
forstatusin${healthstatus[$i]};do
1005
+
if [[ "${ignore}"=~"${workload}" ]];then
1006
+
workloadignored[$i]="Workload ${workload} is ignored -"
1007
+
continue
1008
+
fi
1004
1009
if [[ ${status}= updating ]];then
1005
1010
if [[ -n$(echo ${ignore}| grep -i ${status}) ]];then
1006
1011
workloadignored[$i]="Workload ${workload} is ${status} but ignored -"
0 commit comments