diff --git a/ansible/roles_ocp_workloads/ocp4_workload_gitops_bootstrap/tasks/workload.yml b/ansible/roles_ocp_workloads/ocp4_workload_gitops_bootstrap/tasks/workload.yml index a36cff6c24c..1067b97c645 100644 --- a/ansible/roles_ocp_workloads/ocp4_workload_gitops_bootstrap/tasks/workload.yml +++ b/ansible/roles_ocp_workloads/ocp4_workload_gitops_bootstrap/tasks/workload.yml @@ -72,7 +72,7 @@ - _all_apps is defined - _all_apps.resources is defined # json_query: length of list of resources found == length of list of those with good status - - _all_apps.resources | json_query('length([?status.health.status==`Healthy`]) == length(@)') + - _all_apps.resources | json_query('length([?status.health.status==`Healthy` || status.health.status==`Suspended`]) == length(@)') - _all_apps.resources | json_query('length([?status.sync.status==`Synced`]) == length(@)') ####### @@ -87,27 +87,6 @@ - "demo.redhat.com/userinfo" register: cm_userinfo -# # Sample multi-user configmap -# # "data.users_json:" is what this workload looks for to import multi-user data -# -# apiVersion: v1 -# data: -# users_json: '{"users": {"user1": { "kiali_url": "https://kiali-istio-system.apps.rosa-9gp6n.6jcc.p1.openshiftapps.com", -# "sample_first_key": "sample_first_value" },"user2": { "kiali_url": "https://kiali-istio-system.apps.rosa-9gp6n.6jcc.p1.openshiftapps.com", -# "sample_first_key": "sample_first_value" }}}' -# sample_global_value: "global_values" -# sample_global_yaml: | -# sample_global_yaml: -# sample_yaml_key: sample_yaml_value -# kind: ConfigMap -# metadata: -# labels: -# app.kubernetes.io/instance: uplift -# demo.redhat.com/userinfo: "" -# name: userinfo-users-json -# namespace: istio-system -# - - name: If configmaps were found, process them when: - cm_userinfo.resources is defined