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

Removing stale sockets while running Ansible operators #3721

Merged
merged 2 commits into from
Aug 13, 2020
Merged

Removing stale sockets while running Ansible operators #3721

merged 2 commits into from
Aug 13, 2020

Conversation

VenkatRamaraju
Copy link
Contributor

Description of the change:
Removed stale sockets during the closing of Ansible operators.

Motivation for the change:
Removing of unused/stale sockets allows for smoother initialization of the operator during start-up.

"io"
"io/ioutil"
"net"
"net/http"
"os"
logf "sigs.k8s.io/controller-runtime/pkg/log"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing fragment and fix the order of the imports.

Copy link
Member

@fabianvf fabianvf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 13, 2020
Copy link
Member

@jmrodri jmrodri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Comment on lines +3 to +5
Removed stale unix sockets. This allows for smoother
initialization during the start-up of an Ansible operator,
as each operator will clean up its sockets during termination.
Copy link
Contributor

@camilamacedo86 camilamacedo86 Aug 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Removed stale unix sockets. This allows for smoother
initialization during the start-up of an Ansible operator,
as each operator will clean up its sockets during termination.
Remove stale Unix sockets when the events are closed in order to optimize the initialization process of Ansible-based Operators.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a nit ^ Otherwise /lgtm

@fabianvf fabianvf merged commit 43e617e into operator-framework:master Aug 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants