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 <[email protected]>
  • Loading branch information
psathyan committed Apr 18, 2024
1 parent d67c332 commit cc57222
Show file tree
Hide file tree
Showing 28 changed files with 1,976 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .ci/automation-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ _values:
_hook:
name: str()
type: str()
source: str()
source: str(required=False)
inventory: str(required=False)
extra_vars: map(required=False)
definition: map(required=False)
resource_name: str(required=False)
state: str(required=False)
kind: str(required=False)
---
_stage:
path: str()
Expand Down
63 changes: 63 additions & 0 deletions automation/vars/uni01alpha.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
vas:
uni01alpha:
stages:
- 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: cr
definition:
metadata:
labels:
openstack.org/cinder-lvm: ""
kind: Node
resource_name: master-0
state: patched
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

- path: examples/dt/uni01alpha/networker
wait_conditions:
- >-
oc -n openstack wait openstackdataplanedeployment
networker-deploy
--for condition=Ready
--timeout=1200s
values:
- name: edpm-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 cc57222

Please sign in to comment.