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

Add --validate flag to builder inventory plugin add command to validate plugin exists or not #113

Merged

Conversation

anujc25
Copy link
Contributor

@anujc25 anujc25 commented Mar 14, 2023

What this PR does / why we need it

  • This PR adds a --validate flag to the builder inventory plugin add command to validate the plugin already exists or not in the plugin inventory database.
  • It fails if the plugins already exist and succeeds if plugins don't exist in the database.

Which issue(s) this PR fixes

Fixes #

Describe testing done for PR

Release note

Add the `--validate` flag to the `builder inventory plugin add` command to validate plugin exists or not

Additional information

Special notes for your reviewer

@anujc25 anujc25 requested a review from a team as a code owner March 14, 2023 21:37
@anujc25 anujc25 force-pushed the add-validate-override-plugin-publish branch from 057fa7c to 0d44fb5 Compare March 21, 2023 16:16
@anujc25 anujc25 changed the title Add --validate flag to builder inventory plugin insert command to validate plugin exists or not Add --validate flag to builder inventory plugin add command to validate plugin exists or not Mar 21, 2023
Copy link
Contributor

@marckhouzam marckhouzam left a comment

Choose a reason for hiding this comment

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

I think this is sufficient for now since I believe this --validate flag will be used in automation and not by humans. If we want to support this for humans at a later time, it is just the error output that I don't like too much, as it says that it couldn't insert the plugins although we are just doing validation.

But like I said, this is not important for automation.

@anujc25 anujc25 merged commit 65873b8 into vmware-tanzu:main Mar 21, 2023
@vuil vuil added the kind/feature Categorizes issue or PR as related to a new feature label Apr 7, 2023
@marckhouzam marckhouzam added this to the v0.90.0 milestone Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-not-required kind/feature Categorizes issue or PR as related to a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants