util

package
v0.0.0-...-b86b35d Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IDClaim          = "id.k8s.io"
	VersionClaim     = "kubeversion.open-cluster-management.io"
	DefaultNamespace = "default"
)

Variables

View Source
var (
	ClusterInfoGVR = schema.GroupVersionResource{
		Group:    "internal.open-cluster-management.io",
		Version:  "v1beta1",
		Resource: "managedclusterinfos",
	}
)

Functions

func GetManagedClusterClaims

func GetManagedClusterClaims(ctx context.Context, clusterClient clusterclient.Interface, clusterName string) (sets.Set[string], error)

func GetResource

func GetResource(ctx context.Context, dynamicClient dynamic.Interface, gvr schema.GroupVersionResource, namespace, name string) (*unstructured.Unstructured, error)

func IsResourceStatusConditionTrue

func IsResourceStatusConditionTrue(obj *unstructured.Unstructured, conditionType string) bool

func Kubectl

func Kubectl(kubeConfig string, args ...string) (string, error)

func NewClaim

func NewClaim() *clusterv1alpha1.ClusterClaim

func NewConfigmap

func NewConfigmap(name string) *corev1.ConfigMap

func ToManifest

func ToManifest(object runtime.Object) workv1.Manifest

Types

This section is empty.

Jump to

Keyboard shortcuts

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