-
Notifications
You must be signed in to change notification settings - Fork 277
demo: move mesh delete command into the cleanup script #1831
Conversation
It is useful to run the cleanup script by itself. The mesh delete command must also be run to cleanup mesh resources created by install. This change moves the mesh delete command into the cleanup script so that this single cleanup script can be used to clean up all resources deployed by the demo. Signed-off-by: Shashank Ram <shashank08@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #1831 +/- ##
==========================================
+ Coverage 59.09% 59.21% +0.11%
==========================================
Files 125 125
Lines 5171 5171
==========================================
+ Hits 3056 3062 +6
+ Misses 2112 2106 -6
Partials 3 3
Continue to review full report at Codecov.
|
@@ -5,6 +5,8 @@ set -aueo pipefail | |||
# shellcheck disable=SC1091 | |||
source .env | |||
|
|||
bin/osm mesh uninstall -f --mesh-name "$MESH_NAME" --namespace "$K8S_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.
Should we add a make build-osm
before running the uninstall command?
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.
We could but unnecessary in the context of current usage (always invoked via demo script). Is it ok to assume the cleanup script for the demo is run post install, at which time the cli binary is built already? I don't see value in even running this without the demo being run prior.
…sh#1831) It is useful to run the cleanup script by itself. The mesh delete command must also be run to cleanup mesh resources created by install. This change moves the mesh delete command into the cleanup script so that this single cleanup script can be used to clean up all resources deployed by the demo. Signed-off-by: Shashank Ram <shashank08@gmail.com>
…sh#1831) It is useful to run the cleanup script by itself. The mesh delete command must also be run to cleanup mesh resources created by install. This change moves the mesh delete command into the cleanup script so that this single cleanup script can be used to clean up all resources deployed by the demo. Signed-off-by: Shashank Ram <shashank08@gmail.com>
Description:
It is useful to run the cleanup script by itself. The mesh
delete command must also be run to cleanup mesh resources
created by install. This change moves the mesh delete command
into the cleanup script so that this single cleanup script
can be used to clean up all resources deployed by the demo.
Affected area:
Please answer the following questions with yes/no.
No