create

package
v3.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MPL-2.0 Imports: 40 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// LoftCustomLinksAnnotation is applied to enumerates associated links to external websites
	LoftCustomLinksAnnotation = "loft.sh/custom-links"

	// LoftCustomLinksDelimiter is the separator for the values of the custom links annotation
	LoftCustomLinksDelimiter = "\n"
)

Variables

This section is empty.

Functions

func NewCreateCmd

func NewCreateCmd(globalFlags *flags.GlobalFlags, defaults *pdefaults.Defaults) *cobra.Command

NewCreateCmd creates a new cobra command

func NewSpaceCmd

func NewSpaceCmd(globalFlags *flags.GlobalFlags, defaults *pdefaults.Defaults) *cobra.Command

NewSpaceCmd creates a new command

func NewVirtualClusterCmd

func NewVirtualClusterCmd(globalFlags *flags.GlobalFlags, defaults *pdefaults.Defaults) *cobra.Command

NewVirtualClusterCmd creates a new command

func ResolveTemplate

func ResolveTemplate(
	ctx context.Context,
	baseClient client.Client,
	project,
	template,
	templateVersion string,
	setParams []string,
	fileParams string,
	log log.Logger,
) (*managementv1.VirtualClusterTemplate, string, error)

func SetCustomLinksAnnotation

func SetCustomLinksAnnotation(obj metav1.Object, links []string) bool

SetCustomLinksAnnotation sets the list of links for the UI to display next to the project member({space/virtualcluster}instance) it handles unspecified links (empty) during create and update

func UpdateAnnotations

func UpdateAnnotations(obj metav1.Object, annotationList []string) (bool, error)

func UpdateLabels

func UpdateLabels(obj metav1.Object, labelList []string) (bool, error)

Types

type SpaceCmd

type SpaceCmd struct {
	*flags.GlobalFlags

	SleepAfter                   int64
	DeleteAfter                  int64
	Cluster                      string
	Project                      string
	CreateContext                bool
	SwitchContext                bool
	DisableDirectClusterEndpoint bool
	Template                     string
	Version                      string
	Set                          []string
	ParametersFile               string
	SkipWait                     bool

	UseExisting bool
	Recreate    bool
	Update      bool

	DisplayName string
	Description string
	Links       []string
	Annotations []string
	Labels      []string

	User string
	Team string

	Log log.Logger
}

SpaceCmd holds the cmd flags

func (*SpaceCmd) Run

func (cmd *SpaceCmd) Run(ctx context.Context, args []string) error

Run executes the command

type VirtualClusterCmd

type VirtualClusterCmd struct {
	*flags.GlobalFlags

	SleepAfter    int64
	DeleteAfter   int64
	Image         string
	Cluster       string
	Space         string
	Template      string
	Project       string
	CreateContext bool
	SwitchContext bool
	Print         bool
	SkipWait      bool

	UseExisting bool
	Recreate    bool
	Update      bool

	Set            []string
	ParametersFile string
	Version        string

	DisplayName string
	Description string
	Links       []string
	Annotations []string
	Labels      []string

	User string
	Team string

	DisableDirectClusterEndpoint bool
	AccessPointCertificateTTL    int32

	Out io.Writer
	Log log.Logger
}

VirtualClusterCmd holds the cmd flags

func (*VirtualClusterCmd) Run

func (cmd *VirtualClusterCmd) Run(ctx context.Context, args []string) error

Run executes the command

Jump to

Keyboard shortcuts

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