Skip to content

Commit

Permalink
Get just the nmstate operator when waiting for install
Browse files Browse the repository at this point in the history
When waiting for the nmstate operator to be installed, only that
operator needs to be returned in the results. As CSV's are visible from
all namespaces, restricting by namespace does not have the effect to
only show the CSV's from that namespace.

This task returns all CSV's in the cluster, regardless of namespace, and
fails if more than one CSV is returned as the expected output does not
match.

This commit adds a filter on the expected label for the nmstate operator
so that it will be the only operator returned.

Signed-off-by: James Slagle <[email protected]>
  • Loading branch information
slagle authored and openshift-merge-bot[bot] committed Jun 27, 2024
1 parent 87f57bf commit 75ec6ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/ci_nmstate/tasks/nmstate_k8s_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
cmd: >-
oc get ClusterServiceVersion
-n "{{ cifmw_ci_nmstate_namespace }}"
-l operators.coreos.com/kubernetes-nmstate-operator.openshift-nmstate
-o jsonpath='{.items[*].status.phase}'
changed_when: false
register: _nsmate_csv_out
Expand Down

0 comments on commit 75ec6ed

Please sign in to comment.