fix defaults not handled by yaml configuration

This commit is contained in:
CrazyMax
2023-09-23 12:54:17 +02:00
parent 286af41566
commit b9615bf2db
21 changed files with 146 additions and 282 deletions

View File

@@ -41,7 +41,7 @@ func (c *Client) listPodImage() []model.Image {
Str("ctn_image", ctn.Image).
Msg("Validate image")
image, err := provider.ValidateImage(ctn.Image, metadata(pod, ctn), pod.Annotations, *c.config.WatchByDefault, *c.imageDefaults)
image, err := provider.ValidateImage(ctn.Image, metadata(pod, ctn), pod.Annotations, *c.config.WatchByDefault, c.imageDefaults)
if err != nil {
c.logger.Error().Err(err).
Str("pod_name", pod.Name).