OpenShift pipeline - How to allow only one Pipeline run at a time?

Posted on

Hi I am new to OpenShift and from what I can see if I go to a Pipeline and select start twice, immediately two PipelineRuns will run in parallel. This will cause a error because both run's pods will try to access the same pvc and then the pods will get stuck in a bad state. The pods will have Event messages, "Volume is already used by pod(s)".

How can someone enforce that only one pipeline run at a time can run? Is it possible in OpenShift to have these pipeline runs queue up wait for existing pipeline to complete? Is there an OpenShift solution? If there are no out of the box solutions in OpenShift, are there standard workarounds or addons that exists?

Responses