-
Notifications
You must be signed in to change notification settings - Fork 7
feat: add cleanup for kubernetes dev env #59
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
```sh | ||
make clean.environment.dev.kubernetes | ||
``` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> **Warning**: This cleanup doesn't remove any custom pull `Secrets` you may have added. If you are | |
> done with this environment, you may want to remove those manually as well. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Makefile
Outdated
# ------------------------------------------------------------------------------ | ||
.PHONY: clean.environment.dev.kubernetes | ||
clean.environment.dev.kubernetes: check-kubectl check-kustomize check-envsubst | ||
ifndef NAMESPACE | ||
$(error "Error: NAMESPACE is required but not set") | ||
endif | ||
@echo "INFO: deleting namespace $(NAMESPACE)" | ||
kubectl delete namespace $(NAMESPACE) | ||
@echo "INFO: deleting namespace dev environments from $(NAMESPACE)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@echo "INFO: deleting namespace dev environments from $(NAMESPACE)" | |
@echo "INFO: cleaning up dev environment in $(NAMESPACE)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you might need to push, I can't see any updates?
@shaneutt, done with all the fixes. |
Signed-off-by: Kfir Toledo <kfir.toledo@ibm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Add cleanup instructions for DEPLOYMENT.md for the development environment