Skip to content

drop replace directives for incoming lib bumps #10609

drop replace directives for incoming lib bumps

drop replace directives for incoming lib bumps #10609

Triggered via pull request February 13, 2025 17:03
Status Failure
Total duration 3m 54s
Artifacts

knative-verify.yaml

on: pull_request
verify  /  Verify Deps and Codegen
3m 42s
verify / Verify Deps and Codegen
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
verify / Verify Deps and Codegen: config/core/300-resources/configuration.yaml#L1
Please run ./hack/update-codegen.sh. diff --git a/config/core/300-resources/configuration.yaml b/config/core/300-resources/configuration.yaml index 4d4516f..ce62641 100644 --- a/config/core/300-resources/configuration.yaml +++ b/config/core/300-resources/configuration.yaml @@ -335,7 +335,7 @@ spec: type: object properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in the container. type: object properties: command: @@ -356,7 +356,7 @@ spec: type: integer format: int32 grpc: - description: GRPC specifies an action involving a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. type: object properties: port: @@ -372,7 +372,7 @@ spec: type: string default: "" httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to perform. type: object properties: host: @@ -434,7 +434,7 @@ spec: type: integer format: int32 tcpSocket: - description: TCPSocket specifies an action involving a TCP port. + description: TCPSocket specifies a connection to a TCP port. type: object properties: host: @@ -503,7 +503,7 @@ spec: type: object properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in the container. type: object properties: command: @@ -524,7 +524,7 @@ spec: type: integer format: int32 grpc: - description: GRPC specifies an action involving a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. type: object properties: port: @@ -540,7 +540,7 @@ spec: type: string default: "" httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to perform. type: object properties: host: @@ -602,7 +602,7 @@ spec: type: integer format: int32 tcpSocket: - description: TCPSocket specifies an action involving a TCP port
verify / Verify Deps and Codegen: config/core/300-resources/revision.yaml#L1
Please run ./hack/update-codegen.sh. diff --git a/config/core/300-resources/revision.yaml b/config/core/300-resources/revision.yaml index 3c6757d..d0eb983 100644 --- a/config/core/300-resources/revision.yaml +++ b/config/core/300-resources/revision.yaml @@ -311,7 +311,7 @@ spec: type: object properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in the container. type: object properties: command: @@ -332,7 +332,7 @@ spec: type: integer format: int32 grpc: - description: GRPC specifies an action involving a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. type: object properties: port: @@ -348,7 +348,7 @@ spec: type: string default: "" httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to perform. type: object properties: host: @@ -410,7 +410,7 @@ spec: type: integer format: int32 tcpSocket: - description: TCPSocket specifies an action involving a TCP port. + description: TCPSocket specifies a connection to a TCP port. type: object properties: host: @@ -479,7 +479,7 @@ spec: type: object properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in the container. type: object properties: command: @@ -500,7 +500,7 @@ spec: type: integer format: int32 grpc: - description: GRPC specifies an action involving a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. type: object properties: port: @@ -516,7 +516,7 @@ spec: type: string default: "" httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to perform. type: object properties: host: @@ -578,7 +578,7 @@ spec: type: integer format: int32 tcpSocket: - description: TCPSocket specifies an action involving a TCP port. + description: TCPSocket specifies a connection to a TCP port. type: object properties: host: @@ -744,7 +744,7 @@ spec: type: object properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute
verify / Verify Deps and Codegen: config/core/300-resources/service.yaml#L1
Please run ./hack/update-codegen.sh. diff --git a/config/core/300-resources/service.yaml b/config/core/300-resources/service.yaml index 69313a4..61d7963 100644 --- a/config/core/300-resources/service.yaml +++ b/config/core/300-resources/service.yaml @@ -353,7 +353,7 @@ spec: type: object properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in the container. type: object properties: command: @@ -374,7 +374,7 @@ spec: type: integer format: int32 grpc: - description: GRPC specifies an action involving a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. type: object properties: port: @@ -390,7 +390,7 @@ spec: type: string default: "" httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to perform. type: object properties: host: @@ -452,7 +452,7 @@ spec: type: integer format: int32 tcpSocket: - description: TCPSocket specifies an action involving a TCP port. + description: TCPSocket specifies a connection to a TCP port. type: object properties: host: @@ -521,7 +521,7 @@ spec: type: object properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in the container. type: object properties: command: @@ -542,7 +542,7 @@ spec: type: integer format: int32 grpc: - description: GRPC specifies an action involving a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. type: object properties: port: @@ -558,7 +558,7 @@ spec: type: string default: "" httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to perform. type: object properties: host: @@ -620,7 +620,7 @@ spec: type: integer format: int32 tcpSocket: - description: TCPSocket specifies an action involving a TCP port. +
verify / Verify Deps and Codegen: pkg/client/clientset/versioned/clientset.go#L1
Please run ./hack/update-codegen.sh. diff --git a/pkg/client/clientset/versioned/clientset.go b/pkg/client/clientset/versioned/clientset.go index b6f6654..20dcfe3 100644 --- a/pkg/client/clientset/versioned/clientset.go +++ b/pkg/client/clientset/versioned/clientset.go @@ -19,8 +19,8 @@ limitations under the License. package versioned import ( - "fmt" - "net/http" + fmt "fmt" + http "net/http" discovery "k8s.io/client-go/discovery" rest "k8s.io/client-go/rest"
verify / Verify Deps and Codegen: pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/autoscaling_client.go#L1
Please run ./hack/update-codegen.sh. diff --git a/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/autoscaling_client.go b/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/autoscaling_client.go index cf93ed2..e486da9 100644 --- a/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/autoscaling_client.go +++ b/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/autoscaling_client.go @@ -19,11 +19,11 @@ limitations under the License. package v1alpha1 import ( - "net/http" + http "net/http" rest "k8s.io/client-go/rest" - v1alpha1 "knative.dev/serving/pkg/apis/autoscaling/v1alpha1" - "knative.dev/serving/pkg/client/clientset/versioned/scheme" + autoscalingv1alpha1 "knative.dev/serving/pkg/apis/autoscaling/v1alpha1" + scheme "knative.dev/serving/pkg/client/clientset/versioned/scheme" ) type AutoscalingV1alpha1Interface interface { @@ -90,10 +90,10 @@ func New(c rest.Interface) *AutoscalingV1alpha1Client { } func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion + gv := autoscalingv1alpha1.SchemeGroupVersion config.GroupVersion = &gv config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() + config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion() if config.UserAgent == "" { config.UserAgent = rest.DefaultKubernetesUserAgent()
verify / Verify Deps and Codegen: pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_autoscaling_client.go#L1
Please run ./hack/update-codegen.sh. diff --git a/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_autoscaling_client.go b/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_autoscaling_client.go index f5d0fcc..696d0ce 100644 --- a/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_autoscaling_client.go +++ b/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_autoscaling_client.go @@ -29,11 +29,11 @@ type FakeAutoscalingV1alpha1 struct { } func (c *FakeAutoscalingV1alpha1) Metrics(namespace string) v1alpha1.MetricInterface { - return &FakeMetrics{c, namespace} + return newFakeMetrics(c, namespace) } func (c *FakeAutoscalingV1alpha1) PodAutoscalers(namespace string) v1alpha1.PodAutoscalerInterface { - return &FakePodAutoscalers{c, namespace} + return newFakePodAutoscalers(c, namespace) } // RESTClient returns a RESTClient that is used to communicate
verify / Verify Deps and Codegen: pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_metric.go#L1
Please run ./hack/update-codegen.sh. diff --git a/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_metric.go b/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_metric.go index 8453a6c..05304c9 100644 --- a/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_metric.go +++ b/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_metric.go @@ -19,129 +19,32 @@ limitations under the License. package fake import ( - "context" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + gentype "k8s.io/client-go/gentype" v1alpha1 "knative.dev/serving/pkg/apis/autoscaling/v1alpha1" + autoscalingv1alpha1 "knative.dev/serving/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1" ) -// FakeMetrics implements MetricInterface -type FakeMetrics struct { +// fakeMetrics implements MetricInterface +type fakeMetrics struct { + *gentype.FakeClientWithList[*v1alpha1.Metric, *v1alpha1.MetricList] Fake *FakeAutoscalingV1alpha1 - ns string -} - -var metricsResource = v1alpha1.SchemeGroupVersion.WithResource("metrics") - -var metricsKind = v1alpha1.SchemeGroupVersion.WithKind("Metric") - -// Get takes name of the metric, and returns the corresponding metric object, and an error if there is any. -func (c *FakeMetrics) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Metric, err error) { - emptyResult := &v1alpha1.Metric{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(metricsResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Metric), err -} - -// List takes label and field selectors, and returns the list of Metrics that match those selectors. -func (c *FakeMetrics) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MetricList, err error) { - emptyResult := &v1alpha1.MetricList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(metricsResource, metricsKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.MetricList{ListMeta: obj.(*v1alpha1.MetricList).ListMeta} - for _, item := range obj.(*v1alpha1.MetricList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested metrics. -func (c *FakeMetrics) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(metricsResource, c.ns, opts)) - -} - -// Create takes the representation of a metric and creates it. Returns the server's representation of the metric, and an error, if there is any. -func (c *FakeMetrics) Create(ctx context.Context, metric *v1alpha1.Metric, opts v1.CreateOptions) (result *v1alpha1.Metric, err error) { - emptyResult := &v1alpha1.Metric{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(metricsResource, c.ns, metric, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Metric), err -} - -// Update takes the representation of a metric and updates it. Returns the server's representation of the metric, and an error, if there is any. -func (c *FakeMetrics) Update(ctx context.Context, metric *v1alpha1.Metric, opts v1.UpdateOptions) (result *v1alpha1.Metric, err error) { - emptyResult := &v1alpha1.Metric{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(metricsResource, c.ns, metric, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Metric), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func
verify / Verify Deps and Codegen: pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_podautoscaler.go#L1
Please run ./hack/update-codegen.sh. diff --git a/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_podautoscaler.go b/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_podautoscaler.go index de16767..fdb9273 100644 --- a/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_podautoscaler.go +++ b/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_podautoscaler.go @@ -19,129 +19,34 @@ limitations under the License. package fake import ( - "context" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + gentype "k8s.io/client-go/gentype" v1alpha1 "knative.dev/serving/pkg/apis/autoscaling/v1alpha1" + autoscalingv1alpha1 "knative.dev/serving/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1" ) -// FakePodAutoscalers implements PodAutoscalerInterface -type FakePodAutoscalers struct { +// fakePodAutoscalers implements PodAutoscalerInterface +type fakePodAutoscalers struct { + *gentype.FakeClientWithList[*v1alpha1.PodAutoscaler, *v1alpha1.PodAutoscalerList] Fake *FakeAutoscalingV1alpha1 - ns string -} - -var podautoscalersResource = v1alpha1.SchemeGroupVersion.WithResource("podautoscalers") - -var podautoscalersKind = v1alpha1.SchemeGroupVersion.WithKind("PodAutoscaler") - -// Get takes name of the podAutoscaler, and returns the corresponding podAutoscaler object, and an error if there is any. -func (c *FakePodAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PodAutoscaler, err error) { - emptyResult := &v1alpha1.PodAutoscaler{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(podautoscalersResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.PodAutoscaler), err -} - -// List takes label and field selectors, and returns the list of PodAutoscalers that match those selectors. -func (c *FakePodAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PodAutoscalerList, err error) { - emptyResult := &v1alpha1.PodAutoscalerList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(podautoscalersResource, podautoscalersKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.PodAutoscalerList{ListMeta: obj.(*v1alpha1.PodAutoscalerList).ListMeta} - for _, item := range obj.(*v1alpha1.PodAutoscalerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested podAutoscalers. -func (c *FakePodAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(podautoscalersResource, c.ns, opts)) - -} - -// Create takes the representation of a podAutoscaler and creates it. Returns the server's representation of the podAutoscaler, and an error, if there is any. -func (c *FakePodAutoscalers) Create(ctx context.Context, podAutoscaler *v1alpha1.PodAutoscaler, opts v1.CreateOptions) (result *v1alpha1.PodAutoscaler, err error) { - emptyResult := &v1alpha1.PodAutoscaler{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(podautoscalersResource, c.ns, podAutoscaler, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.PodAutoscaler), err -} - -// Update takes the representation of a podAutoscaler and updates it. Returns the server's representation of the podAutoscaler, and an error, if there is any. -func (c *FakePodAutoscalers) Update(ctx context.Context, podAutoscaler *v1alpha1.PodAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.PodAutoscaler, err error) { - emptyResult := &v1alpha1.PodAutoscaler{} - obj, err := c.
verify / Verify Deps and Codegen: pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/metric.go#L1
Please run ./hack/update-codegen.sh. diff --git a/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/metric.go b/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/metric.go index ae91bcc..0134565 100644 --- a/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/metric.go +++ b/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/metric.go @@ -19,13 +19,13 @@ limitations under the License. package v1alpha1 import ( - "context" + context "context" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" gentype "k8s.io/client-go/gentype" - v1alpha1 "knative.dev/serving/pkg/apis/autoscaling/v1alpha1" + autoscalingv1alpha1 "knative.dev/serving/pkg/apis/autoscaling/v1alpha1" scheme "knative.dev/serving/pkg/client/clientset/versioned/scheme" ) @@ -37,33 +37,34 @@ type MetricsGetter interface { // MetricInterface has methods to work with Metric resources. type MetricInterface interface { - Create(ctx context.Context, metric *v1alpha1.Metric, opts v1.CreateOptions) (*v1alpha1.Metric, error) - Update(ctx context.Context, metric *v1alpha1.Metric, opts v1.UpdateOptions) (*v1alpha1.Metric, error) + Create(ctx context.Context, metric *autoscalingv1alpha1.Metric, opts v1.CreateOptions) (*autoscalingv1alpha1.Metric, error) + Update(ctx context.Context, metric *autoscalingv1alpha1.Metric, opts v1.UpdateOptions) (*autoscalingv1alpha1.Metric, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, metric *v1alpha1.Metric, opts v1.UpdateOptions) (*v1alpha1.Metric, error) + UpdateStatus(ctx context.Context, metric *autoscalingv1alpha1.Metric, opts v1.UpdateOptions) (*autoscalingv1alpha1.Metric, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.Metric, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MetricList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*autoscalingv1alpha1.Metric, error) + List(ctx context.Context, opts v1.ListOptions) (*autoscalingv1alpha1.MetricList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Metric, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *autoscalingv1alpha1.Metric, err error) MetricExpansion } // metrics implements MetricInterface type metrics struct { - *gentype.ClientWithList[*v1alpha1.Metric, *v1alpha1.MetricList] + *gentype.ClientWithList[*autoscalingv1alpha1.Metric, *autoscalingv1alpha1.MetricList] } // newMetrics returns a Metrics func newMetrics(c *AutoscalingV1alpha1Client, namespace string) *metrics { return &metrics{ - gentype.NewClientWithList[*v1alpha1.Metric, *v1alpha1.MetricList]( + gentype.NewClientWithList[*autoscalingv1alpha1.Metric, *autoscalingv1alpha1.MetricList]( "metrics", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1alpha1.Metric { return &v1alpha1.Metric{} }, - func() *v1alpha1.MetricList { return &v1alpha1.MetricList{} }), + func() *autoscalingv1alpha1.Metric { return &autoscalingv1alpha1.Metric{} }, + func() *autoscalingv1alpha1.MetricList { return &autoscalingv1alpha1.MetricList{} }, + ), } }
verify / Verify Deps and Codegen: pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/podautoscaler.go#L1
Please run ./hack/update-codegen.sh. diff --git a/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/podautoscaler.go b/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/podautoscaler.go index a9d5d55..462891c 100644 --- a/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/podautoscaler.go +++ b/pkg/client/clientset/versioned/typed/autoscaling/v1alpha1/podautoscaler.go @@ -19,13 +19,13 @@ limitations under the License. package v1alpha1 import ( - "context" + context "context" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" gentype "k8s.io/client-go/gentype" - v1alpha1 "knative.dev/serving/pkg/apis/autoscaling/v1alpha1" + autoscalingv1alpha1 "knative.dev/serving/pkg/apis/autoscaling/v1alpha1" scheme "knative.dev/serving/pkg/client/clientset/versioned/scheme" ) @@ -37,33 +37,34 @@ type PodAutoscalersGetter interface { // PodAutoscalerInterface has methods to work with PodAutoscaler resources. type PodAutoscalerInterface interface { - Create(ctx context.Context, podAutoscaler *v1alpha1.PodAutoscaler, opts v1.CreateOptions) (*v1alpha1.PodAutoscaler, error) - Update(ctx context.Context, podAutoscaler *v1alpha1.PodAutoscaler, opts v1.UpdateOptions) (*v1alpha1.PodAutoscaler, error) + Create(ctx context.Context, podAutoscaler *autoscalingv1alpha1.PodAutoscaler, opts v1.CreateOptions) (*autoscalingv1alpha1.PodAutoscaler, error) + Update(ctx context.Context, podAutoscaler *autoscalingv1alpha1.PodAutoscaler, opts v1.UpdateOptions) (*autoscalingv1alpha1.PodAutoscaler, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, podAutoscaler *v1alpha1.PodAutoscaler, opts v1.UpdateOptions) (*v1alpha1.PodAutoscaler, error) + UpdateStatus(ctx context.Context, podAutoscaler *autoscalingv1alpha1.PodAutoscaler, opts v1.UpdateOptions) (*autoscalingv1alpha1.PodAutoscaler, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.PodAutoscaler, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.PodAutoscalerList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*autoscalingv1alpha1.PodAutoscaler, error) + List(ctx context.Context, opts v1.ListOptions) (*autoscalingv1alpha1.PodAutoscalerList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PodAutoscaler, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *autoscalingv1alpha1.PodAutoscaler, err error) PodAutoscalerExpansion } // podAutoscalers implements PodAutoscalerInterface type podAutoscalers struct { - *gentype.ClientWithList[*v1alpha1.PodAutoscaler, *v1alpha1.PodAutoscalerList] + *gentype.ClientWithList[*autoscalingv1alpha1.PodAutoscaler, *autoscalingv1alpha1.PodAutoscalerList] } // newPodAutoscalers returns a PodAutoscalers func newPodAutoscalers(c *AutoscalingV1alpha1Client, namespace string) *podAutoscalers { return &podAutoscalers{ - gentype.NewClientWithList[*v1alpha1.PodAutoscaler, *v1alpha1.PodAutoscalerList]( + gentype.NewClientWithList[*autoscalingv1alpha1.PodAutoscaler, *autoscalingv1alpha1.PodAutoscalerList]( "podautoscalers", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1alpha1.PodAutoscaler { return &v1alpha1.PodAutoscaler{} }, - func() *v1alpha1.PodAutoscalerList { return &v1alpha1.PodAutoscalerList{} }), + func() *autoscalingv1alpha1.PodAutoscaler { return &autoscalingv1alpha1.PodAutoscaler{} }, + func() *autoscalingv1alpha1.PodAutoscalerList { return &autoscalingv1alpha1.PodAutoscalerList{} }, + ), } }
verify / Verify Deps and Codegen
Restore cache failed: Dependencies file is not found in /home/runner/work/serving/serving. Supported file pattern: go.sum