-
Notifications
You must be signed in to change notification settings - Fork 1.6k
🌱 Add unit tests for alpha/internal/update #4931
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 unit tests for alpha/internal/update #4931
Conversation
|
Welcome @cmallikarjunah! |
Hi @cmallikarjunah. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
7c5b2d9
to
c072261
Compare
@@ -75,7 +75,7 @@ func (opts *Update) defineFromVersion(config store.Store) (string, error) { | |||
|
|||
func (opts *Update) defineToVersion() string { | |||
if len(opts.ToVersion) != 0 { | |||
if !strings.HasPrefix(opts.FromVersion, "v") { | |||
if !strings.HasPrefix(opts.ToVersion, "v") { |
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.
Could you please rebase with master?
So that we have no this change it is fixed and merged now 👍
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.
Sure Camila, will do
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.
@camilamacedo86 I have rebased. But the code in master still checks prefix for opts.FromVersion in function defineToVersion(). Can you re-check and confirm if this change is not needed?
734cfa4
to
9612be0
Compare
e83c126
to
6b552e5
Compare
6b552e5
to
8bf4c3a
Compare
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.
Great work 🥇
To be fixed, for we can merge, I thinkit is only this one: https://github.com/kubernetes-sigs/kubebuilder/pull/4931/files#r2233127738
However, I think we need to find a better way to create those temporary directories.
However, it is for a follow-up. No worry, see: https://github.com/kubernetes-sigs/kubebuilder/pull/4931/files#r2233130602.
8bf4c3a
to
fefd210
Compare
Add pkg/cli/alpha/internal/update/prepare_test.go Add pkg/cli/alpha/internal/update/update_test.go Add pkg/cli/alpha/internal/update/validate_test.go Add pkg/cli/alpha/internal/update/utils_test.go
fefd210
to
15b7a1b
Compare
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.
/lgtm
/ok-to-test
Great work 🚀
Well done !!!
Thank you for the contribution 🥇
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, cmallikarjunah, mayuka-c The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Issue: 4925
Added unit tests for the following alpha internal update files:
pkg/cli/alpha/internal/update/prepare_test.go
pkg/cli/alpha/internal/update/update_test.go
pkg/cli/alpha/internal/update/validate_test.go
pkg/cli/alpha/internal/update/utils_test.go