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

[CA-1.18] #3057 cherry-pick: CAPI: Do not normalize Node IDs outside of CAPI provider #3175

Conversation

detiber
Copy link
Member

@detiber detiber commented Jun 2, 2020

his PR proposes to backport #3057 to the cluster-autoscaler-release-1.18 branch.

From original PR:

When #1866 introduced the CAPI provider, all Provider IDs from nodes were being normalized so that internally, there were no differences (eg some places using normalized, some not)

However, the clusterstateregistry and anything outside of the CPAI provider does not expect the instance IDs to be normalized, and so nodes were being marked as unregistered due to the normalized ID not matching the non-normalized ID coming from the Nodes on the cluster.

This PR makes it so that Instance IDs fetched and passed externally are not normalized, fixing the unregistered node logic in the clusterstateregistry when using the CAPI provider.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 2, 2020
@detiber
Copy link
Member Author

detiber commented Jun 2, 2020

/hold
should not be merged before #3171 and #3172

@k8s-ci-robot k8s-ci-robot requested review from frobware and hardikdr June 2, 2020 16:41
@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 2, 2020
@detiber
Copy link
Member Author

detiber commented Jun 2, 2020

Includes both #3171 and #3172 currently

@detiber
Copy link
Member Author

detiber commented Jun 2, 2020

/area provider/cluster-api

@k8s-ci-robot k8s-ci-robot added the area/provider/cluster-api Issues or PRs related to Cluster API provider label Jun 2, 2020
@detiber
Copy link
Member Author

detiber commented Jun 2, 2020

/assign @elmiko

@elmiko
Copy link
Contributor

elmiko commented Jun 2, 2020

thanks Jason!
/approve

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 2, 2020
@detiber detiber force-pushed the backport-3057-v1.18 branch from 5bf7547 to 9738adb Compare June 3, 2020 14:29
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 3, 2020
@detiber
Copy link
Member Author

detiber commented Jun 3, 2020

/hold cancel

This should be good to go now that the pre-requisite PRs have merged and this has been rebased.

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 3, 2020
@detiber
Copy link
Member Author

detiber commented Jun 3, 2020

/assign @enxebre

@enxebre
Copy link
Member

enxebre commented Jun 4, 2020

/approve

@enxebre
Copy link
Member

enxebre commented Jun 4, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 4, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: elmiko, enxebre

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

@k8s-ci-robot k8s-ci-robot merged commit adb7b42 into kubernetes:cluster-autoscaler-release-1.18 Jun 4, 2020
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/provider/cluster-api Issues or PRs related to Cluster API provider 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/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.

5 participants