Skip to content

Commit

Permalink
workload_gitops_bootstrap allow suspended (#8977)
Browse files Browse the repository at this point in the history
* remove sample code

* test .status.health.status=Healthy || Suspended

* allow argo.app: .status.health.status=Suspended
  • Loading branch information
newgoliath authored Jan 15, 2025
1 parent 01ce35c commit 190b667
Showing 1 changed file with 1 addition and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(@)')

#######
Expand All @@ -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
Expand Down

0 comments on commit 190b667

Please sign in to comment.