Skip to content

Commit 4264bb9

Browse files
committed
Add missing kubebuilder annotation for spec NAD config
1 parent 82d4514 commit 4264bb9

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

api/bases/telemetry.openstack.org_metricstorages.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,6 +1309,7 @@ spec:
13091309
items:
13101310
type: string
13111311
type: array
1312+
x-kubernetes-list-type: atomic
13121313
prometheusTls:
13131314
description: TLS - Parameters related to the TLS
13141315
properties:

api/bases/telemetry.openstack.org_telemetries.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,6 +1871,7 @@ spec:
18711871
items:
18721872
type: string
18731873
type: array
1874+
x-kubernetes-list-type: atomic
18741875
prometheusTls:
18751876
description: TLS - Parameters related to the TLS
18761877
properties:

api/v1beta1/metricstorage_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ type MetricStorageSpec struct {
9292

9393
// NetworkAttachments is a list of NetworkAttachment resource names to expose the services to the given network
9494
// +kubebuilder:validation:Optional
95+
// +listType=atomic
9596
NetworkAttachments []string `json:"networkAttachments,omitempty"`
9697

9798
// MonitoringStack allows to define a metric storage with
@@ -117,7 +118,7 @@ type MetricStorageSpec struct {
117118
// See rh-jira: OSPRH-5177 and COO-44
118119

119120
// +kubebuilder:validation:Optional
120-
// +operator-sdk:csv:customresourcedefinitions:type=spec
121+
// +operator-sdk:csv:customresourcedefinitions:tpe=spec
121122
// TLS - Parameters related to the TLS
122123
// AlertmanagerTLS tls.SimpleService `json:"alertmanagerTls,omitempty"`
123124
}

config/crd/bases/telemetry.openstack.org_metricstorages.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,6 +1309,7 @@ spec:
13091309
items:
13101310
type: string
13111311
type: array
1312+
x-kubernetes-list-type: atomic
13121313
prometheusTls:
13131314
description: TLS - Parameters related to the TLS
13141315
properties:

config/crd/bases/telemetry.openstack.org_telemetries.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,6 +1871,7 @@ spec:
18711871
items:
18721872
type: string
18731873
type: array
1874+
x-kubernetes-list-type: atomic
18741875
prometheusTls:
18751876
description: TLS - Parameters related to the TLS
18761877
properties:

0 commit comments

Comments
 (0)