redhat-developer / kam

GitOps Application Manager: An opinionated CLI that generates the Kubernetes resources for managing your Tekton-based CI manifests, ArgoCD-based CD manifests and Application manifests in Git.
Apache License 2.0
145 stars 83 forks source link

gitops repo is created even after bootstrap command fails #207

Open amitkrout opened 3 years ago

amitkrout commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

gitops repo is created even after bootstrap command fails.

To Reproduce Steps to reproduce the behavior:

  1. $ kam bootstrap --service-repo-url https://github.com/amitkrout/taxi --gitops-repo-url https://github.com/amitkrout/gitops.git --image-repo quay.io/amitkrout/taxi --dockercfgjson amitkrout-robot-auth.json --git-host-access-token *** --output resources --overwrite --push-to-git=true

  2. $ kam bootstrap --service-repo-url https://github.com/amitkrout/taxi --gitops-repo-url https://github.com/amitkrout/gitops1.git --image-repo quay.io/amitkrout/taxi --dockercfgjson amitkrout-robot-auth.json --git-host-access-token ** --output resources --overwrite --push-to-git=true

Expected behavior A clear and concise description of what you expected to happen.

Post failure the repo should be cleaned up

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

amitkrout commented 3 years ago

/kind bug

wtam2018 commented 3 years ago

@amitkrout You executed the same bootstrap command twice, right? Did the first command successfully run?