feat(OKDInstallation): Implemented bootstrap of okd worker node, added features to allow both control plane and worker node to use the same bootstrap_okd_node score #198

Merged
wjro merged 2 commits from feat/okd-nodes into master 2025-12-10 19:27:51 +00:00
Owner
No description provided.
wjro added 1 commit 2025-12-10 17:16:29 +00:00
johnride requested changes 2025-12-10 17:28:06 +00:00
Dismissed
johnride left a comment
Owner

Quick review done, overall looks pretty good but deserves some improvements, mostly naming.

Quick review done, overall looks pretty good but deserves some improvements, mostly naming.
@@ -79,2 +71,3 @@
topology: &HAClusterTopology,
) -> Result<Outcome, InterpretError> {
self.render_and_reboot().await?;
OKDNodeInterpret::new(HostRole::Worker)
Owner

On passe par le score et on call .execute dessus directement. On n'instance pas d'Interpret directement en dehors du get_interpret d'un score.

Ca permet d'instrumenter les scores et suivre ce qui se passe comme il faut.

On passe par le score et on call `.execute` dessus directement. On n'instance pas d'Interpret directement en dehors du get_interpret d'un score. Ca permet d'instrumenter les scores et suivre ce qui se passe comme il faut.
@@ -0,0 +26,4 @@
};
#[derive(Debug, Clone, Serialize, new)]
pub struct OKDNodeScore {
Owner

Le nom ne dit pas ce que ca fait. OKDNodeScore ce n'est pas un nom assez descriptif. Quelque chose comme PrepareOKDNodeInstallationScore ou AddNodeToOKDClusterScore. Bref, je n'ai aucune idee de ce que ca fait, ca m'obliger a aller lire le code ce qui ralentis tout ceux qui vont lire ce code dans le futur.

When you are naming consider below 3 questions when you are naming variables, functions or classes and try to get the answers via the name;

Why it exists?
What does it do?
How it is used?

https://medium.com/@pabashani.herath/clean-code-naming-conventions-4cac223de3c6

Le nom ne dit pas ce que ca fait. OKDNodeScore ce n'est pas un nom assez descriptif. Quelque chose comme PrepareOKDNodeInstallationScore ou AddNodeToOKDClusterScore. Bref, je n'ai aucune idee de ce que ca fait, ca m'obliger a aller lire le code ce qui ralentis tout ceux qui vont lire ce code dans le futur. > When you are naming consider below 3 questions when you are naming variables, functions or classes and try to get the answers via the name; > > Why it exists? > What does it do? > How it is used? https://medium.com/@pabashani.herath/clean-code-naming-conventions-4cac223de3c6
Author
Owner

Je l'ai modifié pour avoir le nom OKDNodeInstallationScore, je croix que c'est mieux aligné avec l'info partagé en haut

Je l'ai modifié pour avoir le nom `OKDNodeInstallationScore`, je croix que c'est mieux aligné avec l'info partagé en haut
@@ -0,0 +264,4 @@
// 4. Reboot the nodes to start the OS installation.
self.reboot_targets(&nodes).await?;
// TODO: Implement a step to wait for the control plane nodes to join the cluster
Owner

Fix this comment, not accurate in the context.

Fix this comment, not accurate in the context.
@@ -0,0 +54,4 @@
}
//TODO unsure if this is to be implemented here or not
impl OKDRoleProperties for StorageRole {
Owner

For now we can completely delete the storage role, it is not used. We will use worker nodes for storage, and we will autodetect their storage capabilities and orchestrate at a higher level than the OKD role.

For now we can completely delete the storage role, it is not used. We will use worker nodes for storage, and we will autodetect their storage capabilities and orchestrate at a higher level than the OKD role.
wjro added 1 commit 2025-12-10 19:20:34 +00:00
johnride approved these changes 2025-12-10 19:26:26 +00:00
johnride left a comment
Owner

LGTM

LGTM
wjro merged commit bfdb11b217 into master 2025-12-10 19:27:51 +00:00
wjro deleted branch feat/okd-nodes 2025-12-10 19:27:52 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NationTech/harmony#198
No description provided.