Ignore nodes outside configured region#1372
Conversation
|
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
This issue is currently awaiting triage. If cloud-provider-aws contributors determine this is a relevant issue, they will accept it by applying the The DetailsInstructions 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. |
|
Welcome @benturnkey! |
|
Hi @benturnkey. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
| Name: "foreign-node", | ||
| }, | ||
| Spec: v1.NodeSpec{ | ||
| ProviderID: "aws:///us-east-1c/1abc-2def/i-abc", |
There was a problem hiding this comment.
What does 1abc-2def represent here?
There was a problem hiding this comment.
Additional custom identifiers. We only ensure region and instance are valid for operation.
There was a problem hiding this comment.
Are custom identifiers supported by the CCM/Kubelet? How do other parts of the CCM already handle the provider ID, is there existing logic that parses the provider ID that we could re-use?
There was a problem hiding this comment.
Additional identifiers could be used by Fargate or Outpost.
| // Assume a bare aws instance id (i-1234...) | ||
| // Build a URL with an empty host (AZ) |
There was a problem hiding this comment.
If the instance ID is bare, will it ever have a region prefix? When/why would the instance ID be bare?
There was a problem hiding this comment.
If the instance ID is bare, will it ever have a region prefix?
No, it was an attempt to coerce the bare instance into something parsable without erroring.
When/why would the instance ID be bare?
Just trying to cover any case.
There was a problem hiding this comment.
If the instance ID isn't prefixed, and isn't prefixed aws://, I would expect we just ignore the node rather than trying to coerce anything no?
There was a problem hiding this comment.
I mean, when you put it that way, yeah.
I'll push a change.
97f8a0e to
02b1cb7
Compare
02b1cb7 to
9ab8eb2
Compare
|
@benturnkey There are a lot of commits in this PR which don't look like they are relevant to the actual goal of the PR, what's going on with those other commits? |
9ab8eb2 to
7058901
Compare
Yeah, sorry, I reused the branch for some other testing. Reverted 🙏 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
The AWS cloud provider now ignores nodes whose
providerIDpoints to a different AWS region than the controller's configured region when checking instance existence or shutdown state.Which issue(s) this PR fixes:
Addresses #939 by preventing controllers from interfering with nodes it doesn't own.
Special notes for your reviewer:
Does this PR introduce a user-facing change?: