Skip to content

Commit

Permalink
add comments to disableNodeLabelSync
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuvaraj Kakaraparthi committed Jan 20, 2023
1 parent 7527262 commit d08f6a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/controllers/machine/machine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ type Reconciler struct {
// nodeDeletionRetryTimeout determines how long the controller will retry deleting a node
// during a single reconciliation.
nodeDeletionRetryTimeout time.Duration
disableNodeLabelSync bool

// disableNodeLabelSync should only be used for tests. This is used to skip the parts of
// the controller that need SSA as the current test setup does not support SSA.
// This flag should be dropped after the tests are migrated to envtest.
disableNodeLabelSync bool
}

func (r *Reconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error {
Expand Down

0 comments on commit d08f6a8

Please sign in to comment.