-
-
Notifications
You must be signed in to change notification settings - Fork 324
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
Fix event publishing for cluster scoped crds #847
Conversation
ah thanks for this. TIL. although, if this is true, then i'm thinking it might be better to fallback to |
I will fix the DCO thingy and try to add it there. @clux should I also drop the |
yeah, i don't think we need an override for it. The default namespace is documented as:
and events for a cluster scoped resource fits that definition pretty well. i'll put in a suggestion. |
* There is no api for publishing cluster scoped events * It default to `default` namespace * Added ability to override namespace on Recorder::new Signed-off-by: Zdeněk Hřebíček <zdenek.hrebicek@gmail.com>
Co-authored-by: Eirik A <sszynrae@gmail.com> Signed-off-by: Zdeněk Hřebíček <zdenek.hrebicek@gmail.com>
Signed-off-by: Zdeněk Hřebíček <zdenek.hrebicek@gmail.com>
I see I have formatted this |
The fmt job should not pass if you accidentally formatted something. Note that formatting is done with nightly; |
Signed-off-by: Zdeněk Hřebíček <zdenek.hrebicek@gmail.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.
minor comment nits, but LGTM
Co-authored-by: Eirik A <sszynrae@gmail.com> Signed-off-by: Zdeněk Hřebíček <zdenek.hrebicek@gmail.com>
Co-authored-by: Eirik A <sszynrae@gmail.com> Signed-off-by: Zdeněk Hřebíček <zdenek.hrebicek@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #847 +/- ##
==========================================
+ Coverage 70.31% 70.44% +0.13%
==========================================
Files 59 59
Lines 4184 4203 +19
==========================================
+ Hits 2942 2961 +19
Misses 1242 1242
Continue to review full report at Codecov.
|
default
namespaceMotivation
We were getting
405
when trying to publish events for cluster scoped crds.Solution
As there seems to be no endpoint for cluster scoped events.
I have added default namespace
default
for cluster scoped crds and I have added way to override it for all the cases.I am not sure about the
namespace_override
but it seems good enough as is, maybe needs better comment/renaming.cc: @teozkr