procli

package
v0.19.6 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VClusterProFolder = "pro"
)

Variables

View Source
var (
	MinimumVersionTag = "v3.3.0-alpha.26"
	MinimumVersion    = semver.MustParse(strings.TrimPrefix(MinimumVersionTag, "v"))
)
View Source
var ErrConfigNotFound = errors.New("couldn't find vCluster.Pro config")

Functions

func ConfigFilePath

func ConfigFilePath() (string, error)

ConfigFilePath returns the path to the loft config file

func GlobalFlags

func GlobalFlags(globalFlags *flags.GlobalFlags) (*loftctlflags.GlobalFlags, error)

GlobalFlags converts vcluster global flags to vcluster pro global flags

func LatestCompatibleVersion

func LatestCompatibleVersion(ctx context.Context) (string, error)

LatestCompatibleVersion returns the latest compatible version of vCluster.Pro

Types

type Client

type Client interface {
	loftclient.Client

	Self() *managementv1.Self
}

func CreateProClient

func CreateProClient() (Client, error)

type VirtualClusterInstanceProject

type VirtualClusterInstanceProject struct {
	VirtualCluster *managementv1.VirtualClusterInstance
	Project        *managementv1.Project
}

func ListVClusters

func ListVClusters(ctx context.Context, baseClient Client, virtualClusterName, namespace string, projectName string) ([]VirtualClusterInstanceProject, error)

Jump to

Keyboard shortcuts

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