Skip to content
Open
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
17 changes: 17 additions & 0 deletions ci/playbooks/lightspeed/run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
- name: "Deploy OpenStack Lightspeed Operator"
hosts: "{{ cifmw_zuul_target_host | default('all') }}"
gather_facts: true
tasks:
- name: Filter out host if needed
when:
- cifmw_zuul_target_host is defined
- cifmw_zuul_target_host != 'all'
- inventory_hostname != cifmw_zuul_target_host
ansible.builtin.meta: end_host

- name: Run Lightspeed deployment hook
when:
- cifmw_run_hook_pre_test is defined
ansible.builtin.include_tasks:
file: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/lightspeed-operator/{{ cifmw_run_hook_pre_test }}"
18 changes: 18 additions & 0 deletions zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
# CI job for deploying OpenStack Lightspeed operator
- job:
name: lightspeed-operator-deployment-crc
parent: cifmw-base-crc
attempts: 1
run: ci/playbooks/lightspeed/run.yml
required-projects:
- openstack-k8s-operators/ci-framework
- openstack-k8s-operators/lightspeed-operator
vars:
cifmw_run_hook_pre_test: install-openstack-lightspeed.yml

cifmw_openstack_lightspeed_llm_endpoint: "https://api.example.com/v1/chat/completions"
cifmw_openstack_lightspeed_model_name: "example-model"

#TODO: wire up zuul for secret and api token
# cifmw_openstack_lightspeed_api_token: "{{ modelscorp_api_token }}"
3 changes: 1 addition & 2 deletions .zuul.yaml → zuul.d/projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
default-branch: main
github-check:
jobs:
- noop

- lightspeed-operator-deployment-crc
Loading