Skip to content

Commit

Permalink
[delta-ipv6] Shared control plane vars
Browse files Browse the repository at this point in the history
Ther is 2 stage control plane config,
tha shared options moved to different file used by
both stages.
  • Loading branch information
afazekas committed Sep 4, 2024
1 parent 07cc650 commit 092c935
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 114 deletions.
145 changes: 145 additions & 0 deletions dt/uni04delta-ipv6/control-plane/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
---
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

transformers:
- |-
apiVersion: builtin
kind: NamespaceTransformer
metadata:
name: _ignored_
namespace: openstack
setRoleBindingSubjects: none
unsetOnly: true
fieldSpecs:
- path: metadata/name
kind: Namespace
create: true
components:
- ../../../lib/control-plane

replacements:
- source:
kind: ConfigMap
name: service-values
fieldPath: data.neutron.customServiceConfig
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.neutron.template.customServiceConfig
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.ironic.enabled
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.ironic.enabled
options:
create: true

- source:
kind: ConfigMap
name: service-values
fieldPath: data.ironic.rpcTransport
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.ironic.template.rpcTransport
options:
create: true

- source:
kind: ConfigMap
name: network-values
fieldPath: data.ctlplane.endpoint_annotations
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.ironic.template.ironicAPI.override.service.internal.metadata.annotations
options:
create: true

- source:
kind: ConfigMap
name: network-values
fieldPath: data.ctlplane.endpoint_annotations
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.ironic.template.ironicInspector.override.service.internal.metadata.annotations
options:
create: true

- source:
kind: ConfigMap
name: network-values
fieldPath: data.lbServiceType
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.ironic.template.ironicAPI.override.service.internal.spec.type
- spec.ironic.template.ironicInspector.override.service.internal.spec.type
options:
create: true

- source:
kind: ConfigMap
name: network-values
fieldPath: data.ironic.iface
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.ironic.template.ironicConductors.0.networkAttachments.0
- spec.ironic.template.ironicConductors.0.provisionNetwork
- spec.ironic.template.ironicInspector.inspectionNetwork
- spec.ironic.template.ironicInspector.networkAttachments.0
- spec.ovn.template.ovnController.nicMappings.ironic
options:
create: true

- source:
kind: ConfigMap
name: service-values
fieldPath: data.ironic.ironicConductors.0.customServiceConfig
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.ironic.template.ironicConductors.0.customServiceConfig
options:
create: true

- source:
kind: ConfigMap
name: service-values
fieldPath: data.ironic.ironicInspector.customServiceConfig
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.ironic.template.ironicInspector.customServiceConfig
options:
create: true

- source:
kind: ConfigMap
name: service-values
fieldPath: data.nova.cellTemplates
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.nova.template.cellTemplates
options:
create: true
2 changes: 1 addition & 1 deletion dt/uni04delta-ipv6/edpm/nodeset/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ transformers:
create: true
components:
- ../../../../lib/control-plane
- ../../control-plane
- ../../../../lib/dataplane/nodeset

resources:
Expand Down
114 changes: 1 addition & 113 deletions dt/uni04delta-ipv6/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ components:
- ../../lib/networking/metallb
- ../../lib/networking/netconfig
- ../../lib/networking/nad
- ../../lib/control-plane
- control-plane

resources:
- nad.yaml
Expand Down Expand Up @@ -82,17 +82,6 @@ replacements:
- spec.neutron.template.customServiceConfig
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.ironic.enabled
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.ironic.enabled
options:
create: true
- source:
kind: ConfigMap
name: network-values
Expand All @@ -103,104 +92,3 @@ replacements:
name: ironic
fieldPaths:
- spec.config

- source:
kind: ConfigMap
name: service-values
fieldPath: data.ironic.rpcTransport
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.ironic.template.rpcTransport
options:
create: true

- source:
kind: ConfigMap
name: network-values
fieldPath: data.ctlplane.endpoint_annotations
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.ironic.template.ironicAPI.override.service.internal.metadata.annotations
options:
create: true

- source:
kind: ConfigMap
name: network-values
fieldPath: data.ctlplane.endpoint_annotations
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.ironic.template.ironicInspector.override.service.internal.metadata.annotations
options:
create: true

- source:
kind: ConfigMap
name: network-values
fieldPath: data.lbServiceType
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.ironic.template.ironicAPI.override.service.internal.spec.type
- spec.ironic.template.ironicInspector.override.service.internal.spec.type
options:
create: true

- source:
kind: ConfigMap
name: network-values
fieldPath: data.ironic.iface
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.ironic.template.ironicConductors.0.networkAttachments.0
- spec.ironic.template.ironicConductors.0.provisionNetwork
- spec.ironic.template.ironicInspector.inspectionNetwork
- spec.ironic.template.ironicInspector.networkAttachments.0
- spec.ovn.template.ovnController.nicMappings.ironic
options:
create: true

- source:
kind: ConfigMap
name: service-values
fieldPath: data.ironic.ironicConductors.0.customServiceConfig
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.ironic.template.ironicConductors.0.customServiceConfig
options:
create: true

- source:
kind: ConfigMap
name: service-values
fieldPath: data.ironic.ironicInspector.customServiceConfig
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.ironic.template.ironicInspector.customServiceConfig
options:
create: true

- source:
kind: ConfigMap
name: service-values
fieldPath: data.nova.cellTemplates
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.nova.template.cellTemplates
options:
create: true

0 comments on commit 092c935

Please sign in to comment.