README ¶ kubeutils 封装kubernetes client-go客户端,用于简化client-go的使用 快速使用 安装 go get github.com/dotbalo/kubeutils 实例化一个接口: var kubeUtilser kubeutils.KubeUtilser 创建一个ConfigMap实例 var cm v1.ConfigMap 在ConfigMap中添加一些内容 cm.ResourceVersion = "" cm.Namespace = info.Namespace 使用kubeutils创建一个ConfigMap实例 instance := kubeutils.NewConfigMap(kubeconfig, &cm) 把实例复制给kubeUtilser kubeUtilser = instance 使用kubeUtilser创建资源 kubeUtilser.Create("default") Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files main.go Directories ¶ Show internal Expand all Path Synopsis kubernetesutils kubeutils utils logs Click to show internal directories. Click to hide internal directories.