Skip to content

Commit 2d31076

Browse files
morenodopenshift-merge-bot[bot]
authored andcommitted
Move watcher installation to controplane kustomize
1 parent 05f9aa7 commit 2d31076

12 files changed

Lines changed: 137 additions & 429 deletions

.zuul.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
cifmw_repo_setup_promotion: podified-ci-testing
4242
cifmw_dlrn_report_result: true
4343
cifmw_update_containers_openstack: true
44+
cifmw_update_containers_watcher: true
4445
cifmw_extras:
4546
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].
4647
src_dir }}/scenarios/centos-9/multinode-ci.yml"
@@ -81,8 +82,6 @@
8182
# Donot use openstack services containers from meta content provider master
8283
# job.
8384
cifmw_update_containers_openstack: false
84-
deploy_watcher_service_extra_vars:
85-
watcher_catalog_image: "{{ cifmw_operator_build_output['operators']['watcher-operator'].image_catalog }}"
8685
cifmw_edpm_telemetry_enabled_exporters:
8786
- podman_exporter
8887
- openstack_network_exporter
@@ -98,10 +97,8 @@
9897
vars:
9998
# Do not fetch dlrn md5 hash
10099
fetch_dlrn_hash: false
101-
deploy_watcher_service_extra_vars:
100+
deploy_watcher_operator_extra_vars:
102101
watcher_catalog_image: "{{ cifmw_operator_build_output['operators']['watcher-operator'].image_catalog }}"
103-
deploy_watcher_service: false
104-
force_watcher_standalone: true
105102
cifmw_extras:
106103
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/watcher-operator'].
107104
src_dir }}/ci/scenarios/kuttl.yml"
@@ -164,12 +161,14 @@
164161
# Donot use openstack services containers from meta content provider master
165162
# job.
166163
cifmw_update_containers_openstack: false
164+
cifmw_update_containers_watcher: true
165+
cifmw_update_containers_registry: "{{ content_provider_os_registry_url | split('/') | first }}"
166+
cifmw_update_containers_tag: watcher_latest
167+
cifmw_update_containers_org: podified-epoxy-centos9
167168
# current dlrn hash changes frequently. In meta content provider, containers
168169
# are tagged with watcher_latest, let's use the same here.
169170
fetch_dlrn_hash: false
170171
watcher_services_tag: watcher_latest
171-
deploy_watcher_service_extra_vars:
172-
watcher_cr_file: "ci/watcher_v1beta1_watcher_tlse.yaml"
173172
# tempest vars
174173
cifmw_test_operator_tempest_registry: "{{ content_provider_os_registry_url | split('/') | first }}"
175174
cifmw_test_operator_tempest_namespace: "{{ content_provider_os_registry_url | split('/') | last }}"
@@ -235,6 +234,7 @@
235234
cifmw_update_containers_openstack: true
236235
cifmw_update_containers_org: podified-master-centos10
237236
fetch_dlrn_hash: false
237+
cifmw_update_containers_watcher: true
238238
watcher_services_tag: watcher_latest
239239
watcher_registry_url: "{{ content_provider_os_registry_url }}"
240240
cifmw_update_containers_tag: current-tested

ci/ctlplane_watcher_patch.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

ci/files/configure_telemetry_for_watcher_service.yaml

Lines changed: 0 additions & 28 deletions
This file was deleted.

ci/files/remove-monitoring-stack-field.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

ci/full_watcher_v1beta1_watcher_tlse.yaml

Lines changed: 0 additions & 87 deletions
This file was deleted.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
# This hook is used to deploy watcher operator.
3+
4+
- name: Deploy Watcher Operator
5+
hosts: "{{ cifmw_target_hook_host | default('localhost') }}"
6+
gather_facts: false
7+
environment:
8+
KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}"
9+
PATH: "{{ cifmw_path }}"
10+
tasks:
11+
- name: Stop watcher-operator
12+
cifmw.general.ci_script:
13+
output_dir: "{{ cifmw_basedir }}/artifacts"
14+
chdir: "{{ watcher_repo }}"
15+
script: make stop_watcher_integrated
16+
- name: Install Watcher Operator in standalone mode
17+
vars:
18+
_tag: "{{ latest_dlrn_tag.content | default(watcher_services_tag) | default('current-podified') }}"
19+
# When there is no Depends-On from opendev, then content_provider_os_registry_url will return null
20+
# value to child job. In that case, we need to set default to quay registry.
21+
_registry_url: >-
22+
{%- if watcher_registry_url is defined -%}
23+
{{ watcher_registry_url }}
24+
{%- elif content_provider_os_registry_url is defined and content_provider_os_registry_url == 'null' -%}
25+
quay.io/podified-master-centos9
26+
{%- else -%}
27+
{{ content_provider_os_registry_url | default('quay.io/podified-master-centos9') }}
28+
{%- endif -%}
29+
cifmw.general.ci_script:
30+
output_dir: "{{ cifmw_basedir }}/artifacts"
31+
chdir: "{{ watcher_repo }}"
32+
script: make watcher
33+
extra_args:
34+
CATALOG_IMAGE: "{{ watcher_catalog_image | default('quay.io/openstack-k8s-operators/watcher-operator-index:latest') }}"
35+
WATCHER_API_CI_IMAGE: "{{ _registry_url }}/openstack-watcher-api:{{ _tag }}"
36+
WATCHER_DECISION_ENGINE_CI_IMAGE: "{{ _registry_url }}/openstack-watcher-decision-engine:{{ _tag }}"
37+
WATCHER_APPLIER_CI_IMAGE: "{{ _registry_url }}/openstack-watcher-applier:{{ _tag }}"

0 commit comments

Comments
 (0)