Skip to content

Commit

Permalink
Merge branch 'main' into override-uri-in-labels
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcollom authored Jun 21, 2024
2 parents 2e765be + 1d00150 commit 90c0352
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/controller/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (c *Controller) sync(ctx context.Context, pod *corev1.Pod) error {

if len(errs) > 0 {
return fmt.Errorf("failed to sync pod %s/%s: %s",
pod.Name, pod.Namespace, strings.Join(errs, ","))
pod.Namespace, pod.Name, strings.Join(errs, ","))
}

return nil
Expand Down Expand Up @@ -94,8 +94,10 @@ func (c *Controller) checkContainer(ctx context.Context, log *logrus.Entry, pod
}

c.metrics.AddImage(pod.Namespace, pod.Name,
container.Name, containerType, result.ImageURL, result.IsLatest,
result.CurrentVersion, result.LatestVersion)
container.Name, containerType,
result.ImageURL, result.IsLatest,
result.CurrentVersion, result.LatestVersion,
)

return nil
}

0 comments on commit 90c0352

Please sign in to comment.