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

image-reflector-controller cannot pull image list #289

Closed
ccodreanu opened this issue Jul 26, 2022 · 3 comments · Fixed by #290
Closed

image-reflector-controller cannot pull image list #289

ccodreanu opened this issue Jul 26, 2022 · 3 comments · Fixed by #290
Labels
bug Something isn't working

Comments

@ccodreanu
Copy link

We upgraded from 0.19.2 to 0.19.3 and our Image Policies are getting spammed with:

image-reflector-controller  Cannot determine latest tag for policy: version list argument cannot be empty

while Image Repositories show:

image-reflector-controller  GCR authentication failed: registry provider not configured for login

We see this happening on images like k8s.gcr.io/sig-storage/snapshot-validation-webhook which do not require auth to be pulled.

Image Repo and Policy:

---
apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImageRepository
metadata:
  name: snapshot-validation-webhook
spec:
  image: k8s.gcr.io/sig-storage/snapshot-validation-webhook
  interval: 24h
---
apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImagePolicy
metadata:
  name: snapshot-validation-webhook
spec:
  imageRepositoryRef:
    name: snapshot-validation-webhook
  policy:
    semver:
      range: ">=5.0.0"
@darkowlzz
Copy link
Contributor

darkowlzz commented Jul 26, 2022

Hi, thanks for reporting the issue. We did some refactoring of the registry code in the last release and looks like we didn't had any coverage for this scenario. I've created #290 to fix this issue and also added a test for it so that we don't have this bug again in the future.

@darkowlzz
Copy link
Contributor

Image reflector controller v0.19.4 is available now https://github.com/fluxcd/image-reflector-controller/pkgs/container/image-reflector-controller/29796368?tag=v0.19.4 . You can give it a try.

@ccodreanu
Copy link
Author

Works, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants