Skip to content

Commit

Permalink
Merge pull request #7965 from ykakarap/add-disablenodelabelsync-comment
Browse files Browse the repository at this point in the history
🌱 add comment to disableNodeLabelSync
  • Loading branch information
k8s-ci-robot authored Jan 23, 2023
2 parents 3aca5b3 + d08f6a8 commit 9c4c02e
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 9c4c02e

Please sign in to comment.