Skip to content

Commit 30a54fa

Browse files
authored
Merge branch 'openstack-k8s-operators:main' into lpiwowar-end-of-maintenance
2 parents 914f551 + ef69da7 commit 30a54fa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+15214
-378
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Manually Trigger a Force Bump PR
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
call-build-workflow:
8+
uses: openstack-k8s-operators/openstack-k8s-operators-ci/.github/workflows/force-bump-pull-request.yaml@main
9+
with:
10+
operator_name: test
11+
branch_name: ${{ github.ref_name }}
12+
secrets:
13+
FORCE_BUMP_PULL_REQUEST_PAT: ${{ secrets.FORCE_BUMP_PULL_REQUEST_PAT }}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Scheduled Force Bump PR
2+
3+
on:
4+
schedule:
5+
- cron: '0 7 * * 6' # 7AM UTC Saturday
6+
7+
jobs:
8+
call-build-workflow:
9+
if: github.ref == 'refs/heads/main' && github.repository_owner == 'openstack-k8s-operators'
10+
uses: openstack-k8s-operators/openstack-k8s-operators-ci/.github/workflows/force-bump-branches.yaml@main
11+
with:
12+
operator_name: test
13+
secrets:
14+
FORCE_BUMP_PULL_REQUEST_PAT: ${{ secrets.FORCE_BUMP_PULL_REQUEST_PAT }}

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ repos:
2525
entry: make
2626
args: ['operator-lint']
2727
pass_filenames: false
28+
- id: make-crd-schema-check
29+
name: make-crd-schema-check
30+
language: system
31+
entry: make
32+
args: ['crd-schema-check']
33+
pass_filenames: false
2834

2935
- repo: https://github.com/pre-commit/pre-commit-hooks
3036
rev: v4.4.0

.zuul.yaml

Lines changed: 90 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- openstack-k8s-operators-content-provider
1212
vars:
1313
cifmw_test_operator_bundle: "{{ content_provider_registry_ip }}:5001/openstack-k8s-operators/test-operator:{{ zuul.patchset }}"
14+
cifmw_test_operator_version: "{{ zuul.patchset }}"
1415
periodic:
1516
jobs:
1617
- openstack-k8s-operators-content-provider:
@@ -22,7 +23,7 @@
2223

2324
- job:
2425
name: podified-multinode-edpm-deployment-crc-test-operator
25-
parent: podified-multinode-edpm-deployment-crc
26+
parent: podified-multinode-hci-deployment-crc-1comp-backends
2627
vars:
2728
cifmw_install_yamls_whitelisted_vars:
2829
- 'TEST_REPO'
@@ -41,6 +42,8 @@
4142
type: tobiko
4243
- name: ansibletest
4344
type: ansibletest
45+
- name: horizontest
46+
type: horizontest
4447

4548
# Tempest
4649
cifmw_run_tempest: true
@@ -67,18 +70,26 @@
6770
tempest.api.identity.admin.v3.test_users.UsersV3TestJSON.test_update_user_password
6871
cifmw_test_operator_tempest_expected_failures_list: |
6972
foobar
70-
cifmw_tempest_tempestconf_config:
73+
cifmw_test_operator_tempest_tempestconf_config:
7174
overrides: |
7275
compute-feature-enabled.dhcp_domain ''
76+
dashboard.dashboard_url https://horizon-openstack.apps-crc.testing/dashboard/
77+
dashboard.login_url https://horizon-openstack.apps-crc.testing/dashboard/auth/login/
78+
dashboard.disable_ssl_certificate_validation True
7379
identity.v3_endpoint_type public
7480
service_available.swift false
7581
service_available.cinder false
82+
service_available.horizon True
7683
cifmw_test_operator_tempest_workflow:
7784
- stepName: 'full'
7885
- stepName: 'single-test'
7986
tempestRun:
8087
includeList: |
8188
tempest.api.compute.admin.test_flavors.FlavorsAdminTestJSON.test_create_flavor_using_string_ram
89+
concurrency: 8
90+
tempestconfRun:
91+
collectTiming: true
92+
8293
cifmw_test_operator_tempest_extra_images:
8394
- URL: https://download.cirros-cloud.net/0.6.2/cirros-0.6.2-x86_64-disk.img
8495
name: cirros-0.6.2-test-operator
@@ -91,6 +102,21 @@
91102
cifmw_test_operator_tempest_ntp_extra_images: https://download.cirros-cloud.net/0.6.2/cirros-0.6.2-x86_64-disk.img
92103
cifmw_test_operator_tempest_network_attachments:
93104
- ctlplane
105+
cifmw_test_operator_tempest_extra_mounts:
106+
- name: v1
107+
region: r1
108+
extraVol:
109+
- propagation:
110+
- Tempest
111+
extraVolType: Ceph
112+
volumes:
113+
- name: ceph
114+
secret:
115+
secretName: openstack-config-secret
116+
mounts:
117+
- name: ceph
118+
mountPath: "/etc/ceph"
119+
readOnly: true
94120

95121
# Tobiko
96122
cifmw_run_tobiko: true
@@ -102,6 +128,43 @@
102128
testenv: 'sanity'
103129
cifmw_test_operator_tobiko_network_attachments:
104130
- ctlplane
131+
cifmw_test_operator_tobiko_extra_mounts:
132+
- name: v1
133+
region: r1
134+
extraVol:
135+
- propagation:
136+
- Tobiko
137+
extraVolType: Ceph
138+
volumes:
139+
- name: ceph
140+
secret:
141+
secretName: openstack-config-secret
142+
mounts:
143+
- name: ceph
144+
mountPath: "/etc/ceph"
145+
readOnly: true
146+
147+
# Horizontest
148+
cifmw_run_horizontest: true
149+
cifmw_test_operator_horizontest_auth_url: "https://keystone-public-openstack.apps-crc.testing"
150+
cifmw_test_operator_horizontest_dashboard_url: "https://horizon-openstack.apps-crc.testing/"
151+
cifmw_test_operator_horizontest_extra_flag: "not pagination and test_users.py"
152+
cifmw_test_operator_horizontest_project_name_xpath: //*[@class="context-project"]//ancestor::ul
153+
cifmw_test_operator_horizontest_extra_mounts:
154+
- name: v1
155+
region: r1
156+
extraVol:
157+
- propagation:
158+
- HorizonTest
159+
extraVolType: Ceph
160+
volumes:
161+
- name: ceph
162+
secret:
163+
secretName: openstack-config-secret
164+
mounts:
165+
- name: ceph
166+
mountPath: "/etc/ceph"
167+
readOnly: true
105168

106169
# Ansibletest
107170
run_ansibletest: true
@@ -114,6 +177,31 @@
114177
cifmw_test_operator_ansibletest_ansible_var_files: |
115178
---
116179
foo: bar
180+
cifmw_test_operator_ansibletest_extra_mounts:
181+
- name: v1
182+
region: r1
183+
extraVol:
184+
- propagation:
185+
- AnsibleTest
186+
extraVolType: Ceph
187+
volumes:
188+
- name: ceph
189+
secret:
190+
secretName: openstack-config-secret
191+
mounts:
192+
- name: ceph
193+
mountPath: "/etc/ceph"
194+
readOnly: true
195+
196+
pre_deploy:
197+
- name: 61 HCI pre deploy kustomizations
198+
type: playbook
199+
source: control_plane_hci_pre_deploy.yml
200+
- name: 80 Kustomize OpenStack CR
201+
type: playbook
202+
source: control_plane_horizon.yml
203+
204+
117205
required-projects: &rp
118206
- name: openstack-k8s-operators/install_yamls
119207
override-checkout: main

Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,3 +348,20 @@ operator-lint: gowork ## Runs operator-lint
348348
.PHONY: docs
349349
docs: ## Create documentation under docs/build/html
350350
docs/build-docs.sh
351+
352+
BRANCH=main
353+
.PHONY: force-bump
354+
force-bump: ## Force bump operator and lib-common dependencies
355+
for dep in $$(cat go.mod | grep openstack-k8s-operators | grep -vE -- 'indirect|test-operator|^replace' | awk '{print $$1}'); do \
356+
go get $$dep@$(BRANCH) ; \
357+
done
358+
for dep in $$(cat api/go.mod | grep openstack-k8s-operators | grep -vE -- 'indirect|test-operator|^replace' | awk '{print $$1}'); do \
359+
cd ./api && go get $$dep@$(BRANCH) && cd .. ; \
360+
done
361+
362+
CRD_SCHEMA_CHECKER_VERSION ?= release-4.16
363+
364+
PHONY: crd-schema-check
365+
crd-schema-check: manifests
366+
INSTALL_DIR=$(LOCALBIN) CRD_SCHEMA_CHECKER_VERSION=$(CRD_SCHEMA_CHECKER_VERSION) hack/build-crd-schema-checker.sh
367+
INSTALL_DIR=$(LOCALBIN) BASE_REF="$${PULL_BASE_SHA:-$(BRANCH)}" hack/crd-schema-checker.sh

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ ENABLE_WEBHOOKS=false make run
7676

7777
**NOTE:** You can also run this in one step by running: `ENABLE_WEBHOOKS=false make install run`
7878

79+
Now that test-operator is automatically deployed in the podified environment,
80+
you need to additionally delete the test-operator controller manager to test
81+
local changes. For more information, check out the section *Running Test Operator Locally*
82+
in our documentation.
7983

8084
## License
8185

0 commit comments

Comments
 (0)