Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AppliedWorkFailedReason is the reason string of work condition when it failed to apply the work. AppliedWorkFailedReason = "AppliedWorkFailed" // AppliedWorkCompleteReason is the reason string of work condition when it finished applying work. AppliedWorkCompleteReason = "AppliedWorkComplete" // AppliedManifestFailedReason is the reason string of condition when it failed to apply manifest. AppliedManifestFailedReason = "AppliedManifestFailedReason" )
WorkCondition condition reasons
View Source
const ( // ManifestCreatedAction indicates that we created the manifest for the first time. ManifestCreatedAction applyAction = "ManifestCreated" // ManifestThreeWayMergePatchAction indicates that we updated the manifest using three-way merge patch. ManifestThreeWayMergePatchAction applyAction = "ManifestThreeWayMergePatched" // ManifestServerSideAppliedAction indicates that we updated the manifest using server side apply. ManifestServerSideAppliedAction applyAction = "ManifestServerSideApplied" // ManifestNoChangeAction indicates that we don't need to change the manifest. ManifestNoChangeAction applyAction = "ManifestNoChange" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyWorkReconciler ¶
type ApplyWorkReconciler struct {
// contains filtered or unexported fields
}
ApplyWorkReconciler reconciles a Work object
func NewApplyWorkReconciler ¶
func NewApplyWorkReconciler(hubClient client.Client, spokeDynamicClient dynamic.Interface, spokeClient client.Client, restMapper meta.RESTMapper, recorder record.EventRecorder, concurrency int, workNameSpace string) *ApplyWorkReconciler
func (*ApplyWorkReconciler) Join ¶
func (r *ApplyWorkReconciler) Join(_ context.Context) error
Join starts to reconcile
func (*ApplyWorkReconciler) Leave ¶
func (r *ApplyWorkReconciler) Leave(ctx context.Context) error
Leave start
func (*ApplyWorkReconciler) SetupWithManager ¶
func (r *ApplyWorkReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager wires up the controller.
Click to show internal directories.
Click to hide internal directories.