helpers

package
v0.0.0-...-40cbf59 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClusterWorkspaceGVR = schema.GroupVersionResource{
	Group:    "tenancy.kcp.dev",
	Version:  "v1alpha1",
	Resource: "clusterworkspaces",
}

Functions

func GetAbsoluteWorkspaceURL

func GetAbsoluteWorkspaceURL(host string, absoluteWorkspace string) (string, error)

func GetAddonName

func GetAddonName(workspaceId string) string

func GetKCPContext

func GetKCPContext(host string) (string, error)

func GetParentWorkspaceId

func GetParentWorkspaceId(workspaceId string) string

func GetSyncerPrefix

func GetSyncerPrefix() string

func GetWorkspaceAnnotationName

func GetWorkspaceAnnotationName() string

func GetWorkspaceIdFromObject

func GetWorkspaceIdFromObject(obj interface{}) string

func GetWorkspaceName

func GetWorkspaceName(workspaceId string) string

func GetWorkspacePhase

func GetWorkspacePhase(workspace runtime.Object) string

func GetWorkspaceType

func GetWorkspaceType(workspace runtime.Object) string

func GetWorkspaceURL

func GetWorkspaceURL(workspace runtime.Object) string

func IsAbsoluteWorkspace

func IsAbsoluteWorkspace(host string, workspace string) (bool, error)

This implementation assumes the absolute workspace is the kcp config current context or a child of it. Another option would just be to check for "root:" prefix. This is a temporary for hack for kcp dev workload support.

Types

This section is empty.

Jump to

Keyboard shortcuts

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