mirror of
https://github.com/kubernetes/client-go.git
synced 2025-12-26 06:32:27 +00:00
Merge pull request #134731 from tisonkun/patch-1
Fix comments and reformat import statements Kubernetes-commit: 0eb5db7dbe49c077fb8f7e4448adfb829062a778
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user