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

Find Nodes by hostname #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Find Nodes by hostname #38

wants to merge 1 commit into from

Conversation

honza
Copy link
Member

@honza honza commented Feb 20, 2025

We currently support finding Nodes:

  • by ProviderID when there is a cloud provider present
  • by label when we use kubeadm

But if neither cloud provider nor kubeadm is present, there is no way to
find the Nodes and assign a ProviderID to them.

Here, we add a new method: matching the hostname.

We change the meaning of IsProvisioned to add KubernetesNodeReady. This
allows us to set the Metal3Machine as ready and give it a ProviderID
while still trying to find Nodes by hostname and set the ProviderID
on them.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 20, 2025
Copy link

openshift-ci bot commented Feb 20, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: honza

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 20, 2025
@honza honza force-pushed the wip-nodeless branch 2 times, most recently from e6c8c18 to 7ea5290 Compare February 24, 2025 21:07
@honza honza changed the title WIP nodeless Set ProviderID on a Node later Feb 24, 2025
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 24, 2025
@honza honza force-pushed the wip-nodeless branch 8 times, most recently from cefd980 to 6a8db86 Compare February 27, 2025 19:36
We currently support finding Nodes:

- by ProviderID when there is a cloud provider present
- by label when we use kubeadm

But if neither cloud provider nor kubeadm is present, there is no way to
find the Nodes and assign a ProviderID to them.

Here, we add a new method: matching the hostname.

We change the meaning of IsProvisioned to add KubernetesNodeReady.  This
allows us to set the Metal3Machine as ready and give it a ProviderID
while still trying to find Nodes by hostname and set the ProviderID
on them.
@honza honza changed the title Set ProviderID on a Node later Find Nodes by hostname Feb 27, 2025
Copy link

openshift-ci bot commented Feb 28, 2025

@honza: all tests passed!

Full PR test history. Your PR dashboard.

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

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant