Skip to content

Introduce a flag to limit the max size of Flux artifacts #901

Open
@stefanprodan

Description

@stefanprodan

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions