helpers

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanUpManagedClusterManifests

func CleanUpManagedClusterManifests(
	ctx context.Context,
	client kubernetes.Interface,
	recorder events.Recorder,
	assetFunc resourceapply.AssetFunc,
	files ...string) error

CleanUpManagedClusterManifests clean up managed cluster resources from its manifest files

func FindTaintByKey added in v0.6.0

func FindTaintByKey(managedCluster *clusterv1.ManagedCluster, key string) *clusterv1.Taint

FindTaintByKey returns a taint if the managed cluster has a taint with the given key.

func IsCSRInTerminalState

func IsCSRInTerminalState(status *certificatesv1.CertificateSigningRequestStatus) bool

Check whether a CSR is in terminal state

func IsValidHTTPSURL

func IsValidHTTPSURL(serverURL string) bool

IsValidHTTPSURL validate whether a URL is https URL

func ManagedClusterAssetFn

func ManagedClusterAssetFn(fs embed.FS, managedClusterName string) resourceapply.AssetFunc

func UpdateManagedClusterAddOnStatus

func UpdateManagedClusterAddOnStatus(
	ctx context.Context,
	client addonv1alpha1client.Interface,
	addOnNamespace, addOnName string,
	updateFuncs ...UpdateManagedClusterAddOnStatusFunc) (*addonv1alpha1.ManagedClusterAddOnStatus, bool, error)

func UpdateManagedClusterStatus

func UpdateManagedClusterStatus(
	ctx context.Context,
	client clusterclientset.Interface,
	spokeClusterName string,
	updateFuncs ...UpdateManagedClusterStatusFunc) (*clusterv1.ManagedClusterStatus, bool, error)

Types

type UpdateManagedClusterAddOnStatusFunc

type UpdateManagedClusterAddOnStatusFunc func(status *addonv1alpha1.ManagedClusterAddOnStatus) error

type UpdateManagedClusterStatusFunc

type UpdateManagedClusterStatusFunc func(status *clusterv1.ManagedClusterStatus) error

func UpdateManagedClusterConditionFn

func UpdateManagedClusterConditionFn(cond metav1.Condition) UpdateManagedClusterStatusFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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