Skip to content

Commit 03b108b

Browse files
Merge pull request #301 from elfiesmelfie/efoley-zuul_autoscaling
[zuul] Add autoscaling job
2 parents cce4d37 + 45c7723 commit 03b108b

File tree

2 files changed

+82
-0
lines changed

2 files changed

+82
-0
lines changed

ci/create-coo-subscription.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
- name: "Create the cluster-observability-operator subscription"
3+
hosts: "{{ cifmw_target_hook_host | default('localhost') }}"
4+
gather_facts: false
5+
environment:
6+
KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}"
7+
PATH: "{{ cifmw_path }}"
8+
tasks:
9+
- name: Create the COO subscription
10+
ansible.builtin.shell:
11+
cmd: |
12+
oc create -f - <<EOF
13+
apiVersion: operators.coreos.com/v1alpha1
14+
kind: Subscription
15+
metadata:
16+
name: cluster-observability-operator
17+
namespace: openshift-operators
18+
spec:
19+
channel: development
20+
installPlanApproval: Automatic
21+
name: cluster-observability-operator
22+
source: redhat-operators
23+
sourceNamespace: openshift-marketplace
24+
EOF
25+
register: output
26+
27+
# need to have a wait here, since the csv is not created immediately. There is a slight delay, during which time, the oc wait command would fail, since there's no resource to watch
28+
- name: Wait for the required resource to be created
29+
ansible.builtin.command:
30+
cmd:
31+
oc get csv --namespace=openshift-operators -l operators.coreos.com/cluster-observability-operator.openshift-operators
32+
delay: 2
33+
retries: 10
34+
register: output
35+
until: output.stdout_lines | length != 0
36+
37+
- name: Wait for the resources to be available
38+
ansible.builtin.command:
39+
cmd: |
40+
oc wait --for jsonpath="{.status.phase}"=Succeeded csv --namespace=openshift-operators -l operators.coreos.com/cluster-observability-operator.openshift-operators

zuul.d/projects.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,47 @@
11
---
2+
- job:
3+
name: telemetry-operator-multinode-autoscaling
4+
parent: podified-multinode-edpm-deployment-crc
5+
dependencies: ["openstack-k8s-operators-content-provider"]
6+
description: |
7+
Deploy OpenStack with Autoscaling features enabled
8+
vars:
9+
cifmw_edpm_prepare_timeout: 60
10+
pre_deploy:
11+
- name: Create COO subscription
12+
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/create-coo-subscription.yaml"
13+
type: playbook
14+
cifmw_install_yamls_vars:
15+
BMO_SETUP: false
16+
cifmw_edpm_prepare_kustomizations:
17+
- apiVersion: kustomize.config.k8s.io/v1beta1
18+
kind: Kustomization
19+
namespace: openstack
20+
patches:
21+
- patch: |-
22+
apiVersion: core.openstack.org/v1beta1
23+
kind: OpenStackControlPlane
24+
metadata:
25+
name: unused
26+
spec:
27+
heat:
28+
enabled: true
29+
telemetry:
30+
enabled: true
31+
template:
32+
metricStorage:
33+
enabled: true
34+
monitoringStack:
35+
alertingEnabled: false
36+
autoscaling:
37+
enabled: true
38+
target:
39+
kind: OpenStackControlPlane
40+
241
- project:
342
name: openstack-k8s-operators/telemetry-operator
443
templates:
544
- podified-multinode-edpm-pipeline
45+
github-check:
46+
jobs:
47+
- telemetry-operator-multinode-autoscaling

0 commit comments

Comments
 (0)