deckhouse / k8s-image-availability-exporter

Alert if an image used in Kubernetes cannot be pulled from container registry
Apache License 2.0
212 stars 25 forks source link

Allow plain HTTP #102

Closed nabokihms closed 8 months ago

nabokihms commented 8 months ago

Some private registries and registries for testing purposes do not have TLS (and do not need to have). This commit adds a new --allow-plain-http flag named after the ctr cli flag that makes the export fall back for using the HTTP scheme if the HTTPS request is not possible.

Closes https://github.com/deckhouse/k8s-image-availability-exporter/issues/23

codecov[bot] commented 8 months ago

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (211c42c) 20.10% compared to head (e3c958b) 20.10%.

Files Patch % Lines
pkg/registry/checker.go 44.44% 9 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #102 +/- ## ========================================== - Coverage 20.10% 20.10% -0.01% ========================================== Files 4 4 Lines 567 577 +10 ========================================== + Hits 114 116 +2 - Misses 445 452 +7 - Partials 8 9 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.