diff --git a/.functions/kubernetes.sh b/.functions/kubernetes.sh index 0cf4c5b..8a19386 100644 --- a/.functions/kubernetes.sh +++ b/.functions/kubernetes.sh @@ -34,7 +34,7 @@ function k(){ } [[ $(type -t __start_kubectl) == function ]] && complete -o default -F __start_kubectl k -function validate_private_ingress(){ +function k8s_validate_private_ingress(){ local PRIVATE_PROJECT_ID="${PRIVATE_PROJECT_ID:-p-c5fcj}" local WHITELIST_SOURCE_RANGE="${WHITELIST_SOURCE_RANGE:-10.0.0.0/8}" local OK='\e[32m\u2714\e[0m' @@ -65,7 +65,7 @@ function k8s_list_deprecation_apis(){ kubectl get --raw /metrics | prom2json | jq -c '.[] | select(.name=="apiserver_requested_deprecated_apis").metrics[].labels' | column -t -s'{}[],"' } -function neuvector_cve_db_version(){ +function k8s_neuvector_cve_db_version(){ local NAMESPACE="cattle-neuvector-system" printf "%-40s %s\n" "Pod" "CVE DB version"