diff --git a/go.mod b/go.mod index 0faede71c..ce3caceb6 100644 --- a/go.mod +++ b/go.mod @@ -38,7 +38,7 @@ require ( k8s.io/client-go v0.18.9 k8s.io/kube-aggregator v0.18.9 k8s.io/kubernetes v1.18.9 - kmodules.xyz/client-go v0.0.0-20201230092550-8ca15cfcbefa + kmodules.xyz/client-go v0.0.0-20210108092221-c3812eb92bd0 kmodules.xyz/constants v0.0.0-20200923054614-6b87dbbae4d6 kmodules.xyz/custom-resources v0.0.0-20201124062543-bd8d35c21b0c kmodules.xyz/objectstore-api v0.0.0-20201105133858-cbb2af88d50a diff --git a/go.sum b/go.sum index d3931e472..217acdb19 100644 --- a/go.sum +++ b/go.sum @@ -1154,8 +1154,8 @@ kmodules.xyz/client-go v0.0.0-20201105071625-0b277310b9b8 h1:zs2+yI/Ola5HjdtfP29 kmodules.xyz/client-go v0.0.0-20201105071625-0b277310b9b8/go.mod h1:WXDwZBmvrcLgGcuO9iZpI9jcfPuDFfWbxA4EnhAFtGw= kmodules.xyz/client-go v0.0.0-20201208053851-a1d7be95e006 h1:gNrNTwi0jViRqdszsb0W5CQF+ANNVFlvh/LO0A3R7dM= kmodules.xyz/client-go v0.0.0-20201208053851-a1d7be95e006/go.mod h1:WXDwZBmvrcLgGcuO9iZpI9jcfPuDFfWbxA4EnhAFtGw= -kmodules.xyz/client-go v0.0.0-20201230092550-8ca15cfcbefa h1:1a6/yWhBhxAXzvPsPXW4tg7l93pP2B9LsEZOe4ldGPE= -kmodules.xyz/client-go v0.0.0-20201230092550-8ca15cfcbefa/go.mod h1:WXDwZBmvrcLgGcuO9iZpI9jcfPuDFfWbxA4EnhAFtGw= +kmodules.xyz/client-go v0.0.0-20210108092221-c3812eb92bd0 h1:VHpZt3cG/yY6UrA3vjoUc4pJtc/jVbjt2A3OPuMXBOQ= +kmodules.xyz/client-go v0.0.0-20210108092221-c3812eb92bd0/go.mod h1:WXDwZBmvrcLgGcuO9iZpI9jcfPuDFfWbxA4EnhAFtGw= kmodules.xyz/constants v0.0.0-20200923054614-6b87dbbae4d6 h1:9b61GdwFN3IC9tPmBvgXdo2kBlQKvyFUy5y4Q0fwB5E= kmodules.xyz/constants v0.0.0-20200923054614-6b87dbbae4d6/go.mod h1:DbiFk1bJ1KEO94t1SlAn7tzc+Zz95rSXgyUKa2nzPmY= kmodules.xyz/crd-schema-fuzz v0.0.0-20200922204806-c1426cd7fcf4/go.mod h1:WrO3fryNyFCgqqyWnwI89lnzWA7kN072Ehya7ELGfzE= diff --git a/vendor/kmodules.xyz/client-go/tools/queue/handler.go b/vendor/kmodules.xyz/client-go/tools/queue/handler.go index ec61c6428..4d98b4061 100644 --- a/vendor/kmodules.xyz/client-go/tools/queue/handler.go +++ b/vendor/kmodules.xyz/client-go/tools/queue/handler.go @@ -111,6 +111,20 @@ func NewChangeHandler(queue workqueue.RateLimitingInterface) cache.ResourceEvent } } +func NewSpecStatusChangeHandler(queue workqueue.RateLimitingInterface) cache.ResourceEventHandler { + return &QueueingEventHandler{ + queue: queue, + enqueueAdd: nil, + enqueueUpdate: func(old, nu interface{}) bool { + nuObj := nu.(metav1.Object) + return nuObj.GetDeletionTimestamp() != nil || + !meta_util.MustAlreadyReconciled(nu) || + !statusEqual(old, nu) + }, + enqueueDelete: true, + } +} + func Enqueue(queue workqueue.RateLimitingInterface, obj interface{}) { key, err := cache.DeletionHandlingMetaNamespaceKeyFunc(obj) if err != nil { diff --git a/vendor/modules.txt b/vendor/modules.txt index 86026cb8b..17fde4166 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1128,7 +1128,7 @@ k8s.io/utils/net k8s.io/utils/path k8s.io/utils/pointer k8s.io/utils/trace -# kmodules.xyz/client-go v0.0.0-20201230092550-8ca15cfcbefa +# kmodules.xyz/client-go v0.0.0-20210108092221-c3812eb92bd0 kmodules.xyz/client-go kmodules.xyz/client-go/admissionregistration/v1beta1 kmodules.xyz/client-go/api/v1