From 21b3b2aff781ff924bb4cc35293531094978be85 Mon Sep 17 00:00:00 2001 From: jay Date: Wed, 6 Mar 2019 10:08:53 -0800 Subject: [PATCH] Changed function name to more descriptive name ExecuteCodeOnKubelet --- peirates.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peirates.go b/peirates.go index a474eae..0451fff 100644 --- a/peirates.go +++ b/peirates.go @@ -900,7 +900,7 @@ func GetNodesInfo(connectionString ServerInfo) { } //adam here -func GetNodeIP(connectionString ServerInfo) { +func ExecuteCodeOnKubelet(connectionString ServerInfo) { fmt.Println("+ Getting IP addess for the nodes in the cluster") //nodeDetailOut, _, err := runKubectlSimple(connectionString, "get", "nodes", "-o", "json") //println(nodeDetailOut) @@ -2180,7 +2180,7 @@ Peirates:># `) // Use kubectl get nodes to get a list of nodes // ----> GetNodesInfo(connectionString) // Use kubectl get node _name_ -o yaml to get IP addresses - GetNodeIP(connectionString) + ExecuteCodeOnKubelet(connectionString) // Find a line that matches - address: IP // curl port 10255 to get pods: curl -sk http://10.23.58.41:10255/pods