Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

demo: move mesh delete command into the cleanup script #1831

Merged
merged 1 commit into from
Oct 14, 2020

Conversation

shashankram
Copy link
Member

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:

  • New Functionality [ ]
  • Documentation [ ]
  • Install [ ]
  • Control Plane [ ]
  • CLI Tool [ ]
  • Certificate Management [ ]
  • Networking [ ]
  • Metrics [ ]
  • SMI Policy [ ]
  • Security [ ]
  • Tests [ ]
  • CI System [ ]
  • Performance [ ]
  • Other [X]

Please answer the following questions with yes/no.

  • Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?
    No

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>
@shashankram shashankram requested a review from a team as a code owner October 14, 2020 17:24
@codecov-io
Copy link

Codecov Report

Merging #1831 into main will increase coverage by 0.11%.
The diff coverage is n/a.

Impacted file tree graph

@@            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              
Impacted Files Coverage Δ
...ertificate/providers/tresor/certificate_manager.go 76.40% <0.00%> (+6.74%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c1265f5...34b9ed5. Read the comment docs.

@@ -5,6 +5,8 @@ set -aueo pipefail
# shellcheck disable=SC1091
source .env

bin/osm mesh uninstall -f --mesh-name "$MESH_NAME" --namespace "$K8S_NAMESPACE"
Copy link
Contributor

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?

Copy link
Member Author

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.

@shashankram shashankram merged commit b91c46b into openservicemesh:main Oct 14, 2020
@shashankram shashankram deleted the cleanup branch October 14, 2020 17:47
eduser25 pushed a commit to eduser25/osm that referenced this pull request Oct 14, 2020
…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>
draychev pushed a commit to draychev/osm that referenced this pull request Oct 28, 2020
…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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants