-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add blacklist option to Ansible watches.yaml #2374
Add blacklist option to Ansible watches.yaml #2374
Conversation
f5dc386
to
2734d23
Compare
pkg/ansible/proxy/cache_response.go
Outdated
ownerGV, err := schema.ParseGroupVersion(owner.APIVersion) | ||
if err != nil { | ||
// TODO(asmacdo) what circumstances cause this path? | ||
log.Error(err, "Could not get owner reference from proxy.") |
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.
log.Error(err, "Could not get owner reference from proxy.") | |
log.Error(err, "Unable to parse Group Version") |
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 am not sure if I got this one.
So, the idea is watch all - some specific GVK?
If yes, would not work just add an if here and not add the GVK in the map if it is in the blacklist?
@camilamacedo86, I originally planned to do what you suggested, but the blacklisted watches would be created anyway by the proxy as a side effect of owner reference injection and caching. |
e5b561e
to
37d28fc
Compare
d5db444
to
88538a7
Compare
88538a7
to
7476a3b
Compare
7476a3b
to
54098dd
Compare
54098dd
to
e44929c
Compare
58ce455
to
6457169
Compare
With the addition of this feature, users will be able to prevent the creation of watches for secondary resources by specifying a blacklist of GVKs. The CI was flakey due to the timeouts, so they were bumped as well. Performance test: try to bail early
6457169
to
9390ee5
Compare
3e741d4
to
698a3ba
Compare
/lgtm |
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 pending whether we're enforcing coveralls decrease or not.
With the addition of this feature, users will be able to prevent the
creation of watches for secondary resources by specifying a blacklist
of GVKs.
The CI was flakey due to the timeouts, so they were bumped as well.