Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type K8sClient ¶
type K8sClient struct { // client for kubernetes ClientSet kubernetes.Interface CRClient client.Client // contains filtered or unexported fields }
func NewForInCluster ¶ added in v1.5.0
NewForInCluster New client for in cluster
func NewForRestConfig ¶
NewForRestConfig new K8sClient with rest.Config, you can register your custom runtime.Scheme.
type Option ¶
type Option func(*K8sClient)
func WithPreferredToUseInClusterConfig ¶
func WithPreferredToUseInClusterConfig() Option
WithPreferredToUseInClusterConfig set whether priority to use in cluster config if not set this option, we will get and use config set by cluster agent
func WithTimeout ¶
Directories ¶
Path | Synopsis |
---|---|
apis
|
|
openyurt/v1alpha1
+groupName=apps.openyurt.io
|
+groupName=apps.openyurt.io |
Click to show internal directories.
Click to hide internal directories.