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

CRs for uni01alpha deployed topology #83

Merged
merged 1 commit into from
Apr 19, 2024
Merged
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
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:
psathyan marked this conversation as resolved.
Show resolved Hide resolved
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=2400s
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=2400s
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