Uploaded image for project: 'Managed Service - API'
  1. Managed Service - API
  2. MGDAPI-4592

Refactor marin3r pod state check

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Normal Normal
    • 1.27.0
    • None
    • None
    • MGDAPI Sprint 30

      WHAT
      We need this state check https://github.com/integr8ly/integreatly-operator/blob/master/pkg/products/marin3r/rateLimitService.go#L557  to be refactored to:

      if pod.Status.Phase != corev1.PodRunning 

      Reason being that a pod can be in non running state while not being marked as pending or failed.

      HOW
      Refactor

      TESTS
      Double check if unit tests are affected

      DONE
      Logic is refactored and unit tests are updated if exists, if not, consider adding them in.

              mstoklus_rhmi Michal Stokluska
              mstoklus_rhmi Michal Stokluska
              Carl Kyrillos Carl Kyrillos
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: