Skip to content

Commit a994cc8

Browse files
committed
Remove default NAD
Avoid setting a default value for NAD. NADs are created beforehand, so the selected naming might vary. Also, allow opting for running without NAD and using only pod network.
1 parent 7cebbc0 commit a994cc8

File tree

6 files changed

+1
-12
lines changed

6 files changed

+1
-12
lines changed

api/bases/telemetry.openstack.org_metricstorages.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,8 +1304,6 @@ spec:
13041304
type: object
13051305
type: object
13061306
networkAttachments:
1307-
default:
1308-
- ctlplane
13091307
description: NetworkAttachments is a list of NetworkAttachment resource
13101308
names to expose the services to the given network
13111309
items:

api/bases/telemetry.openstack.org_telemetries.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,8 +1866,6 @@ spec:
18661866
type: object
18671867
type: object
18681868
networkAttachments:
1869-
default:
1870-
- ctlplane
18711869
description: NetworkAttachments is a list of NetworkAttachment
18721870
resource names to expose the services to the given network
18731871
items:

api/v1beta1/metricstorage_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ 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-
// +kubebuilder:default={"ctlplane"}
9695
NetworkAttachments []string `json:"networkAttachments"`
9796

9897
// MonitoringStack allows to define a metric storage with

api/v1beta1/metricstorage_webhook.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ func (spec *MetricStorageSpec) Default() {
5959
if *spec.DataplaneNetwork == "" {
6060
*spec.DataplaneNetwork = "ctlplane"
6161
}
62-
if len(spec.NetworkAttachments) == 0 {
63-
spec.NetworkAttachments = []string{"ctlplane"}
64-
}
62+
6563
if spec.MonitoringStack != nil {
6664
spec.MonitoringStack.Default()
6765
}

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,8 +1304,6 @@ spec:
13041304
type: object
13051305
type: object
13061306
networkAttachments:
1307-
default:
1308-
- ctlplane
13091307
description: NetworkAttachments is a list of NetworkAttachment resource
13101308
names to expose the services to the given network
13111309
items:

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,8 +1866,6 @@ spec:
18661866
type: object
18671867
type: object
18681868
networkAttachments:
1869-
default:
1870-
- ctlplane
18711869
description: NetworkAttachments is a list of NetworkAttachment
18721870
resource names to expose the services to the given network
18731871
items:

0 commit comments

Comments
 (0)