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

resize: Enable resource type/name syntax #8618

Merged
merged 1 commit into from May 22, 2015
Merged

resize: Enable resource type/name syntax #8618

merged 1 commit into from May 22, 2015

Conversation

0xmichalis
Copy link
Contributor

@@ -65,7 +65,7 @@ func NewCmdResize(f *cmdutil.Factory, out io.Writer) *cobra.Command {

func RunResize(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error {
count := cmdutil.GetFlagInt(cmd, "replicas")
if len(args) != 2 || count < 0 {
if count < 0 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to either handle multiple infos or return an error if there is more than one (down in r.Infos()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Also don't allow more than one objects in commands it makes sense
@k8s-bot
Copy link

k8s-bot commented May 21, 2015

Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist")

If this message is too spammy, please complain @ixdy.

@smarterclayton
Copy link
Contributor

LGTM

@smarterclayton
Copy link
Contributor

ok to test

smarterclayton added a commit that referenced this pull request May 22, 2015
resize: Enable resource type/name syntax
@smarterclayton smarterclayton merged commit 3f66321 into kubernetes:master May 22, 2015
@smarterclayton smarterclayton added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 22, 2015
@smarterclayton smarterclayton self-assigned this May 22, 2015
@0xmichalis 0xmichalis deleted the resize-enable-slash-syntax branch May 22, 2015 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants