Skip to content

Refactor BIOSVersion reconciler#550

Merged
afritzler merged 2 commits intomainfrom
enh/biosversion
Dec 5, 2025
Merged

Refactor BIOSVersion reconciler#550
afritzler merged 2 commits intomainfrom
enh/biosversion

Conversation

@afritzler
Copy link
Member

Proposed Changes

  • Refactor BIOSVersion reconciler
  • Extract helper methods
  • Use global conditions accessor

Comment on lines +44 to +56
BIOSVersionFinalizer = "metal.ironcore.dev/biosversion"
biosVersionUpgradeIssued = "BIOSVersionUpgradeIssued"
biosVersionUpgradeCompleted = "BIOSVersionUpgradeCompleted"
biosVersionUpgradeRebootServerPowerOn = "BIOSVersionUpgradePowerOn"
biosVersionUpgradeRebootServerPowerOff = "BIOSVersionUpgradePowerOff"
biosVersionUpgradeVerficationCondition = "BIOSVersionUpgradeVerification"
biosVersionFinalizer = "metal.ironcore.dev/biosversion"
biosVersionUpgradeIssued = "BIOSVersionUpgradeIssued"
biosVersionUpgradeCompleted = "BIOSVersionUpgradeCompleted"
biosVersionUpgradeRebootServerPowerOn = "BIOSVersionUpgradePowerOn"
biosVersionUpgradeRebootServerPowerOff = "BIOSVersionUpgradePowerOff"
biosVersionUpgradeVerificationCondition = "BIOSVersionUpgradeVerification"
biosUpgradeIssuedReason = "UpgradeIssued"
biosUpgradeIssueReason = "IssueBIOSUpgradeFailed"
rebootPowerOffReason = "RebootPowerOff"
rebootPowerOnReason = "RebootPowerOn"
biosVersionVerifiedReason = "VerifiedBIOSVersionUpdate"
biosVersionVerifyReason = "VerifyBIOSVersionUpdate"
biosUpgradeTaskFailedReason = "BiosUpgradeTaskFailed"
biosVersionUpgradeTaskCompletedReason = "taskCompleted"
Copy link
Member Author

Choose a reason for hiding this comment

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

@nagadeesh-nagaraja we need to rework the condition reasons and types here to have a more homogeneous experience. I just factored out the constants here for the moment.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, we need to.
we had discussed this in one of the meeting on thrusdays..

i took up for one of the controllers here: https://github.com/ironcore-dev/metal-operator/pull/547/files

I thought the agreed format was
BIOSVersionCondition ?

that is what I did for BIOSSettings.

if we are going with Conditions<task/type>, Reason<task/type>, I am okay with that as well. but we might just have done some duplicate work :D

Copy link
Member Author

Choose a reason for hiding this comment

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

I updated the conditions and reasons for the BIOSVersion reconciler.

@afritzler afritzler merged commit 49efb97 into main Dec 5, 2025
14 checks passed
@afritzler afritzler deleted the enh/biosversion branch December 5, 2025 12:35
@github-project-automation github-project-automation bot moved this to Done in Roadmap Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants