Added api deprecation check

This commit is contained in:
Jonas Forsberg 2022-04-08 12:38:54 +02:00
parent 7e44dc3985
commit 2750fe86cb
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9

View File

@ -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'{}[],"'
}