-
Notifications
You must be signed in to change notification settings - Fork 74
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 Automation not honouring GitRepository exclusions #72
Comments
Related to #68 |
The image automation uses the git repository type only for its specification of how to gain access to a git repository (i.e., the I can see why you would want it to respect the |
Hi @squaremo, thanks for the comment.
Two things I can see here:
apiVersion: image.toolkit.fluxcd.io/v1alpha1
kind: ImageUpdateAutomation
metadata:
name: aaa
namespace: aaa
spec:
interval: 1m
checkout:
branch: dev
# by default spec.ignore will be blank.
ignore: |
/charts
REDME.md
gitRepositoryRef:
name: flux-system
update:
setters: {}
commit:
authorName: UpdateBot
authorEmail: [email protected] |
I think all fields in the GitRepository should apply to image automation, |
I'm open to that; but I suspect it will lead to some awkward design, since those fields are not intended to serve the automation API. So, we could come up with an interpretation of refs -- Then we'd need to reinterpret It also means whenever you want to add anything to the GitRepository spec, you have to come up with an interpretation for automation, or have the worst-of-both-worlds situation of supporting some fields but not others. |
Reusing parts of the specification might make more sense -- that means we can import that bits that have some reasonable interpretation. This would probably mean dropping gitRepositoryRef in favour of just supplying the URL and secret in the automation object. This feels like it's becoming a larger discussion. I'll create one in flux2. <-- fluxcd/flux2#665 NB I don't think that discussion blocks implementing |
Hi all,
First of all, thanks for the work.
I am using the latest version of Flux2 and image-automation-controller / reflector. Given the following resources:
I am seeing this error:
Note that the path is out of scope for the Gitrepository CRD I have created (only includes
cluster/environments/dev-123/patches.yaml
). Is this an expected behavior?Thanks!
The text was updated successfully, but these errors were encountered: