pro

package
v0.17.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 21 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 CreateProClient

func CreateProClient() (client.Client, error)

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 VirtualClusterInstanceProject

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

func ListVClusters

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

Jump to

Keyboard shortcuts

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