Skip to content

Commit 62ecbbc

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 943d09e commit 62ecbbc

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

ci/cloudkitty-pre_deploy-install_loki.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,29 @@
1111
cmd: |
1212
oc apply -f {{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/deploy-loki-for-ck.yaml
1313
14+
- name: Get the installplan from the loki-operator subscription
15+
ansible.builtin.shell:
16+
cmd: |
17+
oc get subscription -n openshift-operators-redhat loki-operator -ojsonpath='{ .status.installplan.name }'
18+
until: loki_installplan.stdout_lines | length > 0
19+
retries: 12
20+
delay: 10
21+
register: loki_installplan
22+
23+
- name: Show the loki_installplan
24+
ansible.builtin.debug:
25+
var: loki_installplan.stdout
26+
27+
- name: Get details of loki installplan
28+
ansible.builtin.shell:
29+
cmd: |
30+
oc describe -n openshift-operators-redhat installplan {{ loki_installplan.stdout }}
31+
32+
- name: Get install plan and approve the installation
33+
ansible.builtin.shell:
34+
cmd: |
35+
oc patch -n openshift-operators-redhat installplan {{ loki_installplan.stdout }} --type='json' -p='[{"op": "replace", "path": "/spec/approved", "value":true}]'
36+
1437
- name: Wait up to 5 minutes until the Loki CSV is Succeeded
1538
ansible.builtin.shell:
1639
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)