added k8s_ prefix to funkrions

This commit is contained in:
Jonas Forsberg 2022-09-02 16:33:35 +02:00
parent b174f0ae13
commit deb5a86b92
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9

View File

@ -34,7 +34,7 @@ function k(){
} }
[[ $(type -t __start_kubectl) == function ]] && complete -o default -F __start_kubectl 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 PRIVATE_PROJECT_ID="${PRIVATE_PROJECT_ID:-p-c5fcj}"
local WHITELIST_SOURCE_RANGE="${WHITELIST_SOURCE_RANGE:-10.0.0.0/8}" local WHITELIST_SOURCE_RANGE="${WHITELIST_SOURCE_RANGE:-10.0.0.0/8}"
local OK='\e[32m\u2714\e[0m' 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'{}[],"' 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" local NAMESPACE="cattle-neuvector-system"
printf "%-40s %s\n" "Pod" "CVE DB version" printf "%-40s %s\n" "Pod" "CVE DB version"