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
feat(helm): adding --name to update single repo #5182
Conversation
fd583bc
to
8ddec21
Compare
68d4b9d
to
31d2e3a
Compare
8953004
to
4b10510
Compare
@bacongobbler / @adamreese could you review this? |
Rather than adding a Example: |
@adamreese I agree that removing |
@adamreese I've updated it to |
@adamreese @bacongobbler ping |
@adamreese @bacongobbler pinging again |
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.
@DS-MS Thanks for the changes. It is nearly there but it needs some updates as follows:
- Do you mind updating the command
use
to include "[repo_name]" (https://github.com/helm/helm/blob/master/cmd/helm/repo_update.go#L56) - Do you mind adding unit test to https://github.com/helm/helm/blob/master/cmd/helm/repo_update_test.go
@hickeyma Updated the PR |
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.
Thanks @DS-MS for the updates. I would appreciate if you could add a positive test as described in the inline comment.
@@ -132,3 +132,29 @@ func TestUpdateCmdStrictFlag(t *testing.T) { | |||
t.Errorf("Expected 'Unable to get an update', got %q", got) | |||
} | |||
} | |||
|
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.
Do you mind adding a test that tests for a successful update with a single repo name?
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.
@hickeyma added.
2601f0c
to
5bea51a
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.
Thanks for adding the positive test. Some nits on it. When you deliver changes, can you also squash the changes on this PR?
0a94c1c
to
15d5854
Compare
@hickeyma updated |
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.
Nearly there. Just small nit on caps on repo name for consistency.
cmd/helm/repo_update.go
Outdated
@@ -53,12 +62,15 @@ func newRepoUpdateCmd(out io.Writer) *cobra.Command { | |||
update: updateCharts, | |||
} | |||
cmd := &cobra.Command{ | |||
Use: "update", | |||
Use: "update [repo_name]", |
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.
:s/repo_name/REPO_NAME
for consistency with commands like helm get
, helm install
etc.
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.
done
15d5854
to
b0b282f
Compare
Signed-off-by: Deepak Sattiraju <desattir@microsoft.com> Lint Signed-off-by: ds-ms <desattir@microsoft.com> make docs Signed-off-by: ds-ms <desattir@microsoft.com> make docs Signed-off-by: ds-ms <desattir@microsoft.com> Signed-off-by: Deepak Sattiraju <desattir@microsoft.com> using args instead of --name Signed-off-by: ds-ms <desattir@microsoft.com> Adding [repo_name] to use Signed-off-by: ds-ms <desattir@microsoft.com> Adding test Signed-off-by: ds-ms <desattir@microsoft.com> Adding positive test case Signed-off-by: ds-ms <desattir@microsoft.com> lint Signed-off-by: ds-ms <desattir@microsoft.com> Renaming Signed-off-by: ds-ms <desattir@microsoft.com> Updating repo_name to REPO_NAME feat(helm): adding --name to update single repo Signed-off-by: Deepak Sattiraju <desattir@microsoft.com> Lint Signed-off-by: ds-ms <desattir@microsoft.com> make docs Signed-off-by: ds-ms <desattir@microsoft.com> make docs Signed-off-by: ds-ms <desattir@microsoft.com> Signed-off-by: Deepak Sattiraju <desattir@microsoft.com> using args instead of --name Signed-off-by: ds-ms <desattir@microsoft.com> Adding [repo_name] to use Signed-off-by: ds-ms <desattir@microsoft.com> Adding test Signed-off-by: ds-ms <desattir@microsoft.com> Adding positive test case Signed-off-by: ds-ms <desattir@microsoft.com> lint Signed-off-by: ds-ms <desattir@microsoft.com> Renaming Signed-off-by: ds-ms <desattir@microsoft.com> Updating repo_name to REPO_NAME
b0b282f
to
c49ba7d
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, thanks.
This is a port to helm v3 of helm#5182. A little more flexible than the v2 version, it allows to specify a list of repositories that should be updated. Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
This is a port to helm v3 of helm#5182. A little more flexible than the v2 version, it allows to specify a list of repositories that should be updated. Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
This is a port to helm v3 of #5182. A little more flexible than the v2 version, it allows to specify a list of repositories that should be updated. Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
This is a port to helm v3 of helm#5182. A little more flexible than the v2 version, it allows to specify a list of repositories that should be updated. Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
This is a port to helm v3 of helm#5182. A little more flexible than the v2 version, it allows to specify a list of repositories that should be updated. Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
What this PR does / why we need it:
fixes #5127
Special notes for your reviewer:
If applicable: