Skip to content

Add Pod WaitForCondition multiple condition support

Alejo Carballude requested to merge feature/wait_for_condition_multiple into master

Context

The Orchestrator pods interface contains a WaitForCondition method to allow waiting a specific state. In a client project, a use case where multiple acceptable states are possible has been found, which is not currently supported by the existing interface.

Change

  1. The pods.WaitForCondition method has been updated to support multiple states as a variable argument.
  2. New SucceededCondition and FailedCondition conditions have been added to allow waiting until a pod gets to the succeeded/failed state, respectively.

Other information

Additional documentation

Edited by Alejo Carballude

Merge request reports