cli

package
v0.20.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 69 Imported by: 0

Documentation

Index

Constants

View Source
const VirtualClusterServiceUIDLabel = "vcluster.loft.sh/service-uid"

Variables

View Source
var CreatedByVClusterAnnotation = "vcluster.loft.sh/created"

Functions

func ActivateHelm

func ActivateHelm(ctx context.Context, options *ActivateOptions, globalFlags *flags.GlobalFlags, vClusterName string, log log.Logger) error

func ActivatePlatform

func ActivatePlatform(ctx context.Context, options *ActivateOptions, globalFlags *flags.GlobalFlags, vClusterName string, log log.Logger) error

func ConnectHelm

func ConnectHelm(ctx context.Context, options *ConnectOptions, globalFlags *flags.GlobalFlags, vClusterName string, command []string, log log.Logger) error

func ConnectPlatform

func ConnectPlatform(ctx context.Context, options *ConnectOptions, globalFlags *flags.GlobalFlags, vClusterName string, command []string, log log.Logger) error

func CreateHelm

func CreateHelm(ctx context.Context, options *CreateOptions, globalFlags *flags.GlobalFlags, vClusterName string, log log.Logger) error

func CreatePlatform

func CreatePlatform(ctx context.Context, options *CreateOptions, globalFlags *flags.GlobalFlags, virtualClusterName string, log log.Logger) error

func DeleteHelm

func DeleteHelm(ctx context.Context, options *DeleteOptions, globalFlags *flags.GlobalFlags, vClusterName string, log log.Logger) error

func DeletePlatform

func DeletePlatform(ctx context.Context, options *DeleteOptions, vClusterName string, log log.Logger) error

func GetVClusterNamespace

func GetVClusterNamespace(ctx context.Context, context, name, namespace string, log log.Logger) (string, error)

func ListHelm

func ListHelm(ctx context.Context, options *ListOptions, globalFlags *flags.GlobalFlags, log log.Logger) error

func ListPlatform

func ListPlatform(ctx context.Context, options *ListOptions, globalFlags *flags.GlobalFlags, logger log.Logger) error

func PauseHelm

func PauseHelm(ctx context.Context, globalFlags *flags.GlobalFlags, vClusterName string, log log.Logger) error

func PausePlatform

func PausePlatform(ctx context.Context, options *PauseOptions, vClusterName string, log log.Logger) error

func ResumeHelm

func ResumeHelm(ctx context.Context, globalFlags *flags.GlobalFlags, vClusterName string, log log.Logger) error

func ResumePlatform

func ResumePlatform(ctx context.Context, options *ResumeOptions, vClusterName string, log log.Logger) error

Types

type ActivateOptions

type ActivateOptions struct {
	Manager string

	ClusterName string
	Project     string
	ImportName  string
}

type ConnectOptions

type ConnectOptions struct {
	Manager string

	ServiceAccountClusterRole string
	PodName                   string
	Address                   string
	KubeConfigContextName     string
	Server                    string
	KubeConfig                string
	ServiceAccount            string
	LocalPort                 int
	ServiceAccountExpiration  int
	Print                     bool
	UpdateCurrent             bool
	BackgroundProxy           bool
	Insecure                  bool

	Project string
}

type CreateOptions

type CreateOptions struct {
	Manager string

	KubeConfigContextName string
	ChartVersion          string
	ChartName             string
	ChartRepo             string
	LocalChartDir         string
	Distro                string
	Values                []string
	SetValues             []string

	KubernetesVersion string

	CreateNamespace bool
	UpdateCurrent   bool
	Expose          bool
	ExposeLocal     bool

	Connect bool
	Upgrade bool

	// Platform
	Activate        bool
	Project         string
	Cluster         string
	Template        string
	TemplateVersion string
	Links           []string
	Annotations     []string
	Labels          []string
	Params          string
	SetParams       []string
}

CreateOptions holds the create cmd options

type DeleteOptions

type DeleteOptions struct {
	Manager string

	Wait                bool
	KeepPVC             bool
	DeleteNamespace     bool
	DeleteConfigMap     bool
	AutoDeleteNamespace bool
	IgnoreNotFound      bool

	Project string
}

type ListOptions

type ListOptions struct {
	Manager string

	Output string
}

type ListVCluster

type ListVCluster struct {
	Created    time.Time
	Name       string
	Namespace  string
	Version    string
	Status     string
	AgeSeconds int
	Connected  bool
}

ListVCluster holds information about a cluster

type PauseOptions

type PauseOptions struct {
	Manager string

	Project       string
	ForceDuration int64
}

type ResumeOptions

type ResumeOptions struct {
	Manager string

	Project string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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