From 0dbe769e1b5d5ad52dbbf51884e7d2f2535397e0 Mon Sep 17 00:00:00 2001 From: Alexey Ermakov Date: Fri, 17 Sep 2021 11:29:52 +0200 Subject: [PATCH] Fix the type for ClusterScalingScheduleList Signed-off-by: Alexey Ermakov --- pkg/apis/zalando.org/v1/types.go | 4 ++-- pkg/apis/zalando.org/v1/zz_generated.deepcopy.go | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/apis/zalando.org/v1/types.go b/pkg/apis/zalando.org/v1/types.go index 9679af5..f64b51a 100644 --- a/pkg/apis/zalando.org/v1/types.go +++ b/pkg/apis/zalando.org/v1/types.go @@ -119,11 +119,11 @@ type ScalingScheduleList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// ScalingScheduleList is a list of cluster scoped scaling schedules. +// ClusterScalingScheduleList is a list of cluster scoped scaling schedules. // +k8s:deepcopy-gen=true type ClusterScalingScheduleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ScalingSchedule `json:"items"` + Items []ClusterScalingSchedule `json:"items"` } diff --git a/pkg/apis/zalando.org/v1/zz_generated.deepcopy.go b/pkg/apis/zalando.org/v1/zz_generated.deepcopy.go index a6de981..1a2687e 100644 --- a/pkg/apis/zalando.org/v1/zz_generated.deepcopy.go +++ b/pkg/apis/zalando.org/v1/zz_generated.deepcopy.go @@ -1,4 +1,3 @@ -//go:build !ignore_autogenerated // +build !ignore_autogenerated /* @@ -59,7 +58,7 @@ func (in *ClusterScalingScheduleList) DeepCopyInto(out *ClusterScalingScheduleLi in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]ScalingSchedule, len(*in)) + *out = make([]ClusterScalingSchedule, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) }