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

Add providerID annotation to machine object #86

Closed

Conversation

vikaschoudhary16
Copy link

@vikaschoudhary16 vikaschoudhary16 commented Oct 28, 2018

This is annotation based solution for https://jira.coreos.com/browse/CLOUD-206 until upstream PR for adding ProviderID in MachineStatus gets merged.

xref:frobware/autoscaler#1

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 28, 2018
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: vikaschoudhary16

If they are not already assigned, you can assign the PR to them by writing /assign @vikaschoudhary16 in a comment when ready.

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

@@ -516,8 +555,12 @@ func (a *Actuator) Update(cluster *clusterv1.Cluster, machine *clusterv1.Machine
// but instance could be deleted between the two calls.
if len(instances) == 0 {
mLog.Warnf("attempted to update machine but no instances found")
err := a.updateProviderID(machine, nil, mLog)
Copy link
Member

Choose a reason for hiding this comment

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

Given the provider ID does not change very often, it's fine to update entire machine object followed by updating just its status.

@openshift-bot
Copy link

@vikaschoudhary16: PR needs rebase.

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.

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 6, 2018
@openshift-ci-robot
Copy link

@vikaschoudhary16: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/unit 5b82c0e link /test unit
ci/prow/e2e-aws 5b82c0e link /test e2e-aws
ci/prow/rhel-images 5b82c0e link /test rhel-images

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@frobware
Copy link

As we now do the node <=> machine mapping based on the "machine" annotation on the node I'm closing this as it was trying to provide the same thing. Fixed for the autoscaler in openshift/kubernetes-autoscaler#14

@frobware frobware closed this Dec 13, 2018
vikaschoudhary16 pushed a commit to vikaschoudhary16/cluster-api-provider-aws that referenced this pull request Jan 16, 2019
Signed-off-by: Vince Prignano <vince@vincepri.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants