helpers

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTaints

func AddTaints(taints *[]clusterv1.Taint, taint clusterv1.Taint) bool

AddTaints add taints to the specified slice, if it did not already exist. Return a boolean indicating whether the slice has been updated.

func FindTaint

func FindTaint(taints []clusterv1.Taint, taint clusterv1.Taint) *clusterv1.Taint

func FindTaintByKey

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 IsCSRSupported

func IsCSRSupported(nativeClient kubernetes.Interface) (bool, bool, error)

IsCSRSupported checks whether the cluster supports v1 or v1beta1 csr api.

func IsTaintEqual

func IsTaintEqual(taint1, taint2 clusterv1.Taint) bool

func IsValidHTTPSURL

func IsValidHTTPSURL(serverURL string) bool

IsValidHTTPSURL validate whether a URL is https URL

func Isv1beta1CSRInTerminalState

func Isv1beta1CSRInTerminalState(status *certificatesv1beta1.CertificateSigningRequestStatus) bool

Isv1beta1CSRInTerminalState checks whether a CSR is in terminal state for v1beta1 version.

func ManagedClusterAssetFn

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

func RemoveTaints

func RemoveTaints(taints *[]clusterv1.Taint, targets ...clusterv1.Taint) (updated bool)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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