Skip to content
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

Revert "added capability to use elasticsearch datastreams" #102

Merged
merged 1 commit into from
Jul 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions pkg/kube/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ type EnhancedEvent struct {
corev1.Event `json:",inline"`
ClusterName string `json:"clusterName"`
InvolvedObject EnhancedObjectReference `json:"involvedObject"`
Timestamp time.Time `json:"@timestamp"`
}

// DeDot replaces all dots in the labels and annotations with underscores. This is required for example in the
Expand Down Expand Up @@ -48,7 +47,6 @@ type EnhancedObjectReference struct {
// ToJSON does not return an error because we are %99 confident it is JSON serializable.
// TODO(makin) Is it a bad practice? It's open to discussion.
func (e *EnhancedEvent) ToJSON() []byte {
e.Timestamp = e.FirstTimestamp.Time
b, _ := json.Marshal(e)
return b
}
Expand Down