Added api deprecation check
This commit is contained in:
parent
7e44dc3985
commit
2750fe86cb
@ -55,3 +55,8 @@ function validate_private_ingress(){
|
|||||||
done
|
done
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function k8s_list_deprecation_apis(){
|
||||||
|
#Prints all api deprecation warnings in cluster
|
||||||
|
kubectl get --raw /metrics | prom2json | jq -c '.[] | select(.name=="apiserver_requested_deprecated_apis").metrics[].labels' | column -t -s'{}[],"'
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user