From 2750fe86cb29ddbceef6c1ff7f000033253c3bbf Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Fri, 8 Apr 2022 12:38:54 +0200 Subject: [PATCH] Added api deprecation check --- .functions/kubernetes.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.functions/kubernetes.sh b/.functions/kubernetes.sh index c515cdf..29a4cf0 100644 --- a/.functions/kubernetes.sh +++ b/.functions/kubernetes.sh @@ -55,3 +55,8 @@ function validate_private_ingress(){ 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'{}[],"' +}