Skip to content

Commit

Permalink
perf: prune cached pod data spec & status
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Duarte Barroso <[email protected]>
  • Loading branch information
maiqueb committed Aug 12, 2024
1 parent 3727994 commit 640b69b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ func pruneIrrelevantPodData(obj interface{}) (interface{}, error) {
Annotations: oldPod.Annotations,
Labels: oldPod.Labels,
}
newPod.Spec = corev1.PodSpec{}
newPod.Status = corev1.PodStatus{}

return newPod, nil
}

0 comments on commit 640b69b

Please sign in to comment.