Skip to content

Use PreferDriver instead of PreferProtocol: #308

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

Merged

Conversation

jacobweinstock
Copy link
Member

Description

The API spec defines PreferredOrder to be the driver name not the protocol name. This causes the "gofish" provider to not change the order as that is the driver name not the protocol. The protocol is "redfish". Changing the implementation to use PreferDriver is chosen so as not to have to change the API spec validation.

Why is this needed

Fixes: #

How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • added unit or e2e tests
  • provided instructions on how to upgrade

The API spec defines PreferredOrder to be the driver
name not the protocol name. This causes the "gofish"
provider to not change the order as that is the driver
name not the protocol. The protocol is "redfish".
Changing the implementation to use PreferDriver is
chosen so as not to have to change the API spec validation.

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
Copy link

codecov bot commented Mar 28, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 47.02%. Comparing base (75fb842) to head (9d0406e).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
controller/client.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #308   +/-   ##
=======================================
  Coverage   47.02%   47.02%           
=======================================
  Files          11       11           
  Lines        1361     1361           
=======================================
  Hits          640      640           
  Misses        664      664           
  Partials       57       57           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jacobweinstock jacobweinstock merged commit 61d8853 into tinkerbell:main Mar 28, 2025
8 of 9 checks passed
@jacobweinstock jacobweinstock deleted the fix-rufio-preferred-order branch March 28, 2025 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant