Skip to content

Commit

Permalink
Remove deprecated fields from v1beta1 (#2705)
Browse files Browse the repository at this point in the history
* Remove deprecated fields from v1beta1

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Fix

---------

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
  • Loading branch information
pavolloffay authored Mar 4, 2024
1 parent c612bba commit 1c25c13
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 29 deletions.
11 changes: 0 additions & 11 deletions apis/v1beta1/opentelemetrycollector_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 0 additions & 6 deletions apis/v1beta1/targetallocator_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 2 additions & 12 deletions apis/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1c25c13

Please sign in to comment.