diff --git a/apis/v1beta1/opentelemetrycollector_types.go b/apis/v1beta1/opentelemetrycollector_types.go index 1428806502..12359203ca 100644 --- a/apis/v1beta1/opentelemetrycollector_types.go +++ b/apis/v1beta1/opentelemetrycollector_types.go @@ -255,17 +255,6 @@ type OpenTelemetryCollectorStatus struct { // Image indicates the container image to use for the OpenTelemetry Collector. // +optional Image string `json:"image,omitempty"` - - // Messages about actions performed by the operator on this resource. - // +optional - // +listType=atomic - // Deprecated: use Kubernetes events instead. - Messages []string `json:"messages,omitempty"` - - // Replicas is currently not being set and might be removed in the next version. - // +optional - // Deprecated: use "OpenTelemetryCollector.Status.Scale.Replicas" instead. - Replicas int32 `json:"replicas,omitempty"` } // ObservabilitySpec defines how telemetry data gets handled. diff --git a/apis/v1beta1/targetallocator_types.go b/apis/v1beta1/targetallocator_types.go index 05e06f7c23..1a75082303 100644 --- a/apis/v1beta1/targetallocator_types.go +++ b/apis/v1beta1/targetallocator_types.go @@ -74,12 +74,6 @@ type TargetAllocatorStatus struct { // Image indicates the container image to use for the Target Allocator. // +optional Image string `json:"image,omitempty"` - - // Messages about actions performed by the operator on this resource. - // +optional - // +listType=atomic - // Deprecated: use Kubernetes events instead. - Messages []string `json:"messages,omitempty"` } //+kubebuilder:object:root=true diff --git a/apis/v1beta1/zz_generated.deepcopy.go b/apis/v1beta1/zz_generated.deepcopy.go index 442bb72a57..832e4fd2ef 100644 --- a/apis/v1beta1/zz_generated.deepcopy.go +++ b/apis/v1beta1/zz_generated.deepcopy.go @@ -227,7 +227,7 @@ func (in *OpenTelemetryCollector) DeepCopyInto(out *OpenTelemetryCollector) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + out.Status = in.Status } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenTelemetryCollector. @@ -316,11 +316,6 @@ func (in *OpenTelemetryCollectorSpec) DeepCopy() *OpenTelemetryCollectorSpec { func (in *OpenTelemetryCollectorStatus) DeepCopyInto(out *OpenTelemetryCollectorStatus) { *out = *in out.Scale = in.Scale - if in.Messages != nil { - in, out := &in.Messages, &out.Messages - *out = make([]string, len(*in)) - copy(*out, *in) - } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenTelemetryCollectorStatus. @@ -600,7 +595,7 @@ func (in *TargetAllocator) DeepCopyInto(out *TargetAllocator) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + out.Status = in.Status } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetAllocator. @@ -774,11 +769,6 @@ func (in *TargetAllocatorSpec) DeepCopy() *TargetAllocatorSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *TargetAllocatorStatus) DeepCopyInto(out *TargetAllocatorStatus) { *out = *in - if in.Messages != nil { - in, out := &in.Messages, &out.Messages - *out = make([]string, len(*in)) - copy(*out, *in) - } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetAllocatorStatus.