1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 13:29:11 +01:00

fix: display ownerKey in the logs correctly

This commit is contained in:
Dmitrii Erokhin
2023-11-02 11:23:11 +03:00
parent c4ab2008e4
commit 289c003f87

View File

@@ -57,6 +57,10 @@ type podOwner struct {
imagesHash string
}
func (po podOwner) String() string {
return fmt.Sprintf("%s/%s/%s/%s", po.namespace, po.kind, po.name, po.imagesHash)
}
// New builds plugin from its arguments while passing a handle
func New(args runtime.Object, handle frameworktypes.Handle) (frameworktypes.Plugin, error) {
removeDuplicatesArgs, ok := args.(*RemoveDuplicatesArgs)