Skip to content

Commit babec06

Browse files
Merge pull request #827 from openstack-k8s-operators/OSPRH-22189/use-dataplane-nw-default-nad
Default MetricStorage NetworkAttachments to ctlplane
2 parents 04f33be + 8ccfcdb commit babec06

11 files changed

Lines changed: 16 additions & 1 deletion

api/bases/telemetry.openstack.org_metricstorages.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1839,6 +1839,8 @@ spec:
18391839
type: object
18401840
type: object
18411841
networkAttachments:
1842+
default:
1843+
- ctlplane
18421844
description: NetworkAttachments is a list of NetworkAttachment resource
18431845
names to expose the services to the given network
18441846
items:

api/bases/telemetry.openstack.org_telemetries.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3232,6 +3232,8 @@ spec:
32323232
type: object
32333233
type: object
32343234
networkAttachments:
3235+
default:
3236+
- ctlplane
32353237
description: NetworkAttachments is a list of NetworkAttachment
32363238
resource names to expose the services to the given network
32373239
items:

api/v1beta1/metricstorage_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ type MetricStorageSpec struct {
9797
// NetworkAttachments is a list of NetworkAttachment resource names to expose the services to the given network
9898
// +kubebuilder:validation:Optional
9999
// +listType=atomic
100-
NetworkAttachments []string `json:"networkAttachments,omitempty"`
100+
// +kubebuilder:default:={"ctlplane"}
101+
NetworkAttachments []string `json:"networkAttachments"`
101102

102103
// MonitoringStack allows to define a metric storage with
103104
// options supported by Red Hat

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1839,6 +1839,8 @@ spec:
18391839
type: object
18401840
type: object
18411841
networkAttachments:
1842+
default:
1843+
- ctlplane
18421844
description: NetworkAttachments is a list of NetworkAttachment resource
18431845
names to expose the services to the given network
18441846
items:

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3232,6 +3232,8 @@ spec:
32323232
type: object
32333233
type: object
32343234
networkAttachments:
3235+
default:
3236+
- ctlplane
32353237
description: NetworkAttachments is a list of NetworkAttachment
32363238
resource names to expose the services to the given network
32373239
items:

test/kuttl/tests/cloudkitty/01-deploy-dependencies.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ spec:
4949
retention: 24h
5050
persistent:
5151
pvcStorageRequest: 20G
52+
networkAttachments: []
5253
---
5354
# minio
5455
apiVersion: v1

test/kuttl/tests/default/01-deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ spec:
1515
retention: 24h
1616
persistent:
1717
pvcStorageRequest: 20G
18+
networkAttachments: []
1819
autoscaling:
1920
enabled: true
2021
aodh:

test/kuttl/tests/metricstorage/01-deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ spec:
1313
retention: 24h
1414
persistent:
1515
pvcStorageRequest: 20G
16+
networkAttachments: []
1617
---
1718
# Required, so that the mysqld_exporter scrapeconfig is created
1819
apiVersion: telemetry.openstack.org/v1beta1

test/kuttl/tests/metricstorage/04-custom-monitoring-stack.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ spec:
1414
matchLabels:
1515
app: custom-monitoring-stack
1616
retention: 1d
17+
networkAttachments: []

test/kuttl/tests/metricstorage/06-deploy-edpm-resources.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ spec:
1414
retention: 24h
1515
persistent:
1616
pvcStorageRequest: 20G
17+
networkAttachments: []

0 commit comments

Comments
 (0)