From deb5a86b92253ea98fa30dc5585a4755fb9fdad2 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Fri, 2 Sep 2022 16:33:35 +0200 Subject: [PATCH] added k8s_ prefix to funkrions --- .functions/kubernetes.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"