Documentation ¶
Index ¶
- Constants
- func NewCreateCmd(globalFlags *flags.GlobalFlags, defaults *pdefaults.Defaults) *cobra.Command
- func NewSpaceCmd(globalFlags *flags.GlobalFlags, defaults *pdefaults.Defaults) *cobra.Command
- func NewVirtualClusterCmd(globalFlags *flags.GlobalFlags, defaults *pdefaults.Defaults) *cobra.Command
- func ResolveTemplate(ctx context.Context, baseClient client.Client, ...) (*managementv1.VirtualClusterTemplate, string, error)
- func SetCustomLinksAnnotation(obj metav1.Object, links []string) bool
- func UpdateAnnotations(obj metav1.Object, annotationList []string) (bool, error)
- func UpdateLabels(obj metav1.Object, labelList []string) (bool, error)
- type SpaceCmd
- type VirtualClusterCmd
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 ¶
NewCreateCmd creates a new cobra command
func NewSpaceCmd ¶
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 SetCustomLinksAnnotation ¶
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 ¶
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
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
Click to show internal directories.
Click to hide internal directories.