Update test central repo with some test Central Config #700
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 starts things off for the implementation of the Central Configuration feature of #699.
The first commit of the PR updates the test central repository images to contain a new
central_config.yaml
file.This will make it simpler to work in the implementation of the Central Configuration feature.
The second commit updates the CLI to include the new
central_config.yaml
when setting up the plugin source cache.With this PR, whenever the CLI uses any of the test central repo images a new file
central_config.yaml
will be part of the$HOME/.cache/tanzu/plugin_inventory/default
directory.Which issue(s) this PR fixes
Part of #699
Describe testing done for PR
Make sure things still work with the real central repo.
Now try with the new test central:small image
Below we makes sure that when the CLI points to each image in the test repo, we now get a
central_config.yaml
file.Release note
Additional information
Special notes for your reviewer
There are no unit tests for downloading the OCI image from the Central Repo.
But we will have E2E tests by the end of the feature, which will cover this.