Add backward compatibility support for private customer plugins #289
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it
This PR adds backward compatiblity support for private customer plugins
Summary:
TANZU_CLI_PRIVATE_PLUGIN_DISCOVERY_IMAGES
to specify the custom private repository where he hosted his custom plugins. Users who are currently using the CLIPlugin CR to point to their cutom private plugin repository, should use the CLI documentation to build and publish their plugins to their private repository so as to use this approach.TANZU_CLI_ADDITIONAL_PLUGIN_DISCOVERY_IMAGES_TEST_ONLY
except the name change and the new environmentTANZU_CLI_PRIVATE_PLUGIN_DISCOVERY_IMAGES
variable would be mutual exclusive toTANZU_CLI_ADDITIONAL_PLUGIN_DISCOVERY_IMAGES_TEST_ONLY
(only one of them would be honored) withTANZU_CLI_PRIVATE_PLUGIN_DISCOVERY_IMAGES
taking the priority.Which issue(s) this PR fixes
Fixes #
Describe testing done for PR
Ran the tanzu plugin search and it shows only the
test
andbuild
plugin from default plugin sourceExported the new environment variable
TANZU_CLI_PRIVATE_PLUGIN_DISCOVERY_IMAGES
by pointing it to the additional repositories andtanzu plugin search
command shows the additional plugins as well.Installing the plugin from the additional plugin source was successful
Release note
Additional information
Special notes for your reviewer