-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support non leader election components #424
support non leader election components #424
Conversation
63b1b3e
to
bdb3e3f
Compare
@@ -41,12 +41,9 @@ type ChaosPodStatus struct { | |||
LastRun metav1.Time `json:"lastRun,omitempty"` | |||
} | |||
|
|||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need an object-gen marker here, no?
pkg/manager/internal.go
Outdated
@@ -237,6 +246,8 @@ func (cm *controllerManager) Start(stop <-chan struct{}) error { | |||
go cm.serveMetrics(cm.internalStop) | |||
} | |||
|
|||
go cm.startHA() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not clear what HA means -- we should say "LeaderElection" or something instead (e.g. NeedsLeaderElection
, startWithLeaderElection
, etc).
bdb3e3f
to
257089c
Compare
webhook server can be run in the non-leaderelection mode
257089c
to
ea5a354
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DirectXMan12, mengqiy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
cleanup: deleted old docs
controller manager support 2 set of runables
fixes: #356