find

package
v0.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2023 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const VirtualClusterSelector = "app=vcluster"

Variables

This section is empty.

Functions

func CurrentContext

func CurrentContext() (string, *api.Config, error)

func GetPodStatus

func GetPodStatus(pod *corev1.Pod) string

GetPodStatus returns the pod status as a string Taken from https://github.com/kubernetes/kubernetes/pkg/printers/internalversion/printers.go

func VClusterConnectBackgroundProxyName

func VClusterConnectBackgroundProxyName(vClusterName, vClusterNamespace, currentContext string) string

func VClusterContextName

func VClusterContextName(vClusterName, vClusterNamespace, currentContext string) string

func VClusterFromContext

func VClusterFromContext(originalContext string) (name, namespace, context string)

Types

type Status

type Status string
const (
	StatusPaused  Status = "Paused"
	StatusUnknown Status = "Unknown"
)

type VCluster

type VCluster struct {
	Name      string
	Namespace string

	Status        Status
	Created       metav1.Time
	Context       string
	ClientFactory clientcmd.ClientConfig `json:"-"`
}

func GetVCluster

func GetVCluster(context, name, namespace string) (*VCluster, error)

func ListVClusters

func ListVClusters(context, name, namespace string) ([]VCluster, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL