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