renovate/lib/modules/manager/flux
Risu 397ab49ef3
docs(managers): add missing url and displayName (#32621)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
2024-12-01 08:47:27 +00:00
..
__fixtures__ feat(flux): support kustomization (#29224) 2024-05-24 07:49:39 +00:00
artifacts.spec.ts feat(manager/flux): support system manifest inside subdirectories (#18605) 2022-10-31 11:47:03 +00:00
artifacts.ts feat(config): support user configured env (#27028) 2024-02-22 05:05:05 +00:00
common.ts feat(manager/flux): Support system manifests outside `flux-system` subdirectory (#22966) 2023-09-23 08:00:26 +00:00
extract.spec.ts fix(manager/flux): skip local charts (#32335) 2024-11-05 13:21:48 +00:00
extract.ts fix(manager/flux): skip local charts (#32335) 2024-11-05 13:21:48 +00:00
index.ts docs(managers): add missing url and displayName (#32621) 2024-12-01 08:47:27 +00:00
readme.md docs(manager/dockerfile): Document supported dependencies for Dockerfile manager (#32288) 2024-11-03 17:51:27 +00:00
schema.ts feat(flux): support kustomization (#29224) 2024-05-24 07:49:39 +00:00
types.ts refactor(managers): yaml schema checks (#26811) 2024-02-25 06:14:19 +00:00

readme.md

This manager parses Flux YAML manifests and supports:

  1. HelmRelease resources
  2. GitRepository resources
  3. OCIRepository resources
  4. Flux system manifests

HelmRelease support

Extracts helm dependencies from HelmRelease resources.

The flux manager extracts helm dependencies for HelmRelease resources linked to HelmRepository or GitRepository sources. Renovate supports OCI HelmRepository sources, those with type: oci. Renovate will then extract the docker dependencies for the referenced HelmRelease resources.

In addition, for the flux manager to properly link HelmRelease and HelmRepository resources, both of the following conditions must be met:

  1. The HelmRelease resource must either have its metadata.namespace property set or its spec.chart.spec.sourceRef.namespace property set
  2. The referenced HelmRepository resource must have its metadata.namespace property set

Namespaces will not be inferred from the context (e.g. from the parent Kustomization).

Renovate updates HelmRelease resources coming from GitRepository by updating the GitRepository resource.

GitRepository support

Renovate can update git references from GitRepository resources.

The flux manager only updates GitRepository fields that have a tag or commit key.

Kustomization support

Renovate can update image1 references from Kustomization resources.

OCIRepository support

Renovate can update oci references from OCIRepository resources.

The flux manager only updates OCIRepository fields that have a digest or tag key. If tag and digest exist then digest takes precedence.

Flux system manifests support

Renovate supports updating Flux system manifests generated during Flux installation. System manifests are identified via being named gotk-components.y(a)ml and containing comment headers as generated by flux bootstrap.

!!! warning Renovate cannot identify the use of custom bootstrap flags, such as --cluster-domain. In such a scenario Renovate's PR will overwrite these values with the Flux defaults. See issue #13952 on GitHub for more information.

Updating system manifests requires that either:

  1. The flux tool is pre-installed, or
  2. You run a Docker image based on containerbase, such as the official Renovate images, and have binarySource=install configured

Default fileMatch

By default, the flux manager only matches **/gotk-components.y(a)ml. So it only checks system manifest files generated by the flux bootstrap command.

This is because there is no commonly accepted file/directory naming convention for Flux manifests and we don't want to check every single *.yaml file in repositories just in case some of them have Flux definitions.

If most .yaml files in your repository are Flux manifests, then you could add this to your config:

{
  "flux": {
    "fileMatch": ["\\.yaml$"]
  }
}

If instead you have all your Flux manifests inside a flux/ directory, you would add this:

{
  "flux": {
    "fileMatch": ["flux/.+\\.yaml$"]
  }
}

Versioning

If you need to change the versioning format, read the versioning documentation to learn more.