From faf5110c8a2394f9d098da6e5097ce6deed1b18b Mon Sep 17 00:00:00 2001 From: Lukasz Szaszkiewicz Date: Mon, 27 May 2024 11:13:18 +0200 Subject: [PATCH] client-go/util/consistencydetector: update after moving to the new package --- .../util/consistencydetector/data_consistency_detector.go | 2 +- .../consistencydetector/data_consistency_detector_test.go | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/staging/src/k8s.io/client-go/util/consistencydetector/data_consistency_detector.go b/staging/src/k8s.io/client-go/util/consistencydetector/data_consistency_detector.go index 0aacee4a067..ce5348381f9 100644 --- a/staging/src/k8s.io/client-go/util/consistencydetector/data_consistency_detector.go +++ b/staging/src/k8s.io/client-go/util/consistencydetector/data_consistency_detector.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package cache +package consistencydetector import ( "context" diff --git a/staging/src/k8s.io/client-go/util/consistencydetector/data_consistency_detector_test.go b/staging/src/k8s.io/client-go/util/consistencydetector/data_consistency_detector_test.go index 81affb75d76..8ce0e312766 100644 --- a/staging/src/k8s.io/client-go/util/consistencydetector/data_consistency_detector_test.go +++ b/staging/src/k8s.io/client-go/util/consistencydetector/data_consistency_detector_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package cache +package consistencydetector import ( "context" @@ -26,6 +26,7 @@ import ( v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apimachinery/pkg/types" "k8s.io/utils/ptr" ) @@ -158,3 +159,7 @@ func (lw *listWrapper) List(_ context.Context, opts metav1.ListOptions) (*v1.Pod lw.requestOptions = append(lw.requestOptions, opts) return lw.response, nil } + +func makePod(name, rv string) *v1.Pod { + return &v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: name, ResourceVersion: rv, UID: types.UID(name)}} +}