From d707fb729fccc62852b94be94b9eacacd9a695c0 Mon Sep 17 00:00:00 2001 From: tison Date: Mon, 20 Oct 2025 21:55:12 +0800 Subject: [PATCH] Fix comments and reformat import statements Kubernetes-commit: f3d1fd23c576f4691a336444496ab7e6c619624c --- gentype/type.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gentype/type.go b/gentype/type.go index e9f42e14e..e91941d4a 100644 --- a/gentype/type.go +++ b/gentype/type.go @@ -23,9 +23,9 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + "k8s.io/apimachinery/pkg/types" + "k8s.io/apimachinery/pkg/watch" + "k8s.io/client-go/rest" "k8s.io/client-go/util/apply" ) @@ -318,7 +318,7 @@ func (a *alsoApplier[T, C]) Apply(ctx context.Context, obj C, opts metav1.ApplyO return result, err } -// Apply takes the given apply declarative configuration, applies it to the status subresource and returns the applied resource. +// ApplyStatus takes the given apply declarative configuration, applies it to the status subresource and returns the applied resource. func (a *alsoApplier[T, C]) ApplyStatus(ctx context.Context, obj C, opts metav1.ApplyOptions) (T, error) { if obj == *new(C) { return *new(T), fmt.Errorf("object provided to Apply must not be nil")