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

fix: watch loop issues #43

Merged
merged 2 commits into from
Jun 26, 2018
Merged

fix: watch loop issues #43

merged 2 commits into from
Jun 26, 2018

Conversation

darahayes
Copy link

It seems my editor also did some auto formatting but I guess that shouldn't really be an issue.

@darahayes darahayes requested a review from pb82 June 25, 2018 13:39
Copy link
Contributor

@pb82 pb82 left a comment

Choose a reason for hiding this comment

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

LGTM, will verify after comm. meeting

@@ -39,7 +40,9 @@ func (op ConfigOperator) StartService() {
log.Print("Entering watch loop")

go op.startPollingUPS()
op.startKubeWatchLoop()
for {
op.startKubeWatchLoop()
Copy link
Member

Choose a reason for hiding this comment

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

@darahayes could you please document that this method is blocking and we have it in a for loop because watch might expire/timeout?

Copy link
Author

Choose a reason for hiding this comment

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

@aliok sounds like a good idea!

@darahayes
Copy link
Author

@aliok I made some minor comments around the code. I figured it would be inappropriate to put this in the readme. Let me know what you think.

@aliok
Copy link
Member

aliok commented Jun 26, 2018

@darahayes +1 on those comments. looks good. feel free to merge as Peter has approved it.

@darahayes darahayes merged commit a0be10d into master Jun 26, 2018
@darahayes darahayes deleted the fix-watch-loop branch June 26, 2018 10:13
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.

3 participants