Skip to content

Commit

Permalink
Deployment for UniDelta integration pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiri Macku authored and jirimacku committed May 21, 2024
1 parent 7aad6df commit 5e4a6ea
Show file tree
Hide file tree
Showing 32 changed files with 1,589 additions and 0 deletions.
80 changes: 80 additions & 0 deletions automation/vars/uni04delta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
vas:
uni04delta:
stages:
- path: examples/dt/uni04delta/control-plane/nncp
wait_conditions:
- >-
oc -n openstack wait nncp
-l osp/nncm-config-type=standard
--for jsonpath='{.status.conditions[0].reason}'=SuccessfullyConfigured
values:
- name: network-values
src_file: values.yaml
build_output: nncp.yaml

- path: examples/dt/uni04delta/control-plane
wait_conditions:
- >-
oc -n openstack wait osctlplane controlplane
--for condition=Ready
--timeout=600s
values:
- name: network-values
src_file: nncp/values.yaml
- name: service-values.yaml
src_file: service-values.yaml
build_output: control-plane.yaml

- path: examples/dt/uni04delta/edpm-pre-ceph/nodeset
wait_conditions:
- >-
oc -n openstack wait
osdpns ceph-nodes --for condition=SetupReady
--timeout=600s
values:
- name: edpm-nodeset-values
src_file: values.yaml
build_output: nodeset-pre-ceph.yaml

- path: examples/dt/uni04delta/edpm-pre-ceph
wait_conditions:
- >-
oc -n openstack wait
osdpd edpm-deployment-pre-ceph --for condition=Ready
--timeout=1500s
values:
- name: edpm-deployment-values
src_file: values.yaml
build_output: deployment-pre-ceph.yaml
post_stage_run:
- name: Deploy Ceph
type: playbook
source: "../../playbooks/ceph.yml"
inventory: "${HOME}/ci-framework-data/artifacts/zuul_inventory.yml"

- path: examples/dt/uni04delta
wait_conditions:
- >-
oc -n openstack wait osdpns
openstack-edpm
--for condition=SetupReady
--timeout=2400s
values:
- name: service-values
src_file: control-plane/service-values.yaml
- name: edpm-nodeset-values
src_file: values.yaml
build_output: edpm-nodeset.yaml

- path: examples/dt/uni04delta/deployment
wait_conditions:
- >-
oc -n openstack wait osdpd
edpm-deployment
--for condition=Ready
--timeout=2400s
values:
- name: edpm-deployment-values-post-ceph
src_file: values.yaml
build_output: edpm.yaml
11 changes: 11 additions & 0 deletions dt/uni04delta/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Deployed Topology - Delta

If you are looking for information on how to deploy the Unified Delta deployed
topology of OpenStack Services on OpenShift, then please see the
[README](../../examples/dt/uni04delta/README.md) in the examples directory.

This directory, 'dt/uni04delta/', exists so that the
[kustomization.yaml](../../examples/dt/uni04delta/kustomization.yaml) in the
examples directory of unified-delta topology, reference it by path as a
component. It's contents are likely uninteresting unless you want to
understand how kustomize was implemented in this repository.
51 changes: 51 additions & 0 deletions dt/uni04delta/edpm-pre-ceph/deployment/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
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/deployment

replacements:
- source:
kind: ConfigMap
name: edpm-deployment-values
fieldPath: data.deployment.name
targets:
- select:
kind: OpenStackDataPlaneDeployment
fieldPaths:
- metadata.name
options:
create: true

patches:
- target:
kind: OpenStackDataPlaneDeployment
name: .*
patch: |-
- op: replace
path: /metadata/name
value: edpm-deployment-pre-ceph
- target:
kind: OpenStackDataPlaneDeployment
name: .*
patch: |-
- op: replace
path: /spec/nodeSets
value:
- ceph-nodes
38 changes: 38 additions & 0 deletions dt/uni04delta/edpm-pre-ceph/nodeset/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
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/dataplane/nodeset

patches:
- target:
kind: OpenStackDataPlaneNodeSet
name: .*
patch: |-
- op: replace
path: /metadata/name
value: ceph-nodes
- target:
kind: Secret
name: nova-migration-ssh-key
patch: |-
- op: add
path: /metadata/annotations
value:
config.kubernetes.io/local-config: true
34 changes: 34 additions & 0 deletions dt/uni04delta/edpm/deployment/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
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/deployment

replacements:
- source:
kind: ConfigMap
name: edpm-deployment-values-post-ceph
fieldPath: data.deployment.name
targets:
- select:
kind: OpenStackDataPlaneDeployment
fieldPaths:
- metadata.name
options:
create: true
10 changes: 10 additions & 0 deletions dt/uni04delta/edpm/nodeset/ceph_secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: ceph-conf-files
namespace: openstack
data:
ceph.client.openstack.keyring: _replaced_
ceph.conf: _replaced_
17 changes: 17 additions & 0 deletions dt/uni04delta/edpm/nodeset/extra_mounts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneNodeSet
metadata:
name: openstack-edpm
spec:
nodeTemplate:
extraMounts:
- extraVolType: Ceph
mounts:
- mountPath: /etc/ceph
name: ceph
readOnly: true
volumes:
- name: ceph
secret:
secretName: ceph-conf-files
Loading

0 comments on commit 5e4a6ea

Please sign in to comment.