@@ -162,43 +162,6 @@ var _ = Describe("TC-CO-INT-001: Single Node RKE2 Cluster Create and Delete usin
162
162
// Calculate and print the total time taken
163
163
totalTime := clusterCreateEndTime .Sub (clusterCreateStartTime )
164
164
fmt .Printf ("\033 [32mTotal time from cluster creation to fully active: %v 🚀 ✅\033 [0m\n " , totalTime )
165
-
166
- // cmd := exec.Command("curl", "-X", "GET", fmt.Sprintf("127.0.0.1:%v/kubernetes/%v-%v/api/v1/namespaces/default/pods", portForwardGatewayLocalPort, namespace, clusterName))
167
- By ("Getting kubeconfig" )
168
- fmt .Println (clusterName )
169
- cmd := exec .Command ("clusterctl" , "get" , "kubeconfig" , clusterName , "--namespace" , defaultNamespace ) // ">", "kubeconfig.yaml")
170
- output , err := cmd .Output ()
171
- Expect (err ).NotTo (HaveOccurred ())
172
-
173
- kubeConfigName := "kubeconfig.yaml"
174
- err = os .WriteFile (kubeConfigName , output , 0644 )
175
- Expect (err ).NotTo (HaveOccurred ())
176
-
177
- By ("Setting in kubeconfig server to cluster connect gateway" )
178
- cmd = exec .Command ("sed" , "-i" , "s|http://[[:alnum:].-]*:8080/|http://127.0.0.1:8081/|" , "kubeconfig.yaml" )
179
- _ , err = cmd .Output ()
180
- Expect (err ).NotTo (HaveOccurred ())
181
-
182
- By ("Getting list of pods" )
183
- cmd = exec .Command ("kubectl" , "--kubeconfig" , "kubeconfig.yaml" , "get" , "pods" )
184
- _ , err = cmd .Output ()
185
- Expect (err ).NotTo (HaveOccurred ())
186
-
187
- // Dump kubectl client and server version
188
- By ("Dumping kubectl client and server version" )
189
- cmd = exec .Command ("kubectl" , "version" , "--kubeconfig" , "kubeconfig.yaml" )
190
- output , err = cmd .Output ()
191
- Expect (err ).NotTo (HaveOccurred ())
192
- By ("Printing the output of the command" )
193
- fmt .Printf ("kubectl client and server version:\n %s\n " , string (output ))
194
-
195
- // Exec into one of the pods in the kube-system namespace on the edge node cluster
196
- By ("Executing command in kube-scheduler-cluster-agent-0 pod" )
197
- cmd = exec .Command ("kubectl" , "exec" , "--kubeconfig" , "kubeconfig.yaml" , "-it" , "-n" , "kube-system" , "kube-scheduler-cluster-agent-0" , "--" , "ls" )
198
- output , err = cmd .Output ()
199
- Expect (err ).NotTo (HaveOccurred ())
200
- By ("Printing the output of the command" )
201
- fmt .Printf ("Output of `ls` command:\n %s\n " , string (output ))
202
165
})
203
166
204
167
JustAfterEach (func () {
0 commit comments