Skip to content
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

Oper leader elect #115

Closed
wants to merge 8 commits into from
Closed

Oper leader elect #115

wants to merge 8 commits into from

Conversation

tpantelis
Copy link
Owner

No description provided.

...to conform to the standard Go project layout:
https://github.com/golang-standards/project-layout?tab=readme-ov-file#cmd

Signed-off-by: Tom Pantelis <[email protected]>
- Use sigs.k8s.io/controller-runtime alias for SetupSignalHandler

- Set 'ctx' to the SetupSignalHandler context

- Pass 'cfg' to ctrl.NewManager instead of creating new one

Signed-off-by: Tom Pantelis <[email protected]>
Fixes:

"Warning: 'patchesJson6902' is deprecated. Please use 'patches' instead"

Signed-off-by: Tom Pantelis <[email protected]>
Mainly informational comments.

Signed-off-by: Tom Pantelis <[email protected]>
...instead of leader-for-life. The latter was implemented in the
operator SDK early on before controller-runtime supported
leader-with-lease. However leader-with-lease is the preferred
method and leader-for-life is being proposed for deprecation
(see operator-framework/operator-lib#117).

Signed-off-by: Tom Pantelis <[email protected]>
@tpantelis tpantelis closed this Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant