Documentation ¶
Index ¶
- Constants
- func CurrentContext() (string, *api.Config, error)
- func GetPodStatus(pod *corev1.Pod) string
- func VClusterConnectBackgroundProxyName(vClusterName, vClusterNamespace, currentContext string) string
- func VClusterContextName(vClusterName, vClusterNamespace, currentContext string) string
- func VClusterFromContext(originalContext string) (name, namespace, context string)
- type Status
- type VCluster
Constants ¶
View Source
const VirtualClusterSelector = "app=vcluster"
Variables ¶
This section is empty.
Functions ¶
func GetPodStatus ¶
GetPodStatus returns the pod status as a string Taken from https://github.com/kubernetes/kubernetes/pkg/printers/internalversion/printers.go
func VClusterContextName ¶
func VClusterFromContext ¶
Types ¶
type VCluster ¶
type VCluster struct { Name string Namespace string Status Status Created metav1.Time Context string ClientFactory clientcmd.ClientConfig `json:"-"` }
func GetVCluster ¶
func ListVClusters ¶
Click to show internal directories.
Click to hide internal directories.