helpers

package
v0.0.0-...-6625fab Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 24 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 ApplyObjects

func ApplyObjects(ctx context.Context,
	kubeClient kubernetes.Interface,
	clusterMangerClient operatorv1client.ClusterManagerInterface,
	recorder events.Recorder,
	manifests embed.FS,
	config interface{},
	fileNames ...string) error

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 Indent

func Indent(indention int, v []byte) string

func IsWorkspaceStatusConditionTrue

func IsWorkspaceStatusConditionTrue(workspace runtime.Object, conditionType string) bool

func ToConditionSlice

func ToConditionSlice(conditions []metav1.Condition) []interface{}

func ToConditions

func ToConditions(slice []interface{}) []metav1.Condition

Types

This section is empty.

Jump to

Keyboard shortcuts

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