common

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubeconfigFlag     = clientcmd.RecommendedConfigPathFlag // String flag
	ChattyStatusFlag   = "chatty-status"                     // Boolean flag
	VerbosityFlag      = "verbosity"                         // Int flag
	PostCreateHookFlag = "postcreate-hook"                   // String flag
	SetFlag            = "set"                               // []String flag
)

Variables

View Source
var BuildDate string

BuildDate injected by makefile:LDFLAGS

View Source
var Version string

Version injected by makefile:LDFLAGS

View Source
var WarningMessage string

WarningMessage injected by makefile:LDFLAGS

Functions

func GenerateControlPlane added in v0.8.0

func GenerateControlPlane(name, controlPlaneType, backendType, hook string, hookVars []string, tokenExpirationSeconds *int64) (*tenancyv1alpha1.ControlPlane, error)

Generate a control plane based with a name

Types

type CP

type CP struct {
	Ctx        context.Context
	Kubeconfig string
	Name       string
}

func NewCP added in v0.8.6

func NewCP(kubeconfigPath string, options ...CPOption) CP

New control plane with option design pattern

type CPOption added in v0.8.6

type CPOption func(*CP)

func WithName added in v0.8.6

func WithName(name string) CPOption

Make Name optional using option design pattern

type KflexGlobalOptions added in v0.8.8

type KflexGlobalOptions interface {
	WithChattyStatus(chattyStatus bool)
	WithVerbosity(verbosity int)
	WithKubeconfig(kubeconfig string)
}

Jump to

Keyboard shortcuts

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