Open
Description
To avoid OOM errors like the one reported here, I think we need to introduce a flag for limiting the size of artifacts produced by source-controller (we do have such a flag but only for Helm artifacts).
Proposal (breaking change)
Add a flag --artifact-max-size
with the default set to 50MiB
(same default as for --helm-index-max-size
).
If the max limit is reached, the controller should fail to reconcile the source and error out with a message that invites users to setup spec.ignore
and exclude non-Kubernetes files. Depending on the source type we should link to one of the following docs: