codefresh-io / steps

36 stars 90 forks source link

helm step parallel steps (.kube/config.lock: file exists) #437

Open rafaeljesus opened 2 years ago

rafaeljesus commented 2 years ago

Hi there,

I have a pipeline with parallel steps, in which I need to deploy helm charts in parallel [1]

The problem I am facing is, apparently the helm step always run kubectl config use-context "<MY-CONTEXT>" https://github.com/codefresh-io/steps/blob/808b525d6cfb2c09774a4180de6c81afe342c6ba/graduated/helm/lib/EntrypointScriptBuilder.py#L179

And since volumes are shared, it fails with the following error:

error: open /codefresh/volume/sensitive/.kube/config.lock: file exists

I think one way of solving dealing with this is to expose a new field skip_kube_config_init: true|false

Thoughts?

[1] Screenshot 2022-02-02 at 16 31 23