Skip to content

Commit 78cd024

Browse files
committed
Drop DataPlaneService ConfigMaps and Secrets
- Drops the ConfigMaps and Secrets fields from OpenStackDataPlaneService. - Updates all services under config/services to use the OpenStackDataPlaneService.Spec.DataSources field instead. - Update docs for the switch to DataSources. Signed-off-by: Fabricio Aguiar <fabricio.aguiar@gmail.com>
1 parent 54e92e4 commit 78cd024

19 files changed

Lines changed: 51 additions & 135 deletions

apis/bases/dataplane.openstack.org_openstackdataplaneservices.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ spec:
3838
type: string
3939
certsFrom:
4040
type: string
41-
configMaps:
42-
items:
43-
type: string
44-
type: array
4541
containerImageFields:
4642
items:
4743
type: string
@@ -79,10 +75,6 @@ spec:
7975
type: string
8076
playbookContents:
8177
type: string
82-
secrets:
83-
items:
84-
type: string
85-
type: array
8678
tlsCerts:
8779
additionalProperties:
8880
properties:

apis/dataplane/v1beta1/openstackdataplaneservice_types.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,6 @@ type OpenstackDataPlaneServiceCert struct {
5858

5959
// OpenStackDataPlaneServiceSpec defines the desired state of OpenStackDataPlaneService
6060
type OpenStackDataPlaneServiceSpec struct {
61-
// ConfigMaps list of ConfigMap names to mount as ExtraMounts for the OpenStackAnsibleEE
62-
// +kubebuilder:validation:Optional
63-
ConfigMaps []string `json:"configMaps,omitempty" yaml:"configMaps,omitempty"`
64-
65-
// Secrets list of Secret names to mount as ExtraMounts for the OpenStackAnsibleEE
66-
// +kubebuilder:validation:Optional
67-
Secrets []string `json:"secrets,omitempty"`
68-
6961
// DataSources list of DataSource objects to mount as ExtraMounts for the
7062
// OpenStackAnsibleEE
7163
DataSources []DataSource `json:"dataSources,omitempty" yaml:"dataSources,omitempty"`

apis/dataplane/v1beta1/zz_generated.deepcopy.go

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/dataplane.openstack.org_openstackdataplaneservices.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ spec:
3838
type: string
3939
certsFrom:
4040
type: string
41-
configMaps:
42-
items:
43-
type: string
44-
type: array
4541
containerImageFields:
4642
items:
4743
type: string
@@ -79,10 +75,6 @@ spec:
7975
type: string
8076
playbookContents:
8177
type: string
82-
secrets:
83-
items:
84-
type: string
85-
type: array
8678
tlsCerts:
8779
additionalProperties:
8880
properties:

config/services/dataplane_v1beta1_openstackdataplaneservice_libvirt.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ metadata:
44
name: libvirt
55
spec:
66
playbook: osp.edpm.libvirt
7-
secrets:
7+
dataSources:
88
# NOTE: this Secret needs to be created before deploying the data plane.
99
# It should contain the libvirt sasl auth password using the key LibvirtPassword
10-
- libvirt-secret
10+
- secretRef:
11+
name: libvirt-secret
1112
tlsCerts:
1213
default:
1314
contents:

config/services/dataplane_v1beta1_openstackdataplaneservice_logging.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ kind: OpenStackDataPlaneService
33
metadata:
44
name: logging
55
spec:
6-
secrets:
7-
- logging-compute-config-data
6+
dataSources:
7+
- secretRef:
8+
name: logging-compute-config-data
89
playbook: osp.edpm.telemetry_logging

config/services/dataplane_v1beta1_openstackdataplaneservice_neutron_dhcp.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ metadata:
44
name: neutron-dhcp
55
spec:
66
playbook: osp.edpm.neutron_dhcp
7-
secrets:
8-
- neutron-dhcp-agent-neutron-config
7+
dataSources:
8+
- secretRef:
9+
name: neutron-dhcp-agent-neutron-config
910
caCerts: combined-ca-bundle
1011
containerImageFields:
1112
- EdpmNeutronDhcpAgentImage

config/services/dataplane_v1beta1_openstackdataplaneservice_neutron_metadata.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ metadata:
44
name: neutron-metadata
55
spec:
66
playbook: osp.edpm.neutron_metadata
7-
secrets:
8-
- neutron-ovn-metadata-agent-neutron-config
9-
- nova-metadata-neutron-config
7+
dataSources:
8+
- secretRef:
9+
name: neutron-ovn-metadata-agent-neutron-config
10+
- secretRef:
11+
name: nova-metadata-neutron-config
1012
tlsCerts:
1113
default:
1214
contents:

config/services/dataplane_v1beta1_openstackdataplaneservice_neutron_ovn.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ metadata:
44
name: neutron-ovn
55
spec:
66
playbook: osp.edpm.neutron_ovn
7-
secrets:
8-
- neutron-ovn-agent-neutron-config
7+
dataSources:
8+
- secretRef:
9+
name: neutron-ovn-agent-neutron-config
910
tlsCerts:
1011
default:
1112
contents:

config/services/dataplane_v1beta1_openstackdataplaneservice_neutron_sriov.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ metadata:
44
name: neutron-sriov
55
spec:
66
playbook: osp.edpm.neutron_sriov
7-
secrets:
8-
- neutron-sriov-agent-neutron-config
7+
dataSources:
8+
- secretRef:
9+
name: neutron-sriov-agent-neutron-config
910
caCerts: combined-ca-bundle
1011
containerImageFields:
1112
- EdpmNeutronSriovAgentImage

0 commit comments

Comments
 (0)