first commit

This commit is contained in:
2025-11-06 06:41:45 +01:00
commit b8dceaf896
92 changed files with 5382 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package main
import (
"context"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"fmt"
)
func test(){
pods, err := clientSet.CoreV1().Pods("").List(context.TODO(), metav1.ListOptions{})
if err != nil {
panic(err.Error())
}
fmt.Printf("There are %d pods in the cluster\n", len(pods.Items))
}