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 command to output default image registry config #1022

Merged

Conversation

zubron
Copy link
Contributor

@zubron zubron commented Nov 29, 2019

What this PR does / why we need it:
This adds the subcommand default-image-config to gen to output the
default image registry config used with the images and run commands.
It will generate the config based on the version of Kubernetes that is
configured for use.

This simplifies the process for users as the registries for the E2E
tests differ for different versions of Kubernetes.

Signed-off-by: Bridget McErlean bmcerlean@vmware.com

Which issue(s) this PR fixes

Special notes for your reviewer:
I included some tests for checking that the version verification worked however I didn't write tests to check the resulting registry lists as these seemed to just duplicate the code. I'm happy to add them though if it seems worth it.

Release note:

Sonobuoy can now output the default configuration for the registries used by the `e2e` plugin using the new command `gen default-image-config`. This will output the default configuration for the version of Kubernetes that is being tested. This configuration is required for using the `images` command.

This adds the subcommand `default-image-config` to `gen` to output the
default image registry config used with the `images` and `run` commands.
It will generate the config based on the version of Kubernetes that is
configured for use.

This simplifies the process for users as the registries for the E2E
tests differ for different versions of Kubernetes.

Signed-off-by: Bridget McErlean <bmcerlean@vmware.com>
@zubron zubron force-pushed the add-default-repo-config-command-1010 branch from 19aaebf to ec8166b Compare November 29, 2019 20:54
@codecov-io
Copy link

codecov-io commented Nov 29, 2019

Codecov Report

Merging #1022 into master will increase coverage by 0.08%.
The diff coverage is 56.94%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1022      +/-   ##
==========================================
+ Coverage   48.33%   48.41%   +0.08%     
==========================================
  Files          76       77       +1     
  Lines        5437     5498      +61     
==========================================
+ Hits         2628     2662      +34     
- Misses       2651     2675      +24     
- Partials      158      161       +3
Impacted Files Coverage Δ
cmd/sonobuoy/app/root.go 93.1% <100%> (+0.24%) ⬆️
cmd/sonobuoy/app/gen_image_repo_config.go 31.03% <31.03%> (ø)
pkg/image/manifest.go 46.47% <73.8%> (+41.47%) ⬆️
pkg/plugin/aggregation/aggregator.go 72.67% <0%> (-3.11%) ⬇️
cmd/sonobuoy/app/status.go 57.54% <0%> (-1.89%) ⬇️

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 44be251...ec8166b. Read the comment docs.

@zubron zubron merged commit cff00ca into vmware-tanzu:master Dec 2, 2019
@zubron zubron deleted the add-default-repo-config-command-1010 branch December 2, 2019 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add command to generate default config for image repos
3 participants