crossplane-contrib/provider-kubernetes

Extend the readinessChecks Policy options to allow for a list of Condition types and values to match

bobh66 opened this issue · 2 comments

What problem are you facing?

Many Kubernetes Custom Resources have status.conditions that should be ignored for readiness checks so the AllTrue policy will not work.

How could Crossplane help solve your problem?

It would be useful to be able to specify a list of condition types and associated values to match on that determine resource readiness

We kind of had this planned as an extension of the FromObject readiness policy, see here. But it feels you'd like for it to be more powerful and be able to match multiple conditions but not all of them, right?

Yes - I'm dealing with resources that might have a dozen or more status conditions but only a few of them are relevant to resource readiness, so I need to be able to filter on the condition types that are considered.