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

Remove deprecated components #643

Merged

Conversation

mpanchajanya
Copy link
Contributor

@mpanchajanya mpanchajanya commented Jan 10, 2024

What this PR does / why we need it

Removed below components

Commands:

  • tz builder cli compile (newCompileCmd())
  • tz builder publish (NewPublishCmd())
  • tz config server (and its sub commands) (variable serversCmd)

Cleanup:

  • pkg/command/config.go has code to set "unstable-versions" and "cli.edition" which is not supported and private functions are deprecated (setUnstableVersions() and setEdition())
  • pkg/config/bom.go and pkg/config/edition.go can all be removed

Remove use of deprecated items:

  • use of PluginDiscovery.GCP

Which issue(s) this PR fixes

Fixes #

Describe testing done for PR

  • Verified adding discovery source
  • Verified the removed commands of servers
mpanchajanya@mpanchajanF09MK ~/v/r/tanzu-cli (remove_deprecated_components)> tz config
Configuration for the CLI

Usage:
  tanzu config [command]

Available Commands:
  cert        Manage certificate configuration of hosts
  eula        Manage EULA acceptance
  get         Get the current configuration
  init        Initialize config with defaults
  set         Set config values at the given PATH
  unset       Unset config values at the given PATH

Flags:
  -h, --help   help for config

Use "tanzu config [command] --help" for more information about a command.

Release note

Removed commands tanzu builder cli compile,  tanzu builder publish, tanzu config server (and its sub commands) 

Additional information

Special notes for your reviewer

@mpanchajanya mpanchajanya self-assigned this Jan 10, 2024
@mpanchajanya mpanchajanya force-pushed the remove_deprecated_components branch 5 times, most recently from 5c7b1cd to 28ee48a Compare January 11, 2024 16:42
@mpanchajanya mpanchajanya marked this pull request as ready for review January 11, 2024 16:47
@mpanchajanya mpanchajanya requested a review from a team as a code owner January 11, 2024 16:47
Copy link
Contributor

@anujc25 anujc25 left a comment

Choose a reason for hiding this comment

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

Changes looks good.

We need to add details about the removed commands in the release note. Please add more details before merging.

@marckhouzam marckhouzam added this to the v1.2.0 milestone Jan 18, 2024
@marckhouzam marckhouzam added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process label Jan 18, 2024
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.

Thanks for this cleanup! It's just missing some doc updates mentioned below and possibly a bit more cleanup.

A couple of minor points:

  1. the README of the builder plugin still mentions tanzu builder cli compile
  2. same for cli-architecture.md
  3. in quickstart.md in the section about tanzu config server, can you replace the word 'deprecated' by 'removed'
  4. can you remove the mention of tanzu config server in cli-architecture.md
  5. I think we can also remove the entire directory cmd/plugin/builder/command/publish but I'd like @anujc25 to confirm
  6. should we remove ConfigServerDelete and ConfigServerList and ConfigServerDeleted from test/e2e/framework/framework_constants.go?

@mpanchajanya
Copy link
Contributor Author

Changes looks good.

We need to add details about the removed commands in the release note. Please add more details before merging.

Thanks for the review. Updated the release notes

@mpanchajanya
Copy link
Contributor Author

6. ConfigServerDeleted

Thanks @marckhouzam for the review. I have the updated the markdown files and removed server methods from e2e. Will wait for @anujc25 on 5)I think we can also remove the entire directory cmd/plugin/builder/command/publish but I'd like @anujc25 to confirm

@anujc25
Copy link
Contributor

anujc25 commented Jan 18, 2024

I think we can also remove the entire directory cmd/plugin/builder/command/publish but I'd like @anujc25 to confirm

Yes. We can remove the entire directory.

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.

LGTM
Thank you

@mpanchajanya mpanchajanya merged commit 8845d20 into vmware-tanzu:main Jan 19, 2024
7 checks passed
vuil pushed a commit to vuil/tanzu-cli that referenced this pull request Jan 23, 2024
* Remove deprecated components

* Update the markdown files

* Remove server methods from e2e

* Remove unused builder publish command
vuil pushed a commit that referenced this pull request Jan 23, 2024
* Remove deprecated components

* Update the markdown files

* Remove server methods from e2e

* Remove unused builder publish command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-not-required kind/cleanup Categorizes issue or PR as related to cleaning up code, process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants