Skip to content

Commit

Permalink
BGP dataplane
Browse files Browse the repository at this point in the history
  • Loading branch information
eduolivares committed Apr 9, 2024
1 parent 2a14b62 commit 7659e25
Show file tree
Hide file tree
Showing 4 changed files with 426 additions and 2 deletions.
13 changes: 11 additions & 2 deletions automation/vars/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ vas:
bgp:
stages:
- path: examples/dt/bgp/config/control-plane/nncp
validations:
wait_conditions:
- >-
oc -n openstack wait nncp
-l osp/nncm-config-type=standard
Expand All @@ -176,7 +176,7 @@ vas:
build_output: nncp.yaml

- path: examples/dt/bgp/config/control-plane
validations:
wait_conditions:
- >-
oc -n openstack wait osctlplane controlplane --for condition=Ready
--timeout=30m
Expand All @@ -185,3 +185,12 @@ vas:
src_file: nncp/values.yaml
build_output: ../control-plane.yaml

- path: examples/dt/bgp/edpm
wait_conditions:
- >-
oc -n openstack wait
osdpd edpm-deployment --for condition=Ready --timeout=40m
values:
- name: edpm-values
src_file: values.yaml
build_output: dataplane.yaml
178 changes: 178 additions & 0 deletions dt/bgp/edpm/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
---
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/dataplane

#resources:
# - nova_ceph.yaml

#replacements:
# # Control plane custom service configs
# - 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.cinderVolumes.ceph
# targets:
# - select:
# kind: OpenStackControlPlane
# fieldPaths:
# - spec.cinder.template.cinderVolumes.ceph
# options:
# create: true
# - source:
# kind: ConfigMap
# name: service-values
# fieldPath: data.glance.customServiceConfig
# targets:
# - select:
# kind: OpenStackControlPlane
# fieldPaths:
# - spec.glance.template.customServiceConfig
# options:
# create: true
# - source:
# kind: ConfigMap
# name: service-values
# fieldPath: data.glance.glanceAPIs.default.replicas
# targets:
# - select:
# kind: OpenStackControlPlane
# fieldPaths:
# - spec.glance.template.glanceAPIs.default.replicas
# 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.extraMounts
# targets:
# - select:
# kind: OpenStackControlPlane
# fieldPaths:
# - spec.extraMounts
# options:
# create: true
# # Ceph keyring
# - source:
# kind: ConfigMap
# name: edpm-values-post-ceph
# fieldPath: data.ceph.keyring
# targets:
# - select:
# kind: Secret
# name: ceph-conf-files
# fieldPaths:
# - data.ceph\.client\.openstack\.keyring
# options:
# create: true
# # Ceph conf
# - source:
# kind: ConfigMap
# name: edpm-values-post-ceph
# fieldPath: data.ceph.conf
# targets:
# - select:
# kind: Secret
# name: ceph-conf-files
# fieldPaths:
# - data.ceph\.conf
# options:
# create: true
# # Nova Ceph conf
# - source:
# kind: ConfigMap
# name: edpm-values-post-ceph
# fieldPath: data.nova.ceph.conf
# targets:
# - select:
# kind: ConfigMap
# name: ceph-nova
# fieldPaths:
# - data.03-ceph-nova\.conf
# options:
# create: true
# # Dataplane services override (overrides ../../../lib/dataplane which
# # is using edpm-values ConfigMap)
# - source:
# kind: ConfigMap
# name: edpm-values-post-ceph
# fieldPath: data.nodeset.services
# targets:
# - select:
# kind: OpenStackDataPlaneNodeSet
# fieldPaths:
# - spec.services
# options:
# create: true
# - source:
# kind: ConfigMap
# name: edpm-values-post-ceph
# fieldPath: data.deployment.name
# targets:
# - select:
# kind: OpenStackDataPlaneDeployment
# fieldPaths:
# - metadata.name
# options:
# create: true
11 changes: 11 additions & 0 deletions examples/dt/bgp/edpm/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

components:
- ../../../../dt/bgp/edpm/
## It's possible to replace ../../../../va/hci/edpm-pre-ceph/ with a git checkout URL as per:
## https://github.com/kubernetes-sigs/kustomize/blob/master/examples/remoteBuild.md

resources:
- values.yaml
Loading

0 comments on commit 7659e25

Please sign in to comment.