Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rafaeljesus opened this issue Feb 2, 2022 · 0 comments · May be fixed by #438
Open

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

rafaeljesus opened this issue Feb 2, 2022 · 0 comments · May be fixed by #438

Comments

@rafaeljesus
Copy link

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>"

kubectl_cmd = 'kubectl config use-context "%s"' % self.kube_context

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

@rafaeljesus rafaeljesus linked a pull request Feb 2, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant