package
0.40.0
Repository: https://github.com/projectsveltos/libsveltos.git
Documentation: pkg.go.dev

# Functions

CreateKubeconfig creates a temporary file with the Kubeconfig to access CAPI cluster.
GetCAPIKubernetesClient returns a client to access CAPI Cluster clusterNamespace/clusterName c is the client to access management cluster.
GetCAPIKubernetesRestConfig returns rest.Config for a CAPI Cluster clusterNamespace/clusterName c is the client to access management cluster.
GetCAPISecretData verifies Cluster exists and returns the content of secret containing the kubeconfig for CAPI cluster.
getCluster returns the cluster object.
GetClusterType returns clustertype for a given cluster.
GetKubernetesClient returns client to access cluster.
GetKubernetesRestConfig returns restConfig for a cluster.
GetListOfClusters returns all existing Sveltos/CAPI Clusters.
GetListOfClustersForShardKey returns all existing Sveltos/CAPI Clusters for a given shard If namespace is not empty, clusters will be further filtered by namespace.
GetMachinesForCluster find all Machines for a given CAPI Cluster.
GetMatchingClusters returns all Sveltos/CAPI Clusters currently matching selector.
GetSecretData returns Kubeconfig to access cluster.
GetSveltosKubernetesClient returns a client to access Sveltos Cluster clusterNamespace/clusterName c is the client to access management cluster.
GetSveltosKubernetesRestConfig returns rest.Config for a Sveltos Cluster clusterNamespace/clusterName c is the client to access management cluster.
GetSveltosSecretData verifies Cluster exists and returns the content of secret containing the kubeconfig for Sveltos cluster.
IsClusterPaused returns true if cluster is currently paused.
IsClusterReadyToBeConfigured returns true if cluster is ready to be configured.
UpdateSveltosSecretData updates the content of the secret containing the the kubeconfig for Sveltos cluster.