Skip to content

Commit

Permalink
CRs for uni-alpha
Browse files Browse the repository at this point in the history
Signed-off-by: Pragadeeswaran Sathyanarayanan <psathyan@redhat.com>
  • Loading branch information
psathyan committed Apr 6, 2024
1 parent dd24288 commit 20fb4c4
Show file tree
Hide file tree
Showing 28 changed files with 1,751 additions and 0 deletions.
1 change: 1 addition & 0 deletions .ci/automation-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ _hook:
type: str()
source: str()
inventory: str(required=False)
extra_vars: map(required=False)
---
_stage:
path: str()
Expand Down
80 changes: 80 additions & 0 deletions automation/vars/uni01alpha.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
vas:
uni01alpha:
stages:
- pre_stage_run:
- name: Install cluster observability operator
type: playbook
source: "../../hooks/playbook/observability.yml"
extra_vars:
cifmw_obs_sub: "dt/uni01alpha/observability_subscription.yaml"
path: examples/dt/uni01alpha/control-plane/nncp
wait_conditions:
- >-
oc -n openstack wait nncp
-l osp/nncm-config-type=standard
--for jsonpath='{.status.conditions[0].reason}'=SuccessfullyConfigured
--timeout=60s
values:
- name: network-values
src_file: values.yaml
build_output: nncp.yaml

- pre_stage_run:
- name: Apply cinder-lvm label on master-0
type: playbook
source: "../../hooks/playbooks/label.yml"
extra_vars:
cifmw_label_resource: Node
cifmw_label_state: patched
cifmw_label_resource_name: master-0
cifmw_label_labels:
openstack.org/cinder-lvm: ""
path: examples/dt/uni01alpha/control-plane
wait_conditions:
- >-
oc -n openstack wait openstackcontrolplane
controlplane
--for condition=Ready
--timeout=30m
values:
- name: network-values
src_file: nncp/values.yaml
- name: service-values
src_file: service-values.yaml
build_output: control-plane.yaml

- pre_stage_run:
- name: Replace resource links with files from library.
type: playbook
source: "../../hooks/playbooks/link2file.yml"
extra_vars:
cifmw_link2file_files: >-
[
'dt/uni01alpha/networker/dataplane-ssh-secret.yaml',
'dt/uni01alpha/networker/openstackdataplanenodeset.yaml',
'dt/uni01alpha/networker/openstackdataplanedeployment.yaml'
]
path: examples/dt/uni01alpha/networker
wait_conditions:
- >-
oc -n openstack wait openstackdataplanedeployment
edpm-networker
--for condition=Ready
--timeout=1200s
values:
- name: edpm-networker-values
src_file: values.yaml
build_output: edpm-networker.yaml

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

If you are looking for information on how to deploy the alpha based DT, then
please the [README](../../examples/dt/uni01alpha/README.md) in the examples
directory.

This directory `dt/uni01alpha/`, exists so that the
[kustomization.yaml](../../examples/dt/uni01alpha/kustomization.yaml) in
the examples directory of uni01alpha 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.
20 changes: 20 additions & 0 deletions dt/uni01alpha/edpm/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
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
Loading

0 comments on commit 20fb4c4

Please sign in to comment.