-
Notifications
You must be signed in to change notification settings - Fork 278
✨ Add cache on provider scope #1688
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
✨ Add cache on provider scope #1688
Conversation
|
✅ Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Hi @alexandrevilain. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
18053d1
to
73a7f8e
Compare
/retest |
73a7f8e
to
da18fbd
Compare
/retest |
@alexandrevilain If you run |
da18fbd
to
2ce485a
Compare
Oh thanks @mdbooth! /retest |
I think it's ready for review. |
main.go
Outdated
if scopeCacheMaxSize <= 0 { | ||
err := errors.New("--scope-cache-max-size should be > 0") | ||
setupLog.Error(err, "unable to start manager") | ||
os.Exit(1) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about allowing 0 cache size as a way to disable caching?
I'm not sure if that is something we need to support but it is often beneficial to be able to opt-out of new features
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea!
Another benefit we can have is to debug without cache if something is going wrong
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated, setting the flag to --scope-cache-max-size=0
disable the cache.
2ce485a
to
7200107
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
/lgtm
/test pull-cluster-api-provider-openstack-e2e-full-test |
/remove-hold |
/cc @mdbooth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try to get to this properly on Monday.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a great addition... We faced problems with Keystone as well, potentially related to too many auth requests, which is still being investigated at this point.
Signed-off-by: alexandre.vilain <[email protected]>
7200107
to
f444006
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Any more comments @mdbooth ? Otherwise I think we can take this in 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/hold cancel |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alexandrevilain, EmilienM, lentzi90 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 |
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #1647
Special notes for your reviewer:
TODOs:
/hold