Skip to content

Commit

Permalink
Drop DataPlaneService ConfigMaps and Secrets
Browse files Browse the repository at this point in the history
- Drops the ConfigMaps and Secrets fields from OpenStackDataPlaneService.
- Updates all services under config/services to use the
  OpenStackDataPlaneService.Spec.DataSources field instead.
- Removes some un-needed labels from some services as they aren't needed
  and for brevity.
- Update docs for the switch to DataSources.

Signed-off-by: Fabricio Aguiar <[email protected]>
  • Loading branch information
fao89 committed Jun 14, 2024
1 parent 54e92e4 commit a896c17
Show file tree
Hide file tree
Showing 27 changed files with 54 additions and 180 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ spec:
type: string
certsFrom:
type: string
configMaps:
items:
type: string
type: array
containerImageFields:
items:
type: string
Expand Down Expand Up @@ -79,10 +75,6 @@ spec:
type: string
playbookContents:
type: string
secrets:
items:
type: string
type: array
tlsCerts:
additionalProperties:
properties:
Expand Down
8 changes: 0 additions & 8 deletions apis/dataplane/v1beta1/openstackdataplaneservice_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,6 @@ type OpenstackDataPlaneServiceCert struct {

// OpenStackDataPlaneServiceSpec defines the desired state of OpenStackDataPlaneService
type OpenStackDataPlaneServiceSpec struct {
// ConfigMaps list of ConfigMap names to mount as ExtraMounts for the OpenStackAnsibleEE
// +kubebuilder:validation:Optional
ConfigMaps []string `json:"configMaps,omitempty" yaml:"configMaps,omitempty"`

// Secrets list of Secret names to mount as ExtraMounts for the OpenStackAnsibleEE
// +kubebuilder:validation:Optional
Secrets []string `json:"secrets,omitempty"`

// DataSources list of DataSource objects to mount as ExtraMounts for the
// OpenStackAnsibleEE
DataSources []DataSource `json:"dataSources,omitempty" yaml:"dataSources,omitempty"`
Expand Down
10 changes: 0 additions & 10 deletions apis/dataplane/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ spec:
type: string
certsFrom:
type: string
configMaps:
items:
type: string
type: array
containerImageFields:
items:
type: string
Expand Down Expand Up @@ -79,10 +75,6 @@ spec:
type: string
playbookContents:
type: string
secrets:
items:
type: string
type: array
tlsCerts:
additionalProperties:
properties:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneService
metadata:
labels:
app.kubernetes.io/name: openstackdataplaneservice
app.kubernetes.io/instance: openstackdataplaneservice-bootstrap
app.kubernetes.io/part-of: dataplane-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: dataplane-operator
name: bootstrap
spec:
playbook: osp.edpm.bootstrap
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneService
metadata:
labels:
app.kubernetes.io/name: openstackdataplaneservice
app.kubernetes.io/instance: openstackdataplaneservice-configure-network
app.kubernetes.io/part-of: dataplane-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: dataplane-operator
name: configure-network
spec:
playbook: osp.edpm.configure_network
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneService
metadata:
labels:
app.kubernetes.io/name: openstackdataplaneservice
app.kubernetes.io/instance: openstackdataplaneservice-configure-ovs-dpdk
app.kubernetes.io/part-of: dataplane-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: dataplane-operator
name: configure-ovs-dpdk
spec:
playbook: osp.edpm.configure_ovs_dpdk
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneService
metadata:
labels:
app.kubernetes.io/name: openstackdataplaneservice
app.kubernetes.io/instance: openstackdataplaneservice-derive-pci-devicespec
app.kubernetes.io/part-of: dataplane-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: dataplane-operator
name: derive-pci-devicespec
spec:
playbook: osp.edpm.sriov_derive_device_spec
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneService
metadata:
labels:
app.kubernetes.io/name: openstackdataplaneservice
app.kubernetes.io/instance: openstackdataplaneservice-download-cache
app.kubernetes.io/part-of: dataplane-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: dataplane-operator
name: download-cache
spec:
playbook: osp.edpm.download_cache
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneService
metadata:
labels:
app.kubernetes.io/name: openstackdataplaneservice
app.kubernetes.io/instance: openstackdataplaneservice-install-certs
app.kubernetes.io/part-of: dataplane-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: dataplane-operator
name: install-certs
spec:
playbook: osp.edpm.install_certs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ metadata:
name: libvirt
spec:
playbook: osp.edpm.libvirt
secrets:
dataSources:
# NOTE: this Secret needs to be created before deploying the data plane.
# It should contain the libvirt sasl auth password using the key LibvirtPassword
- libvirt-secret
- secretRef:
name: libvirt-secret
tlsCerts:
default:
contents:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: OpenStackDataPlaneService
metadata:
name: logging
spec:
secrets:
- logging-compute-config-data
dataSources:
- secretRef:
name: logging-compute-config-data
playbook: osp.edpm.telemetry_logging
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ metadata:
name: neutron-dhcp
spec:
playbook: osp.edpm.neutron_dhcp
secrets:
- neutron-dhcp-agent-neutron-config
dataSources:
- secretRef:
name: neutron-dhcp-agent-neutron-config
caCerts: combined-ca-bundle
containerImageFields:
- EdpmNeutronDhcpAgentImage
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ metadata:
name: neutron-metadata
spec:
playbook: osp.edpm.neutron_metadata
secrets:
- neutron-ovn-metadata-agent-neutron-config
- nova-metadata-neutron-config
dataSources:
- secretRef:
name: neutron-ovn-metadata-agent-neutron-config
- secretRef:
name: nova-metadata-neutron-config
tlsCerts:
default:
contents:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ metadata:
name: neutron-ovn
spec:
playbook: osp.edpm.neutron_ovn
secrets:
- neutron-ovn-agent-neutron-config
dataSources:
- secretRef:
name: neutron-ovn-agent-neutron-config
tlsCerts:
default:
contents:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ metadata:
name: neutron-sriov
spec:
playbook: osp.edpm.neutron_sriov
secrets:
- neutron-sriov-agent-neutron-config
dataSources:
- secretRef:
name: neutron-sriov-agent-neutron-config
caCerts: combined-ca-bundle
containerImageFields:
- EdpmNeutronSriovAgentImage
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ spec:
dataSources:
- secretRef:
name: nova-cell1-compute-config
# NOTE: this Secret needs to be created before deploying the data plane.
# It should contain an ssh key-pair in the secret fields: ssh-privatekey
# and ssh-publickey
- secretRef:
name: nova-migration-ssh-key
- configMapRef:
name: nova-extra-config
optional: true
playbook: osp.edpm.nova
caCerts: combined-ca-bundle
containerImageFields:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ metadata:
name: ovn
spec:
playbook: osp.edpm.ovn
configMaps:
- ovncontroller-config
dataSources:
- configMapRef:
name: ovncontroller-config
tlsCerts:
default:
contents:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ metadata:
name: ovn-bgp-agent
spec:
playbook: osp.edpm.ovn_bgp_agent
secrets:
- neutron-ovn-agent-neutron-config
dataSources:
- secretRef:
name: neutron-ovn-agent-neutron-config
tlsCerts:
default:
contents:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ metadata:
name: swift
spec:
playbook: osp.edpm.swift
secrets:
- swift-conf
configMaps:
- swift-storage-config-data
- swift-ring-files
dataSources:
- secretRef:
name: swift-conf
- configMapRef:
name: swift-storage-config-data
- configMapRef:
name: swift-ring-files
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ kind: OpenStackDataPlaneService
metadata:
name: telemetry
spec:
secrets:
- ceilometer-compute-config-data
dataSources:
- secretRef:
name: ceilometer-compute-config-data
playbook: osp.edpm.telemetry
tlsCerts:
default:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneService
metadata:
labels:
app.kubernetes.io/name: openstackdataplaneservice
app.kubernetes.io/instance: openstackdataplaneservice-validate-network
app.kubernetes.io/part-of: dataplane-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: dataplane-operator
name: validate-network
spec:
playbook: osp.edpm.validate_network
22 changes: 6 additions & 16 deletions docs/assemblies/custom_resources.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15397,7 +15397,7 @@ AutoscalingSection defines the desired state of the autoscaling service
| enabled
| Enabled - Whether OpenStack autoscaling service should be deployed and managed
| bool
| *bool
| true
|===
Expand All @@ -15413,7 +15413,7 @@ AutoscalingSectionCore defines the desired state of the autoscaling service
| enabled
| Enabled - Whether OpenStack autoscaling service should be deployed and managed
| bool
| *bool
| true
|===
Expand All @@ -15429,7 +15429,7 @@ CeilometerSection defines the desired state of the ceilometer service
| enabled
| Enabled - Whether OpenStack Ceilometer service should be deployed and managed
| bool
| *bool
| true
|===
Expand All @@ -15445,7 +15445,7 @@ CeilometerSectionCore defines the desired state of the ceilometer service
| enabled
| Enabled - Whether OpenStack Ceilometer service should be deployed and managed
| bool
| *bool
| true
|===
Expand All @@ -15461,7 +15461,7 @@ LoggingSection defines the desired state of the logging service
| enabled
| Enabled - Whether OpenStack logging service should be deployed and managed
| bool
| *bool
| true
|===
Expand All @@ -15477,7 +15477,7 @@ MetricStorageSection defines the desired state of the MetricStorage
| enabled
| Enabled - Whether a MetricStorage should be deployed and managed
| bool
| *bool
| true
|===
Expand Down Expand Up @@ -17006,16 +17006,6 @@ OpenStackDataPlaneServiceSpec defines the desired state of OpenStackDataPlaneSer
|===
| Field | Description | Scheme | Required
| configMaps
| ConfigMaps list of ConfigMap names to mount as ExtraMounts for the OpenStackAnsibleEE
| []string
| false
| secrets
| Secrets list of Secret names to mount as ExtraMounts for the OpenStackAnsibleEE
| []string
| false
| dataSources
| DataSources list of DataSource objects to mount as ExtraMounts for the OpenStackAnsibleEE
| []<<datasource,DataSource>>
Expand Down
Loading

0 comments on commit a896c17

Please sign in to comment.