Skip to content

Commit 3636c19

Browse files
committed
Add deprecation message to v1alpha1
Signed-off-by: Pavol Loffay <[email protected]>
1 parent 417fb0d commit 3636c19

4 files changed

+34
-0
lines changed

apis/v1alpha1/opentelemetrycollector_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ type OpenTelemetryCollectorStatus struct {
438438
Replicas int32 `json:"replicas,omitempty"`
439439
}
440440

441+
// +kubebuilder:deprecatedversion:warning="OpenTelemetryCollector v1alpha1 is deprecated migrate to v1beta1"
441442
// +kubebuilder:object:root=true
442443
// +kubebuilder:resource:shortName=otelcol;otelcols
443444
// +kubebuilder:subresource:status

bundle/manifests/opentelemetry.io_opentelemetrycollectors.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ spec:
5353
jsonPath: .spec.managementState
5454
name: Management
5555
type: string
56+
deprecated: true
57+
deprecationWarning: OpenTelemetryCollector v1alpha1 is deprecated migrate to v1beta1
5658
name: v1alpha1
5759
schema:
5860
openAPIV3Schema:

config/crd/bases/opentelemetry.io_opentelemetrycollectors.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ spec:
3939
jsonPath: .spec.managementState
4040
name: Management
4141
type: string
42+
deprecated: true
43+
deprecationWarning: OpenTelemetryCollector v1alpha1 is deprecated migrate to v1beta1
4244
name: v1alpha1
4345
schema:
4446
openAPIV3Schema:

config/crd/bases/opentelemetry.io_targetallocators.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -1215,6 +1215,30 @@ spec:
12151215
format: int32
12161216
type: integer
12171217
type: object
1218+
collectorSelector:
1219+
properties:
1220+
matchExpressions:
1221+
items:
1222+
properties:
1223+
key:
1224+
type: string
1225+
operator:
1226+
type: string
1227+
values:
1228+
items:
1229+
type: string
1230+
type: array
1231+
required:
1232+
- key
1233+
- operator
1234+
type: object
1235+
type: array
1236+
matchLabels:
1237+
additionalProperties:
1238+
type: string
1239+
type: object
1240+
type: object
1241+
x-kubernetes-map-type: atomic
12181242
env:
12191243
items:
12201244
properties:
@@ -2279,6 +2303,11 @@ spec:
22792303
x-kubernetes-int-or-string: true
22802304
type: object
22812305
type: object
2306+
scrapeConfigs:
2307+
items:
2308+
type: object
2309+
type: array
2310+
x-kubernetes-list-type: atomic
22822311
securityContext:
22832312
properties:
22842313
allowPrivilegeEscalation:

0 commit comments

Comments
 (0)