Documentation ¶
Index ¶
- func AddTaints(taints *[]clusterv1.Taint, taint clusterv1.Taint) bool
- func CleanUpManagedClusterManifests(ctx context.Context, client kubernetes.Interface, recorder events.Recorder, ...) error
- func FindTaint(taints []clusterv1.Taint, taint clusterv1.Taint) *clusterv1.Taint
- func FindTaintByKey(managedCluster *clusterv1.ManagedCluster, key string) *clusterv1.Taint
- func IsCSRInTerminalState(status *certificatesv1.CertificateSigningRequestStatus) bool
- func IsCSRSupported(nativeClient kubernetes.Interface) (bool, bool, error)
- func IsTaintEqual(taint1, taint2 clusterv1.Taint) bool
- func IsValidHTTPSURL(serverURL string) bool
- func Isv1beta1CSRInTerminalState(status *certificatesv1beta1.CertificateSigningRequestStatus) bool
- func ManagedClusterAssetFn(fs embed.FS, managedClusterName string) resourceapply.AssetFunc
- func RemoveTaints(taints *[]clusterv1.Taint, targets ...clusterv1.Taint) (updated bool)
- func UpdateManagedClusterAddOnStatus(ctx context.Context, client addonv1alpha1client.Interface, ...) (*addonv1alpha1.ManagedClusterAddOnStatus, bool, error)
- func UpdateManagedClusterStatus(ctx context.Context, client clusterclientset.Interface, ...) (*clusterv1.ManagedClusterStatus, bool, error)
- type UpdateManagedClusterAddOnStatusFunc
- type UpdateManagedClusterStatusFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTaints ¶ added in v0.7.0
AddTaints add taints to the specified slice, if it did not already exist. Return a boolean indicating whether the slice has been updated.
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 IsCSRSupported ¶ added in v0.7.0
func IsCSRSupported(nativeClient kubernetes.Interface) (bool, bool, error)
IsCSRSupported checks whether the cluster supports v1 or v1beta1 csr api.
func IsTaintEqual ¶ added in v0.7.0
func IsValidHTTPSURL ¶
IsValidHTTPSURL validate whether a URL is https URL
func Isv1beta1CSRInTerminalState ¶ added in v0.8.0
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 ¶ added in v0.7.0
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
func UpdateManagedClusterAddOnStatusFn ¶
func UpdateManagedClusterAddOnStatusFn(cond metav1.Condition) UpdateManagedClusterAddOnStatusFunc
type UpdateManagedClusterStatusFunc ¶
type UpdateManagedClusterStatusFunc func(status *clusterv1.ManagedClusterStatus) error
func UpdateManagedClusterConditionFn ¶
func UpdateManagedClusterConditionFn(cond metav1.Condition) UpdateManagedClusterStatusFunc
Click to show internal directories.
Click to hide internal directories.