Skip to content

Commit 90f720d

Browse files
committed
Update Kubebuilder marker for the default NAD
The marker used should be // +kubebuilder:default:={"ctlplane"} to avoid the generator treating the expresssion as a string literal.
1 parent c0cd7a0 commit 90f720d

5 files changed

Lines changed: 9 additions & 5 deletions

api/bases/telemetry.openstack.org_metricstorages.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,8 @@ spec:
13341334
type: object
13351335
type: object
13361336
networkAttachments:
1337-
default: '["ctlplane"]'
1337+
default:
1338+
- ctlplane
13381339
description: NetworkAttachments is a list of NetworkAttachment resource
13391340
names to expose the services to the given network
13401341
items:

api/bases/telemetry.openstack.org_telemetries.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2619,7 +2619,8 @@ spec:
26192619
type: object
26202620
type: object
26212621
networkAttachments:
2622-
default: '["ctlplane"]'
2622+
default:
2623+
- ctlplane
26232624
description: NetworkAttachments is a list of NetworkAttachment
26242625
resource names to expose the services to the given network
26252626
items:

api/v1beta1/metricstorage_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ type MetricStorageSpec struct {
9393
// NetworkAttachments is a list of NetworkAttachment resource names to expose the services to the given network
9494
// +kubebuilder:validation:Optional
9595
// +listType=atomic
96-
// +kubebuilder:default=["ctlplane"]
96+
// +kubebuilder:default:={"ctlplane"}
9797
NetworkAttachments []string `json:"networkAttachments"`
9898

9999
// MonitoringStack allows to define a metric storage with

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,8 @@ spec:
13341334
type: object
13351335
type: object
13361336
networkAttachments:
1337-
default: '["ctlplane"]'
1337+
default:
1338+
- ctlplane
13381339
description: NetworkAttachments is a list of NetworkAttachment resource
13391340
names to expose the services to the given network
13401341
items:

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2619,7 +2619,8 @@ spec:
26192619
type: object
26202620
type: object
26212621
networkAttachments:
2622-
default: '["ctlplane"]'
2622+
default:
2623+
- ctlplane
26232624
description: NetworkAttachments is a list of NetworkAttachment
26242625
resource names to expose the services to the given network
26252626
items:

0 commit comments

Comments
 (0)