mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 05:14:13 +01:00
fix: display ownerKey in the logs correctly
This commit is contained in:
@@ -57,6 +57,10 @@ type podOwner struct {
|
|||||||
imagesHash string
|
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
|
// New builds plugin from its arguments while passing a handle
|
||||||
func New(args runtime.Object, handle frameworktypes.Handle) (frameworktypes.Plugin, error) {
|
func New(args runtime.Object, handle frameworktypes.Handle) (frameworktypes.Plugin, error) {
|
||||||
removeDuplicatesArgs, ok := args.(*RemoveDuplicatesArgs)
|
removeDuplicatesArgs, ok := args.(*RemoveDuplicatesArgs)
|
||||||
|
|||||||
Reference in New Issue
Block a user