Skip to content

Prevent Operator star/stop procedure be performed twice #35

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
snowdrop-bot opened this issue Aug 12, 2021 · 0 comments
Closed

Prevent Operator star/stop procedure be performed twice #35

snowdrop-bot opened this issue Aug 12, 2021 · 0 comments

Comments

@snowdrop-bot
Copy link

As today the Operator start/stop methods do not have any barrier to avoid the methods to be invoked more than once and as example, since the introduction of the PR here https://github.com/quarkiverse/quarkus-operator-sdk/blob/main/runtime/src/main/java/io/quarkiverse/operatorsdk/runtime/StartupListener.java, I've observed that my operator did invoke start twice because I also had a startup listener to implement the same functionality.

I have now fixed my code so id does not happen anymore but I feel a barrier on the start/stop methods could be useful in any case.


operator-framework#488


$upstream:488$

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants