We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
timestamp_nanos
1 parent bebbb10 commit 79074f2Copy full SHA for 79074f2
kube-runtime/src/events.rs
@@ -74,7 +74,9 @@ pub enum EventType {
74
Warning,
75
}
76
77
-/// ObjectReference with Hash and Eq implementations
+/// [`ObjectReference`] with Hash and Eq implementations
78
+///
79
+/// [`ObjectReference`]: k8s_openapi::api::core::v1::ObjectReference
80
#[derive(Clone, Debug, PartialEq)]
81
pub struct Reference(ObjectReference);
82
@@ -265,7 +267,7 @@ impl Recorder {
265
267
metadata: ObjectMeta {
266
268
namespace: reference.namespace.clone(),
269
name: Some(format!(
- "{}.{}",
270
+ "{}.{:x}",
271
reference.name.as_ref().unwrap_or(&self.reporter.controller),
272
now.timestamp_nanos_opt().unwrap_or_else(|| now.timestamp())
273
)),
0 commit comments