Flux automates application and chart upgrades based on semantic versioning (semver) ranges. This is achieved through the use of HelmRelease and Kustomize resources. Here are the possible options:
- Automatic application of HelmRelease resources: If you are currently a Flux v1 user, you can commit the HelmRelease resources to Git, and Flux will automatically apply them to the cluster like any other resource. If you are not a Flux v1 user or want to fully migrate to Flux v2, the Kustomize Controller will serve your needs.
Example:
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: my-release
spec:
releaseName: my-release
chart:
spec:
chart: my-chart
sourceRef:
kind: HelmRepository
name: my-repo
interval: 5m