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 May 27, 2024
1 parent 54b832e commit cc2aea6
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 @@ -184,6 +184,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 cc2aea6

Please sign in to comment.