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

🌱 Update CONTAINER_TOOL evaluation in makefile to warn instead of error #852

Conversation

everettraven
Copy link
Contributor

when unable to find docker or podman as this evaluation results in an error in environments where docker or podman is not installed even when using targets that do not require a container runtime

Description

  • Updates the CONTAINER_TOOL evaluation logic to warn instead of error out when docker or podman are not detected in the path. This makes it so that in environments where neither is installed, running targets that don't require a container runtime can still be run. A caveat is that the targets needing a container runtime will still attempt to run and fail. I believe issuing a warning is a good middle ground to provide a clear reason why a target that requires a container runtime would fail, but am open to suggestions on better ways to approach this.

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

when unable to find docker or podman as this evaluation results in
an error in environments where docker or podman is not installed
even when using targets that do not require a container runtime

Signed-off-by: everettraven <everettraven@gmail.com>
@everettraven everettraven requested a review from a team as a code owner May 13, 2024 18:54
Copy link

netlify bot commented May 13, 2024

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 5130e90
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/664262001d668700087ea28f
😎 Deploy Preview https://deploy-preview-852--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@joelanford joelanford enabled auto-merge May 13, 2024 18:59
@joelanford joelanford added this pull request to the merge queue May 13, 2024
Copy link

codecov bot commented May 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.02%. Comparing base (8e039f3) to head (5130e90).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #852   +/-   ##
=======================================
  Coverage   71.02%   71.02%           
=======================================
  Files          17       17           
  Lines        1301     1301           
=======================================
  Hits          924      924           
  Misses        304      304           
  Partials       73       73           
Flag Coverage Δ
e2e 43.96% <ø> (ø)
unit 63.59% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Merged via the queue into operator-framework:main with commit e9acbd3 May 13, 2024
16 checks passed
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.

None yet

2 participants