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

Simplify multi-namespace controller setup #87

Merged
merged 3 commits into from
Dec 18, 2018

Conversation

ironcladlou
Copy link
Contributor

Simplify the multi-namespace controller setup by leveraging the source.Informer
and cache.Cache structures. This allows the deletion of the OperatorManager
structure and concept.

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 13, 2018
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 13, 2018
go func() {
if err := cache.Start(stop); err != nil {
// TODO: propagate to stop channel?
logrus.Infof("cache stopped with error: %v", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

You need to crash and die when this happens - this would be a limping operator that stops reacting to events

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. Refactored to handle async cache failures. Wonder if we should crash if a cache returns at all regardless of error (since we don't restart the caches)...

Simplify the multi-namespace controller setup by leveraging the source.Informer
and cache.Cache structures. This allows the deletion of the OperatorManager
structure and concept.
@ironcladlou
Copy link
Contributor Author

/retest

1 similar comment
@ironcladlou
Copy link
Contributor Author

/retest

@Miciah
Copy link
Contributor

Miciah commented Dec 17, 2018

/lgtm

@ironcladlou
Copy link
Contributor Author

@pravisankar @ramr can you re-tag? Looks like the bots missed it

@Miciah
Copy link
Contributor

Miciah commented Dec 18, 2018

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 18, 2018
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ironcladlou, Miciah

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 536fd9a into openshift:master Dec 18, 2018
Copy link

@pravisankar pravisankar left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants