Skip to content

Commit

Permalink
Deprecate OpenTelemetryCollector.Status.Replicas
Browse files Browse the repository at this point in the history
  • Loading branch information
secat committed Mar 17, 2022
1 parent 8d548f3 commit 92b01c7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions apis/v1alpha1/opentelemetrycollector_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ type ScaleSubresourceStatus struct {
type OpenTelemetryCollectorStatus struct {
// 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"`

// Scale is the OpenTelemetryCollector's scale subresource status.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2567,8 +2567,9 @@ spec:
type: array
x-kubernetes-list-type: atomic
replicas:
description: Replicas is currently not being set and might be removed
in the next version.
description: 'Replicas is currently not being set and might be removed
in the next version. Deprecated: use "OpenTelemetryCollector.Status.Scale.Replicas"
instead.'
format: int32
type: integer
scale:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2565,8 +2565,9 @@ spec:
type: array
x-kubernetes-list-type: atomic
replicas:
description: Replicas is currently not being set and might be removed
in the next version.
description: 'Replicas is currently not being set and might be removed
in the next version. Deprecated: use "OpenTelemetryCollector.Status.Scale.Replicas"
instead.'
format: int32
type: integer
scale:
Expand Down
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6115,7 +6115,7 @@ OpenTelemetryCollectorStatus defines the observed state of OpenTelemetryCollecto
<td><b>replicas</b></td>
<td>integer</td>
<td>
Replicas is currently not being set and might be removed in the next version.<br/>
Replicas is currently not being set and might be removed in the next version. Deprecated: use "OpenTelemetryCollector.Status.Scale.Replicas" instead.<br/>
<br/>
<i>Format</i>: int32<br/>
</td>
Expand Down

0 comments on commit 92b01c7

Please sign in to comment.