Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadKubeconfig ¶
func ReadKubeconfig(cli client.Client) ( string, []RemoteAPIServer, []TargetCluster, error, )
Read the kubeconfig file registered for the Secret Resource and register the necessary information for apiServers and clusters, respectively. At this time, a slice element is created for each Kubernetes cluster. kubeconfig must be created in advance as a secret resource.
Types ¶
type RemoteAPIServer ¶
Used to ping a remote Kubernetes cluster to verify that the remote Kubernetes cluster is operating properly by sending a request to the endpoint.
type TargetCluster ¶
It is used for the following purposes
- Generate a client set using ContextName
- Set fields in Custom Resource ClusterDetector and register information for all remote Kubernetes clusters in the ClusterDetector.
Click to show internal directories.
Click to hide internal directories.