opendatahub-io / model-registry-operator

Apache License 2.0
3 stars 17 forks source link

feat: add unexpected reconcile errors to false Available status in MR cr, fixes RHOAIENG-10027 #126

Closed dhirajsb closed 4 weeks ago

dhirajsb commented 1 month ago

Description

Add unexpected reconcile errors to false Available status in MR cr This handles errors received while looking up dependent k8s resources, e.g. Istio resources, or errors from Istio validation when creating MR istio resources. Fixes RHOAIENG-10027

How Has This Been Tested?

Manually tested by setting the property istioIngress: bad-ingressgateway, which results in the error status:

  - lastTransitionTime: "2024-08-22T23:48:22Z"
    message: 'unexpected reconcile error: missing unique ingress gateway service with labels map[istio:bad-ingressgateway], found 0 services'
    reason: DeploymentUnavailable
    status: "False"
    type: Available

Merge criteria: