Skip to content
This repository was archived by the owner on Jun 19, 2023. It is now read-only.
This repository was archived by the owner on Jun 19, 2023. It is now read-only.

Cleanup routine after failed bunk up operation #3

Description

@pogzie

Dustin, I noticed that when trying to run bunk and forgetting to have Docker running beforehand, bunk fails with an exit status 1.

:
Writing 60 serviceaccounts resources from file: serviceaccounts.yaml
Writing 28 services/specs resources from file: services.yaml
Writing 1 signingkeies resources from file: signingkeies.dex.coreos.com.yaml
Writing 1 statefulsets resources from file: statefulsets.apps.yaml
Writing 1 storageclasses resources from file: storageclasses.storage.k8s.io.yaml
Writing 4 validatingwebhookconfigurations resources from file: validatingwebhookconfigurations.admissionregistration.k8s.io.yaml
Skipping empty volumeattachments resource file: volumeattachments.storage.k8s.io.yaml
Writing 1 volumesnapshotlocations resources from file: volumesnapshotlocations.velero.io.yaml
2021/07/14 13:41:28 Creating k3d cluster
2021/07/14 13:41:28 exit status 1

After I've launched Docker and re-run the command, it complains about a .kbk already existing. I assume this is some kind of "session" or "state" from the previous launch?

In anycase, I just rm -rf .kbk on the bundle directory and re-run bunk up and everything is ok.

Im thinking that a cleanup routine can be added to automatically purge this folder if a launch fails? Or is it worth keeping for bunk run logs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions