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

kind images canot update for the first time the tag #101

Closed
dmicheneau opened this issue Nov 5, 2024 · 1 comment · Fixed by #114
Closed

kind images canot update for the first time the tag #101

dmicheneau opened this issue Nov 5, 2024 · 1 comment · Fixed by #114
Assignees
Labels
bug Something isn't working

Comments

@dmicheneau
Copy link
Member

kubectl annotate image demo kimup.cloudavenue.io/action=refresh
image.kimup.cloudavenue.io/demo annotated

kubectl events
LAST SEEN   TYPE      REASON                   OBJECT                                       MESSAGE
28m         Warning   FailedToCreateEndpoint   Endpoints/kimup-controller-healthz-metrics   Failed to create endpoint for service kimup-operator/kimup-controller-healthz-metrics: endpoints "kimup-controller-healthz-metrics" already exists
8m40s       Normal    ImageUpdate              Image/demo                                   Image configuration has changed. Reloading image.
4m8s        Normal    Image update triggered   Image/demo                                   
4m7s        Normal    Fetch image tags         Image/demo                                   Found 83 tags
4m7s        Normal    Evaluate rule            Image/demo                                   Rule semver-minor evaluated
4m7s        Normal    Execute action           Image/demo                                   Action apply executed
22s         Normal    ImageUpdate              Image/demo                                   Image configuration has changed. Reloading image.
4s          Normal    Image update triggered   Image/demo                                   
3s          Normal    Fetch image tags         Image/demo                                   Found 83 tags
3s          Normal    Evaluate rule            Image/demo                                   Rule semver-minor evaluated
3s          Normal    Execute action           Image/demo                                   Action apply executed

kubectl get Images
NAME   IMAGE            TAG   LAST-RESULT   LAST-SYNC
demo   traefik/whoami                       <unknown>

Logs controller:

{"level":"info","msg":"Refreshing image demo in namespace default","time":"2024-11-05T15:16:59Z"}
{"Image":"demo","Namespace":"default","error":"Operation cannot be fulfilled on images.kimup.cloudavenue.io \"demo\": the object has been modified; please apply your changes to the latest version and try again","level":"error","msg":"Error updating status of image","time":"2024-11-05T15:17:00Z"}
@dmicheneau
Copy link
Member Author

Need to annotate a second time to get

k annotate image demo kimup.cloudavenue.io/action=refresh
image.kimup.cloudavenue.io/demo annotated

kubectl get Images
NAME   IMAGE            TAG             LAST-RESULT   LAST-SYNC
demo   traefik/whoami   v1.10.3-armv7   Success       40s

controler logs:

{"level":"info","msg":"Annotation trigger refresh","name":"demo","namespace":"default","time":"2024-11-05T15:18:47Z"}
{"image":"demo","level":"info","msg":"Triggering event refresh.image","namespace":"default","time":"2024-11-05T15:18:47Z"}
{"level":"info","msg":"Refreshing image demo in namespace default","time":"2024-11-05T15:18:48Z"}

@azrod azrod self-assigned this Nov 6, 2024
@azrod azrod added the bug Something isn't working label Nov 6, 2024
@azrod azrod linked a pull request Nov 6, 2024 that will close this issue
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