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

Add additional device naming formats to formatPartition template func #771

Merged
merged 2 commits into from
Jul 17, 2023

Conversation

jacobweinstock
Copy link
Member

Description

This allows for using the formatPartition func for more device types. vd* is a device created by virtio. hd* for legacy IDE hard disks.

Also use hello-world image instead of alpine in the TestDockerImageNotPresent unit test.

Why is this needed

Fixes: #770

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 TestDockerImageNotPresent can fail if the alpine
image is being used by a started container. The hello-world
image might be a safer option.

Signed-off-by: Jacob Weinstock <[email protected]>
This allows for using the formatPartition func for more
device types. `vd*` is a device created by virtio.
`hd*` for legacy IDE hard disks.

Signed-off-by: Jacob Weinstock <[email protected]>
@codecov
Copy link

codecov bot commented Jul 17, 2023

Codecov Report

Merging #771 (d75b9d8) into main (7c4c6a0) will not change coverage.
The diff coverage is 0.00%.

❗ Current head d75b9d8 differs from pull request most recent head 7b5ba2b. Consider uploading reports for the commit 7b5ba2b to get more accurate results

@@           Coverage Diff           @@
##             main     #771   +/-   ##
=======================================
  Coverage   51.90%   51.90%           
=======================================
  Files          32       32           
  Lines        1441     1441           
=======================================
  Hits          748      748           
  Misses        650      650           
  Partials       43       43           
Impacted Files Coverage Δ
internal/workflow/template_funcs.go 0.00% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@jacobweinstock jacobweinstock added the ready-to-merge Signal to Mergify to merge the PR. label Jul 17, 2023
@mergify mergify bot merged commit 1a0edeb into tinkerbell:main Jul 17, 2023
@jacobweinstock jacobweinstock deleted the add-vda branch July 17, 2023 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Signal to Mergify to merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Agent] agent docker runtime unit test require docker
2 participants