Skip to content

Commit

Permalink
[patch] update
Browse files Browse the repository at this point in the history
  • Loading branch information
karol-czarnecki committed May 15, 2024
1 parent 28136de commit 9ce53c8
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions ibm/mas_devops/roles/odh/tasks/odh-operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,19 @@
crd_name: knativeservings.operator.knative.dev
# TODO: add wait for operator success

# - name: "Wait for all operators to be Succeeded"
# kubernetes.core.k8s_info:
# api_version: operators.coreos.com/v1alpha1
# namespace: openshift-operators
# #name: authorino-operator.v0.11.1
# #name: opendatahub-operator.v2.12.0
# #name: serverless-operator.v1.32.1
# #name: servicemeshoperator.v2.5.1
# kind: ClusterServiceVersion
# register: odh_lookup
# until:
# - odh_lookup.resources is defined and odh_lookup.resources | length == 1
# # - odh_lookup.resources[0].status is defined
# # - odh_lookup.resources[0].status.phase is defined
# - odh_lookup.resources[0].status.phase == 'Succeeded'
# retries: 20
# delay: 30
- name: "Wait for all operators to be Succeeded"
kubernetes.core.k8s_info:
api_version: operators.coreos.com/v1alpha1
namespace: openshift-operators
kind: ClusterServiceVersion
register: odh_lookup
until:
- odh_lookup.resources is defined and odh_lookup.resources | length == 1
# - odh_lookup.resources[0].status is defined
# - odh_lookup.resources[0].status.phase is defined
- odh_lookup.resources[0].status.phase == 'Succeeded'
retries: 20
delay: 30

- name: "debug operators"
debug:
Expand Down

0 comments on commit 9ce53c8

Please sign in to comment.