Skip to content

Commit

Permalink
Merge pull request #891 from fluxcd/refac-uninstall
Browse files Browse the repository at this point in the history
Refactor flux uninstall command
  • Loading branch information
stefanprodan authored Feb 12, 2021
2 parents 7f98cfd + 0f1d27f commit a2887f5
Show file tree
Hide file tree
Showing 8 changed files with 273 additions and 108 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/bootstrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITPROVIDER_BOT_TOKEN }}
- name: uninstall
run: |
./bin/flux uninstall --resources --crds -s --timeout=10m
./bin/flux uninstall -s --keep-namespace
kubectl delete ns flux-system --timeout=10m --wait=true
- name: bootstrap reinstall
run: |
./bin/flux bootstrap github --manifests ./manifests/install/ \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ jobs:
./bin/flux check
- name: flux uninstall
run: |
./bin/flux uninstall --crds --silent --timeout=10m
./bin/flux uninstall --silent
- name: Debug failure
if: failure()
run: |
Expand Down
6 changes: 3 additions & 3 deletions cmd/flux/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var rootCmd = &cobra.Command{
Example: ` # Check prerequisites
flux check --pre
# Install the latest version of the toolkit
# Install the latest version of Flux
flux install --version=master
# Create a source from a public Git repository
Expand Down Expand Up @@ -88,8 +88,8 @@ var rootCmd = &cobra.Command{
# Delete a GitRepository source
flux delete source git webapp-latest
# Uninstall the toolkit and delete CRDs
flux uninstall --crds
# Uninstall Flux and delete CRDs
flux uninstall
`,
}

Expand Down
Loading

0 comments on commit a2887f5

Please sign in to comment.