Skip to content

feat: add no-pull label for containers #1574

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
merged 3 commits into from
Mar 12, 2023

Conversation

gilbsgilbs
Copy link
Contributor

@gilbsgilbs gilbsgilbs commented Mar 6, 2023

This pull request adds support for a "no-pull" label (com.centurylinklabs.watchtower.no-pull) to enable the global --no-pull functionality on a per-container basis.

It is based off @nedzadalibegovic's work in #1415, but tests and documentation were missing in their PR, so I added them. Note that I didn't add tests for IsContainerStale function because this function is untested in the existing codebase, and it is tedious to test (which is probably the reason why it's untested yet).

Fixes #1256
Closes #1415

@gilbsgilbs gilbsgilbs requested a review from simskij as a code owner March 6, 2023 10:30
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulations on opening your first pull request! We'll get back to you as soon as possible. In the meantime, please make sure you've updated the documentation to reflect your changes and have added test automation as needed. Thanks! 🙏🏼

@codecov
Copy link

codecov bot commented Mar 7, 2023

Codecov Report

Patch coverage: 90.90% and project coverage change: +0.13 🎉

Comparison is base (6ace7bd) 66.77% compared to head (558cde3) 66.91%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1574      +/-   ##
==========================================
+ Coverage   66.77%   66.91%   +0.13%     
==========================================
  Files          25       25              
  Lines        2366     2376      +10     
==========================================
+ Hits         1580     1590      +10     
  Misses        685      685              
  Partials      101      101              
Impacted Files Coverage Δ
pkg/container/client.go 41.29% <0.00%> (ø)
pkg/container/metadata.go 57.89% <ø> (ø)
pkg/container/container.go 54.44% <100.00%> (+2.67%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@piksel piksel merged commit bbbe041 into containrrr:main Mar 12, 2023
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.

Proposal: Specify no-pull per service/container via label
3 participants