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

ansible/controller,helm/controller: reconcile controller to use cache #1022

Conversation

shawn-hurley
Copy link
Member

Description of the change:
Set the reconciler to use the cache for a Reader.

Motivation for the change:
The delegating reader will proxy unstructured calls to the API and not use the cache.

This is specifically for 0.4.0, there is a better mechanism when using controller-runtime v0.1.10

@shawn-hurley shawn-hurley added kind/bug Categorizes issue or PR as related to a bug. language/ansible Issue is related to an Ansible operator project language/helm Issue is related to a Helm operator project labels Jan 29, 2019
@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 29, 2019
Copy link
Member

@joelanford joelanford left a comment

Choose a reason for hiding this comment

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

LGTM

Even though there's a better way to do it with controller-runtime 1.10, does it make sense to include this on master in case we make a release before the 1.10 work is complete?

@shawn-hurley
Copy link
Member Author

let's keep it in mind but @hasbro17 is close with the bump and the other way is easy to implement IMO so I would wait. Both changes are small though so not a big deal either way if you feel strongly I can cherry-pick.

@joelanford
Copy link
Member

Yeah I just approved #1020, so I'm good with waiting. If we get to the point of making a release, we can always cherry pick this if necessary.

@shawn-hurley shawn-hurley force-pushed the bugfix/use-cache-for-unstructured branch from 83c76d8 to b64ce51 Compare January 31, 2019 16:18
@shawn-hurley shawn-hurley force-pushed the bugfix/use-cache-for-unstructured branch from b64ce51 to 8c010d4 Compare February 1, 2019 14:51
@shawn-hurley shawn-hurley merged commit 7ef94d6 into operator-framework:v0.4.x Feb 1, 2019
shawn-hurley pushed a commit to shawn-hurley/operator-sdk that referenced this pull request Apr 23, 2019
…operator-framework#1022)

<!--

Before making a PR, please read our contributing guidelines https://github.com/operator-framework/operator-sdk/blob/master/CONTRIBUTING.MD

Note: Make sure your branch is rebased to the latest upstream master.

-->

**Description of the change:**
Set the reconciler to use the cache for a Reader.

**Motivation for the change:**
The delegating reader will proxy unstructured calls to the API and not use the cache.

This is specifically for 0.4.0, there is a better mechanism when using controller-runtime v0.1.10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. language/ansible Issue is related to an Ansible operator project language/helm Issue is related to a Helm operator project size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants