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

support provider id in kubernetes api format #177

Merged
merged 1 commit into from
Jul 23, 2020

Conversation

gujingit
Copy link
Contributor

No description provided.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jun 15, 2020
@k8s-ci-robot k8s-ci-robot requested review from aoxn and xlgao-zju June 15, 2020 02:29
// Use '.' to separate providerID which looks like 'cn-hangzhou.i-v98dklsmnxkkgiiil7'. The format of "REGION.NODEID"
// providerID
// 1) the id of the instance in the alicloud API. Use '.' to separate providerID which looks like 'cn-hangzhou.i-v98dklsmnxkkgiiil7'. The format of "REGION.NODEID"
// 2) the id for an instance in the kubernetes API, which has 'alicloud://' prefix. e.g. alicloud://cn-hangzhou.i-v98dklsmnxkkgiiil7
Copy link

Choose a reason for hiding this comment

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

We'd better make it like alicloud:///cn-hangzhou/i-v98dklsmnxkkgiiil7, which is consistent with the standard format <cloudProvider>://<optional>/<segments>/<provider id>.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

provider_id in alicloud is like 'cn-hangzhou.i-v98dklsmnxkkgiiil7'. The format is "REGION.NODEID"

Copy link

Choose a reason for hiding this comment

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

OK. Let's keep the original design alicloud://cn-hangzhou.i-v98dklsmnxkkgiiil7 for now. It seems that it can be parsed with
https://github.com/kubernetes-sigs/cluster-api/blob/master/controllers/noderefutil/providerid.go#L47

@kaoet
Copy link

kaoet commented Jun 15, 2020

Fixes #138

@gujingit gujingit force-pushed the feature/providerID branch from e345e95 to dc81029 Compare July 23, 2020 07:42
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign xlgao-zju
You can assign the PR to them by writing /assign @xlgao-zju in a comment when ready.

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

@aoxn aoxn merged commit 401b77b into kubernetes:master Jul 23, 2020
@gujingit gujingit deleted the feature/providerID branch November 16, 2020 02:14
Lyt99 pushed a commit to Lyt99/cloud-provider-alibaba-cloud that referenced this pull request Feb 21, 2023
support provider id in kubernetes api format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants