openshift-online / ocm-api-model

Apache License 2.0
4 stars 95 forks source link

OCM-11393 & OSD-25124: generic conditions for version gates #999

Open Nikokolas3270 opened 1 month ago

Nikokolas3270 commented 1 month ago

Replaces this PR which was adding a WIF specific solution for filtering clusters: https://github.com/openshift-online/ocm-api-model/pull/985

Example of use of this new field:

"cluster_condition": "product.id = 'osd'"

This field is expected to contain the same kind of expressions that the ones passed to the search field of the following API endpoint: GET /api/clusters_mgmt/v1/clusters