Skip to content

Commit

Permalink
test(e2e): provide kubeconfig on kind cluster removal (kumahq#12695)
Browse files Browse the repository at this point in the history
## Motivation

We observed that during multizone tests, while all tests succeeded, the
job occasionally failed with the following error:
```
failed to update kubeconfig: failed to lock config file: open /home/ubuntu/.kube/config.lock: file exists
```
After investigating the issue and reviewing similar cases, I came across
a suggestion to provide a kubeconfig file. Reusing a specific kubeconfig
file could help prevent this issue from occurring.

## Implementation information

Provide kubeconfig file location on removal

## Supporting documentation

xref: https://github.com/kubernetes-sigs/kind/issues/ 2008

Signed-off-by: Lukasz Dziedziak <[email protected]>
  • Loading branch information
lukidzi authored Jan 29, 2025
1 parent a11c0b3 commit d5315dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mk/kind.mk
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ kind/wait:

.PHONY: kind/stop
kind/stop: kind/cleanup-docker-credentials
@$(KIND) delete cluster --name $(KIND_CLUSTER_NAME)
@$(KIND) delete cluster --kubeconfig $(KIND_KUBECONFIG) --name $(KIND_CLUSTER_NAME)
@rm -f $(KUBECONFIG_DIR)/$(KIND_KUBECONFIG)

.PHONY: kind/stop/all
Expand Down

0 comments on commit d5315dd

Please sign in to comment.