Skip to content

Race condition on kube config when running in parallel #36

@logicbomb421

Description

@logicbomb421

When running this step in parallel workflows, a race condition on the config.lock file generated when changing the kube context is possible. This is very intermittent, but when it happens, one (or more) steps will error with: error: open /codefresh/volume/sensitive/.kube/config.lock: file exists.

This behavior can be reproduced by running two kubectl config use-context commands in parallel (e.g. two different terminals).

These calls are originating from the use-context command that is present in all install and promotion scripts.

Would it be possible to make this an optional param/create bypass param in order to support use cases where multiple releases are being installed into the same cluster, and the context has been preset?

Thanks!

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions