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

ImageUpdateAutomation in namespace other than flux-default #152

Closed
martijnjanssen opened this issue Apr 19, 2021 · 2 comments
Closed

ImageUpdateAutomation in namespace other than flux-default #152

martijnjanssen opened this issue Apr 19, 2021 · 2 comments

Comments

@martijnjanssen
Copy link

Flux V2 is shaping up to be quite the tool, however from experimentation, there seem to be some crucial shortcomings with the ImageUpdateAutomation (and maybe also the ImagePolicy and ImageRepository). I have a deployment running in a non-default namespace (namespace: staging and not namespace: flux-system), the issue here is that the ImagePolicy and ImageRepository work and see the correct images. However, the ImageUpdateAutomation is unable to push changes to the gitrepository since it cannot reach the GitRepository, which is in the flux-system namespace and not in staging.

In addtion, since my architecture involves a staging and prod namespace, as of now, it seems that all three of the ImageUpdateAutomation, ImagePolicy and ImageRepository need to reside in both the prod and staging namespace, even though they affect the same image? Seems a bit overkill.

Maybe I'm misunderstanding internal dependencies of these components or I'm misreading the docs on configuring image updates. Regardless, to me it seems that it's not possible to do, of that the documentation is lacking.

If it's desired that I add my config I can do that, but I'm quite sure that it's not relevant in this case. The ImagePolicy and ImageRepository are working after all, while the ImageUpdateAutomation straight up has no access to the GitRepository resource which is created by bootstrap in the gotk-sync.yaml file.

@stefanprodan stefanprodan transferred this issue from fluxcd/flux2 Apr 19, 2021
@stefanprodan
Copy link
Member

Duplicate of: #85

@martijnjanssen
Copy link
Author

Whoops, terribly sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants