Documentation
¶
Index ¶
Constants ¶
View Source
const ( CredName = "fleet-agent" // same as AgentConfigName Kubeconfig = "kubeconfig" Token = "token" Values = "values" DeploymentNamespace = "deploymentNamespace" ClusterNamespace = "clusterNamespace" ClusterName = "clusterName" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentInfo ¶
type AgentInfo struct {
// ClusterNamespace is the namespace on upstream, e.g. cluster-fleet-ID
ClusterNamespace string
ClusterName string
ClientConfig clientcmd.ClientConfig
}
func Get ¶ added in v0.10.0
func Get(ctx context.Context, namespace string, cfg *rest.Config) (*AgentInfo, *config.Config, error)
Get a registration token from the local cluster and fail if it does not exist. This does not create a new registration process and only works after registration has been completed.
Click to show internal directories.
Click to hide internal directories.