-
Notifications
You must be signed in to change notification settings - Fork 38
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 custom cache on KCP #70
Conversation
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
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.
the changes in and of themselves look good to me @mmorhun
I am having a little uncertainty understanding how your comment in the PR description:
The difference with previous version is that all Secrets are excluded from cache (it used to cache secrets with part-of appstudio label that were only copies of PaC credentials in local namespace)
correlates with these changes.
I think I understand, but I'm going to reiterate in my own words what I think you are saying. Please let me know if I have it correct or not.
Are you saying that these changes were needed to exclude all Secrets
and that before these changes the excluded object list at https://github.com/redhat-appstudio/build-service/blob/992e47b34fcb9d0c92410f230efdaec3abcb4545/main.go#L223-L226 was NOT sufficient to exclude all Secrets
?
If the answer to that question is "yes", then I see you bumped the https://github.com/kcp-dev/controller-runtime dependency. Was the dependency the "it" in your (it used to cache secrets with part-of appstudio label that were only copies of PaC credentials in local namespace
statement? And overriding the cache function fixes whatever behavior in KCP lead to secrets getting cached even though secrets are in the exclude list?
Thanks. And if it is easier to sort our my questions over video conf, and then put the answer(s) here do let me know.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gabemontero, Michkov, mmorhun 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 |
@gabemontero thank you for the review. Sorry, if my quick explanation was not clear.
No, I am not. The selected code part is enough to exclude all secrets.
I bumped KCP
Sorry for not being clear enough and poor English. By
Good question. I haven't tried, but requesting controversy behavior is misleading. I think we should be clear in code what we want to have.
We can do both. |
I'm good @mmorhun those clarifications ^^ helped / I get it now - thanks |
Restores some custom cache setting.
The difference with previous version is that all
Secrets
are excluded from cache (the operator used to cache secrets with part-of appstudio label that were only copies of PaC credentials in local namespace)Signed-off-by: Mykola Morhun mmorhun@redhat.com