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

Explicit relation between ImagePolicy and ImageUpdateAutomation #499

Open
tun0 opened this issue Mar 21, 2023 · 1 comment
Open

Explicit relation between ImagePolicy and ImageUpdateAutomation #499

tun0 opened this issue Mar 21, 2023 · 1 comment

Comments

@tun0
Copy link

tun0 commented Mar 21, 2023

Scenario:

Application consisting of a combination in-house developed software (think: PHP application) and third-party software (think: Elasticsearch, Redis, etc).
For the in-house developed stuff, we want IUA to actively deploy the latest versions based on ImagePolicies.
For third-party stuff, we want IUA to create branches/PRs based on ImagePolicies.

Current workarounds:

  • Hard separation between in-house and third-party stuff directory-wise, and have specific ImageUpdateAutomation resources pointing at those respective directories.
  • Separate them by using different namespaces for both instead.

Suggested solution:

Think: Ingress classes
In each ImagePolicy you explicitly (with perhaps some optional default) configure which ImageUpdateAutomation is supposed to "process" this ImagePolicy.

@makkes
Copy link
Member

makkes commented Mar 22, 2023

In general I agree that it's sometimes hard to reason about the relationship between ImageUpdateAutomation and ImagePolicy resources and how they interact with each other. I myself ran into this with two ImageUpdateAutomations living in a namespace and racing against each other, leading to one of them always failing to push changes.

Here's a link to a discussion with some background on the decisions behind the current design and Michael asked exactly the question you're posing here: "is it useful to have two automations refer to the same (part) repo?".

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