You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think you might have namespaces of the ImageRepository and ImagePolicy backwards - assuming your GitRepository and ImageUpdateAutomation objects are in the flux-system namespace, then the ImagePolicy should also be in the flux-system namespace and the ImageRepository should be in the "app" namespace.
But even after making that change I am having an issue with the ImagePolicy not reconciling the image tags that the ImageRepository is pulling. After playing around with it for a while, I noticed that restarting the image reflector controller will cause the cross namespace ImagePolicy to be reconciled exactly once, but any new tags pushed to the image repository are completely ignored. Looking through the image reflector controller logs (level=debug) I confirmed that the controller will only reconcile ImagePolicy objects using cross namespace references shortly after the controller starts up and then completely ignores them unlike the ImagePolicy objects that are NOT using the cross namespace references. I'm thinking either the documentation is missing something extremely crucial in order to get this to work or there is a bug. Also I apologize in advance for not sharing the logs as they are work related.
Cross-namespace ImageRepository resources should trigger reconciles for
ImagePolicies that refer to them. Previously, this was only done for
resources in the same namespace.
Fixes#195
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
Cross-namespace ImageRepository resources should trigger reconciles for
ImagePolicies that refer to them. Previously, this was only done for
resources in the same namespace.
Fixes#195
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
Cross-namespace ImageRepository resources should trigger reconciles for
ImagePolicies that refer to them. Previously, this was only done for
resources in the same namespace.
Fixes#195
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
Cross-namespace ImageRepository resources should trigger reconciles for
ImagePolicies that refer to them. Previously, this was only done for
resources in the same namespace.
Fixesfluxcd#195
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
Originally posted by @e-dang in fluxcd/flux2#1958 (comment)
The text was updated successfully, but these errors were encountered: