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

Remove default value for Hardware.Spec.Metadata.State: #958

Merged

Conversation

jacobweinstock
Copy link
Member

Description

This default value doesn't make sense from a holistic point of view. Apply a Hardware object to a cluster doesn't by default indicate the hardware is in a provisioning state and we should not assume this with a default value. It was added as part of some CAPT refactoring. #669 If CAPT needs this state then the responsibility is on CAPT to set this. Also, this field is no longer used by Smee or CAPT.

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

Copy link

codecov bot commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 28.02%. Comparing base (81fcfe6) to head (45f163e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #958   +/-   ##
=======================================
  Coverage   28.02%   28.02%           
=======================================
  Files          70       70           
  Lines        3486     3486           
=======================================
  Hits          977      977           
  Misses       2447     2447           
  Partials       62       62           

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

This default value doesn't make sense from a holistic
point of view. It was added as part of some CAPT refactoring.
tinkerbell#669
If CAPT needs this state then the responsibility is on CAPT
to set this. Also, this field is no longer used by Smee or
CAPT.

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
@jacobweinstock jacobweinstock merged commit 376c9ae into tinkerbell:main Jul 5, 2024
12 checks passed
@jacobweinstock jacobweinstock deleted the remove-default-hw-state branch July 5, 2024 15:11
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