Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNM Add scaling down a DCN site #462

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
233 changes: 233 additions & 0 deletions dt/dcn/control-plane/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
---
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

transformers:
# Set namespace to OpenStack on all namespaced objects without a namespace
- |-
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:
# Control plane custom service configs
- source:
kind: ConfigMap
name: service-values
fieldPath: data.nova.customServiceConfig
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.nova.template.apiServiceTemplate.customServiceConfig
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.nova.metadataServiceTemplate
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.nova.template.metadataServiceTemplate
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
- source:
kind: ConfigMap
name: service-values
fieldPath: data.neutron.template.customServiceConfig
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.neutron.template.customServiceConfig
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.ovn.template.ovnController.external-ids
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.ovn.template.ovnController.external-ids
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.cinderBackup.customServiceConfig
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.cinder.template.cinderBackup.customServiceConfig
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.cinder.uniquePodNames
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.cinder.uniquePodNames
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.cinderVolumes
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.cinder.template.cinderVolumes
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.cinderAPI.replicas
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.cinder.template.cinderAPI.replicas
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.cinder.customServiceConfig
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.cinder.template.customServiceConfig
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.cinderBackup.replicas
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.cinder.template.cinderBackup.replicas
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.glance.keystoneEndpoint
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.glance.template.keystoneEndpoint
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.glance.glanceAPIs
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.glance.template.glanceAPIs
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.manila.enabled
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.manila.enabled
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.manila.manilaAPI.customServiceConfig
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.manila.template.manilaAPI.customServiceConfig
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.manila.manilaShares.share1.customServiceConfig
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.manila.template.manilaShares.share1.customServiceConfig
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.galera.templates
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.galera.templates
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.rabbitmq.templates
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.rabbitmq.templates
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.extraMounts
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.extraMounts
options:
create: true
Loading
Loading