-
Notifications
You must be signed in to change notification settings - Fork 325
zones: initial implementation of Zones interface #143
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
Conversation
Hi @nicolehanjing. 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 Once the patch is verified, the new status will be reflected by the 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: nicolehanjing The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@nicolehanjing: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
/ok-to-test |
bd03fc1
to
a22f644
Compare
a22f644
to
7bef600
Compare
@@ -138,32 +139,79 @@ func (i *instances) InstanceMetadata(ctx context.Context, node *v1.Node) (*cloud | |||
// getInstance returns the instance if the instance with the given node info still exists. | |||
// If false an error will be returned, the instance will be immediately deleted by the cloud controller manager. | |||
func (i *instances) getInstance(ctx context.Context, node *v1.Node) (*ec2.Instance, error) { |
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.
broke this function into 2 functinos: getInstanceByProviderID
& getInstanceByPrivateDNSName
since GetZoneByProviderID
and GetZoneByNodeName
can direcly call the corresponding function to get instance info
7bef600
to
8568537
Compare
) | ||
|
||
// newZones returns an implementation of cloudprovider.Zones | ||
// TODO: |
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.
@andrewsykim added a TODO note here
/close |
@nicolehanjing: Closed this PR. In response to this:
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. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This is a first pass at implementing Zones.
Verified after node registration, the node has labels with zone/region information:
Which issue(s) this PR fixes:
Part of #125
Special notes for your reviewer:
TODO:
We should add zones / region support via InstancesV2 since kubernetes/kubernetes#93569 was merged in v1.20, where zone/region is just added to InstanceMetadata and implemented as part of InstancesV2
Will update zones after v1.20
Does this PR introduce a user-facing change?: