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

[WIP] Add ISO mounting to Workflow boot options #1008

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jacobweinstock
Copy link
Member

@jacobweinstock jacobweinstock commented Oct 9, 2024

Description

This is a work in progress. Add ISO mounting capabilities to Workflow boot options.

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

@jacobweinstock jacobweinstock added the do-not-merge Signal to Mergify to block merging of the PR. label Oct 9, 2024
Copy link

codecov bot commented Oct 9, 2024

Codecov Report

Attention: Patch coverage is 28.33333% with 215 lines in your changes missing coverage. Please review.

Project coverage is 28.59%. Comparing base (f83a8c9) to head (cdd0ad7).

Files with missing lines Patch % Lines
internal/deprecated/workflow/pre.go 0.00% 68 Missing ⚠️
internal/deprecated/workflow/hardware.go 9.52% 54 Missing and 3 partials ⚠️
internal/deprecated/workflow/job.go 63.06% 30 Missing and 11 partials ⚠️
internal/deprecated/workflow/reconciler.go 24.24% 24 Missing and 1 partial ⚠️
internal/deprecated/workflow/post.go 0.00% 22 Missing ⚠️
internal/server/kubernetes_api_workflow.go 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1008      +/-   ##
==========================================
- Coverage   30.06%   28.59%   -1.47%     
==========================================
  Files          71       74       +3     
  Lines        3739     3840     +101     
==========================================
- Hits         1124     1098      -26     
- Misses       2539     2665     +126     
- Partials       76       77       +1     

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

These updates allow for ISO mounting as a
boot option.

Signed-off-by: Jacob Weinstock <[email protected]>
Use STATE_PREPARING and STATE_POST. This
allows us to run operations in a specific
order in the state flow.

Refactor toggling Hardware allowPXE to be
more understandable.

Fix deleteExisting. It wasn't deleting existing
jobs correctly.

Instead of doing a static requeue of 5 seconds,
use an exponential backoff. All backoff durations
are less than 10seconds.

Move condition setting into toggleHardware for
consistentcy with the handleJob.

Make job.bmc names unique per job type (netboot, iso, etc).

Signed-off-by: Jacob Weinstock <[email protected]>
Signed-off-by: Jacob Weinstock <[email protected]>
Signed-off-by: Jacob Weinstock <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge Signal to Mergify to block merging of the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant