Skip to content

Commit 9e56d12

Browse files
committed
[ci] Pin loki-operator version to 6.3.0
Loki-operator needs to be pinned to 6.3.0, because 6.3.1 has this issue: https://issues.redhat.com/browse/LOG-7752
1 parent bebc41c commit 9e56d12

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

ci/cloudkitty-pre_deploy-install_loki.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,36 @@
1414
github.com/openstack-k8s-operators/telemetry-operator:
1515
src_dir: "{{ telemetry_operator_dir | default('telemetry-operator/') }}"
1616

17+
- name: Set the loki-operator version to pin the version
18+
ansible.builtin.set_fact:
19+
loki_operator_version: "v6.3.0"
20+
1721
- name: Deploy loki operator
1822
ansible.builtin.shell:
1923
cmd: |
2024
oc apply -f {{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/deploy-loki-for-ck.yaml
2125
26+
- name: Get and approve the installplan when the version is pinned
27+
when: loki_operator_version is defined
28+
block:
29+
- name: Get the installplan from the loki-operator subscription
30+
ansible.builtin.shell:
31+
cmd: |
32+
oc get installplan -n openshift-operators-redhat | grep "loki-operator.{{ loki_operator_version }}" | awk '{print $1}'
33+
retries: 10
34+
delay: 10
35+
register: loki_installplan
36+
until: loki_installplan.stdout_lines | length != 0
37+
38+
- name: Show the loki_installplan from oc get installplan
39+
ansible.builtin.debug:
40+
var: loki_installplan
41+
42+
- name: Approve the installation
43+
ansible.builtin.shell:
44+
cmd: |
45+
oc patch -n openshift-operators-redhat installplan {{ loki_installplan.stdout }} --type='json' -p='[{"op": "replace", "path": "/spec/approved", "value":true}]'
46+
2247
- name: Wait up to 5 minutes until the Loki CSV is Succeeded
2348
ansible.builtin.shell:
2449
cmd: |

ci/deploy-loki-for-ck.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ metadata:
2121
namespace: openshift-operators-redhat
2222
spec:
2323
channel: stable-6.3
24+
installPlanApproval: Manual
25+
startingCSV: loki-operator.v6.3.0
2426
name: loki-operator
2527
source: redhat-operators
2628
sourceNamespace: openshift-marketplace

0 commit comments

Comments
 (0)