Documentation ¶
Index ¶
- func CleanUpGroupFromClusterRoleBindings(ctx context.Context, client kubernetes.Interface, recorder events.Recorder, ...) error
- func CleanUpGroupFromRoleBindings(ctx context.Context, client kubernetes.Interface, recorder events.Recorder, ...) error
- func CleanUpManagedClusterManifests(ctx context.Context, client kubernetes.Interface, recorder events.Recorder, ...) error
- func IsCSRInTerminalState(status *certificatesv1.CertificateSigningRequestStatus) bool
- func IsValidHTTPSURL(serverURL string) bool
- func ManagedClusterAssetFn(manifestDir, managedClusterName string) resourceapply.AssetFunc
- 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 CleanUpGroupFromClusterRoleBindings ¶
func CleanUpGroupFromClusterRoleBindings( ctx context.Context, client kubernetes.Interface, recorder events.Recorder, managedClusterGroup string) error
CleanUpGroupFromClusterRoleBindings search all clusterrolebindings for managed cluster group and remove the subject entry or delete the clusterrolebinding if it's the only subject.
func CleanUpGroupFromRoleBindings ¶
func CleanUpGroupFromRoleBindings( ctx context.Context, client kubernetes.Interface, recorder events.Recorder, managedClusterGroup string) error
CleanUpGroupFromRoleBindings search all rolebindings for managed cluster group and remove the subject entry or delete the rolebinding if it's the only subject.
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 IsCSRInTerminalState ¶
func IsCSRInTerminalState(status *certificatesv1.CertificateSigningRequestStatus) bool
Check whether a CSR is in terminal state
func IsValidHTTPSURL ¶
IsValidHTTPSURL validate whether a URL is https URL
func ManagedClusterAssetFn ¶
func ManagedClusterAssetFn(manifestDir, 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
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.