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

Extend examples of subnet parameter #4199

Merged
merged 2 commits into from
Feb 2, 2018
Merged

Conversation

dictvm
Copy link
Contributor

@dictvm dictvm commented Jan 5, 2018

The parameter subnets isn't well named in my opinion. I was expecting it to require the name of a AWS subnet until I checked the configuration of the already existing default-InstanceGroup. Only then I noticed that subnets was meant to be the availability zone or a list of AZs. This change is supposed to make that more obvious.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 5, 2018
@chrislovecnm
Copy link
Contributor

/assign @mikesplain

@mikesplain
Copy link
Contributor

mikesplain commented Jan 5, 2018

Hi @dictvm thanks for the contribution!

The file you changed is actually auto generated by from https://github.com/kubernetes/kops/blob/master/cmd/kops/create_ig.go#L101.

Please follow these steps:

  1. Update the go file
  2. Run make gen-cli-docs
  3. Check in the results

Thanks again!

Copy link
Contributor

@mikesplain mikesplain left a comment

Choose a reason for hiding this comment

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

See my note above, thanks for the fix. Take a look in https://github.com/kubernetes/kops/tree/master/docs/development if you need help setting up your development environment or give us a shout here! Thanks again!

@k8s-ci-robot k8s-ci-robot added area/documentation and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 5, 2018
@mikesplain
Copy link
Contributor

/area documentation
/ok-to-test

@mikesplain
Copy link
Contributor

@dictvm Any update on this? We always love new contributors so keep us updated! Thanks!

@dictvm
Copy link
Contributor Author

dictvm commented Jan 17, 2018

I'm sorry, I'm not sure if I've done this correctly. I have now updated the docs and the code, tested it locally and I have pushed everything into the branch patch-1. If I had known earlier that the docs are derived from the CLI code, I wouldn't have bothered to just edit the file on Github. Sorry for the confusion, I'll pay more attention next time.

@mikesplain
Copy link
Contributor

@dictvm Hey no worries! Looks good, only issue now is your odd second commit. Would you mind squashing these commits?

@dictvm
Copy link
Contributor Author

dictvm commented Jan 18, 2018

@mikesplain I tried to fix this today, but my git-foo wasn't strong so I ended up with two broken local (detached) branches and merge conflicts. Not sure what went wrong there. I'll try again tomorrow.

I really screwed this up.

@mikesplain
Copy link
Contributor

mikesplain commented Jan 18, 2018

@dictvm Oh no! That's no fun, remember after rebase you'll have to git push --force to your fork, unless you're using a tool to hide it. Others may have an easier workflow but mine is:

# 2 is the number of commits to modify
git rebase -i @~2
# In the editor swap the second commit from pick to fixup
git push --force <your fork>

@chrislovecnm
Copy link
Contributor

/retest

Make it more obvious which input is expected.
@dictvm
Copy link
Contributor Author

dictvm commented Jan 29, 2018

Alright, thanks for your help @mikesplain, I hope this is correct now.

@mikesplain
Copy link
Contributor

Thanks @dictvm!
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 30, 2018
@KashifSaadat
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dictvm, KashifSaadat, mikesplain

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 2, 2018
@k8s-ci-robot k8s-ci-robot merged commit dbc81d2 into kubernetes:master Feb 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/documentation cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants