Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy clean should remove everything, not just CRD #1010

Merged
merged 1 commit into from
Oct 31, 2019
Merged

Conversation

alenkacz
Copy link
Contributor

What this PR does / why we need it:
Since deploy is installing everything into a cluster, deploy-clean should remove everything. Right now it was removing just crds.

@@ -81,7 +81,7 @@ deploy:

.PHONY: deploy-clean
deploy-clean:
go run ./cmd/kubectl-kudo init --crd-only --dry-run --output yaml | kubectl delete -f -
go run ./cmd/kubectl-kudo init --dry-run --output yaml | kubectl delete -f -
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is fine... I assume there is awareness that if there is a runtime object removal that this doesn't work. In the past the removal of planexecution caused some issues as the latest version didn't delete the crd... but 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we surprise anybody by the change in the behavior? wdyt about a new make nuke-all (a debatable name :) ) target that removes everything?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the convention should be XXX-clean removes whatever XXX created. I doubt that many people actually use this to be honest apart from the core team, I would not be afraid of changing this :)

Copy link
Contributor

@zen-dog zen-dog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@alenkacz alenkacz merged commit 830d875 into master Oct 31, 2019
@alenkacz alenkacz deleted the av/deploy-clean branch October 31, 2019 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants