Skip to content

Conversation

pydctw
Copy link
Contributor

@pydctw pydctw commented Aug 26, 2021

What type of PR is this?
/kind feature

What this PR does / why we need it:
Support writing AWS cloud provider tags on pre-existing infrastructure

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes # #2584

Checklist:

  • squashed commits
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

Release note:

Support adding AWS cloud provider tags to pre-existing infrastructure
`kubernetes.io/cluster/<name> = shared` and `kubernetes.io/role/elb = 1` for public subnets
`kubernetes.io/cluster/<name> = shared` and`kubernetes.io/role/internal-elb = 1` for private subnets

@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-priority labels Aug 26, 2021
@k8s-ci-robot
Copy link
Contributor

Welcome @pydctw!

It looks like this is your first PR to kubernetes-sigs/cluster-api-provider-aws 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/cluster-api-provider-aws has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Aug 26, 2021
@k8s-ci-robot
Copy link
Contributor

Hi @pydctw. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 26, 2021
@richardcase
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 27, 2021
@pydctw pydctw force-pushed the tags-on-existing-infra branch from c1c9722 to f716b9a Compare August 27, 2021 14:03
@Ankitasw
Copy link
Member

Ankitasw commented Aug 30, 2021

@pydctw looks like the release note is not written in release note block, that's why bot added do-not-merge/release-note-label-needed. You can try to format it.

@pydctw
Copy link
Contributor Author

pydctw commented Aug 30, 2021

@scottslowe, could you please review if it meets your requirements?

@randomvariable
Copy link
Member

Do we need to make this opt-in? What if you haven't granted permissions to tag subnets, should we block cluster creation entirely?

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Aug 31, 2021
@randomvariable
Copy link
Member

Let's also make the release note more specific about what tag is being added.

@randomvariable
Copy link
Member

/priority important-soon

@k8s-ci-robot k8s-ci-robot added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. and removed needs-priority labels Aug 31, 2021
@randomvariable
Copy link
Member

/area networking

@k8s-ci-robot k8s-ci-robot added the area/networking Issues or PRs related to networking label Aug 31, 2021
@scottslowe
Copy link
Contributor

@pydctw I'm heading out of town on holiday, and wouldn't be much help in a code review anyway (still learning Golang). Happy to test a pre-release build in my test environment when I get back from holiday, if that would help.

@randomvariable
Copy link
Member

@scottslowe that's fine scott. enjoy your holiday!

Add `kubernetes.io/cluster/<name> = shared`, `kubernetes.io/role/internal-elb =
1` to private subnets

Add `kubernetes.io/cluster/<name> = shared`, `kubernetes.io/role/elb = 1` to
public subnets
@pydctw pydctw force-pushed the tags-on-existing-infra branch from f716b9a to f125b76 Compare August 31, 2021 17:51
@pydctw
Copy link
Contributor Author

pydctw commented Aug 31, 2021

Do we need to make this opt-in? What if you haven't granted permissions to tag subnets, should we block cluster creation entirely?

@randomvariable, I updated the PR as discussed. If tagging fails for unmanaged subnets, we record an event and proceed to cluster creation, hence preserving the current behavior. Added a test case named "Unmanaged VPC, 2 existing matching subnets, subnet tagging fails, should succeed" for the case.

@sedefsavas
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 8, 2021
@richardcase
Copy link
Member

Yeah seems good to me as well:

/lgtm

@randomvariable
Copy link
Member

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: randomvariable

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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/networking Issues or PRs related to networking cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants