Categorygithub.com/linkinghack/k8s-client-kit
modulepackage
0.0.9
Repository: https://github.com/linkinghack/k8s-client-kit.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
NewDynamicWatcher 创建一个新的通用资源对象watcher 指定目标对象.
NewGenericK8sClientInCluster 使用当前集群SA创建K8sClient.
NewGenericK8sClientWithKubeConfigBytes 使用指定的KubeConfig bytes创建K8sClient param: overrideServerName string 可选的指定APIServer TLS 域名SNI Kubeconfig中cluster server支持使用IP地址端口方式指定可保证正确访问到的路由,若目标ApiServer在TLS SNI代理服务器之后, 可以通过指定overrideServerName来使代理服务器正常工作。 另外可选的方式是在部署k8s-provisioner时外部环境中解决域名解析问题,则可以直接在kubeconfig中使用域名方式指定APIServer地址。.
No description provided by the author
NewGenericK8sClientWithToken 使用目标集群的ApiServer url和具有一定访问权限的bearer token来构建一个generic client.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

GenericK8sClient 用于与一个指定的Kubernetes APIServer通信。 内置基本标准类型客户端和动态类型客户端(支持任意GVK访问).
No description provided by the author
No description provided by the author