-
Notifications
You must be signed in to change notification settings - Fork 345
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
Refactor image client to not be E2E specific #1057
Refactor image client to not be E2E specific #1057
Conversation
29e694f
to
d1ee549
Compare
Codecov Report
@@ Coverage Diff @@
## master #1057 +/- ##
=========================================
+ Coverage 48.16% 49.86% +1.7%
=========================================
Files 78 78
Lines 5633 5613 -20
=========================================
+ Hits 2713 2799 +86
+ Misses 2762 2649 -113
- Partials 158 165 +7
Continue to review full report at Codecov.
|
0a01f5d
to
fcd1f01
Compare
AddE2ERegistryConfigFlag(&flags.e2eRegistryConfig, pushCmd.Flags()) | ||
AddKubeconfigFlag(&flags.kubeconfig, pushCmd.Flags()) | ||
AddPluginFlag(&flags.plugin, pushCmd.Flags()) | ||
// TODO(bridget): This won't be required when dealing with other plugins |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets make a follow up issue for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created #1059.
The existing client for handling plugin images assumed that the images were for the e2e plugin. We are trying to add support for other images so we need to make the image client more generic. This change refactors the image client to deal with image names rather than the internal Kubernetes image `Config` type. Signed-off-by: Bridget McErlean <bmcerlean@vmware.com>
fcd1f01
to
9520411
Compare
@@ -89,12 +89,12 @@ func NewRegistryList(repoConfig, k8sVersion string) (*RegistryList, error) { | |||
|
|||
fileContent, err := ioutil.ReadFile(repoConfig) | |||
if err != nil { | |||
panic(fmt.Errorf("Error reading '%v' file contents: %v", repoConfig, err)) | |||
return nil, fmt.Errorf("Error reading '%v' file contents: %v", repoConfig, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
What this PR does / why we need it:
The existing client for handling plugin images assumed that the images
were for the e2e plugin. We are trying to add support for other images
so we need to make the image client more generic. This change refactors
the image client to deal with image names rather than the internal
Kubernetes image
Config
type.Signed-off-by: Bridget McErlean bmcerlean@vmware.com
Which issue(s) this PR fixes
Special notes for your reviewer:
Creating this as a Draft PR for now to check coverage/tests