fluxcd / helm-controller

The GitOps Toolkit Helm reconciler, for declarative Helming
https://fluxcd.io
Apache License 2.0
414 stars 163 forks source link

Promote `HelmRelease` API to v2 (GA) #963

Closed stefanprodan closed 6 months ago

stefanprodan commented 6 months ago

This PR promotes the HelmRelease API from v2beta2 to v2 and deprecates the v2beta2 API (to be removed after a period of 6 months).

⚠️ Removed Fields

In the helm.toolkit.fluxcd.io/v2 API the following fields (deprecated since v2beta1) are removed:

🏷️ New Fields

📦 Helm OCI Artifacts

Starting with this version, the recommend way of using Helm OCI, is by referencing an OCIRepository object.

Helm OCI example:

apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: OCIRepository
metadata:
  name: podinfo
  namespace: default
spec:
  interval: 10m
  layerSelector:
    mediaType: "application/vnd.cncf.helm.chart.content.v1.tar+gzip"
    operation: copy
  url: oci://ghcr.io/stefanprodan/charts/podinfo
  ref:
    semver: "*"
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
  name: podinfo
  namespace: default
spec:
  interval: 10m
  chartRef:
    kind: OCIRepository
    name: podinfo

Part of: https://github.com/fluxcd/flux2/issues/4712

stevo-f3 commented 5 months ago

custom metrics example on the website is out of date https://fluxcd.io/flux/monitoring/custom-metrics/#adding-custom-metrics https://github.com/fluxcd/website/blob/main/content/en/flux/monitoring/custom-metrics.md?plain=1#L106

Needs a fix like https://github.com/fluxcd/flux2-monitoring-example/pull/36 i.e. https://github.com/fluxcd/flux2-monitoring-example/blob/main/monitoring/controllers/kube-prometheus-stack/kube-state-metrics-config.yaml#L72