Skip to content

Commit 68d8afd

Browse files
jpattararoot
andauthored
fix: Jenkins pipeline failure at the mce creation steps (#425)
As part of this PR, below changes are done. - Few corrections are made on the install mce operator role to fix the condition issues. - Added the empty string in hcp.yaml for catalogsource_image --------- Signed-off-by: root <[email protected]> Co-authored-by: root <[email protected]>
1 parent cd21041 commit 68d8afd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

inventories/default/group_vars/hcp.yaml.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ hcp:
1717
version:
1818
instance_name: engine
1919
delete: false
20-
catalogsource_image: # Required only if we need to create the Catalogsource for installing MCE
20+
catalogsource_image: "" # Required only if we need to create the Catalogsource for installing MCE
2121

2222
# AgentServiceConfig Parameters
2323

roles/install_mce_operator/tasks/main.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
kind: Namespace
2525
name: "{{ hcp.asc.mce_namespace }}"
2626
state: present
27-
when: namespace_check.resources | length == 0
27+
when: namespace_check.resources is not defined or namespace_check.resources | length == 0
2828

2929
- name: Create OperatorGroup.yaml
3030
ansible.builtin.template:
@@ -48,6 +48,7 @@
4848
ansible.builtin.shell: |
4949
set -o pipefail
5050
oc get all -n {{ hcp.asc.mce_namespace }} | grep -i deployment | grep -i multicluster-engine | wc -l
51+
register: mce_deploy
5152
until: mce_deploy.stdout == '1'
5253
retries: 20
5354
delay: 5

0 commit comments

Comments
 (0)