A way to specify OCI HelmChart version as a digest #5768
-
|
Hello, I am using a HelmChart from an OCI HelmRepository. Is there a way to pin the exact chart artefact with a digest? In Helm docs, there is a documented way to install a Helm Chart with a digest here: https://helm.sh/docs/topics/registries/#installing-charts-with-digest. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
You can do this if you migrate to OCIRepository: https://fluxcd.io/flux/components/source/ocirepositories/#digest-example Note: HelmRepository with type |
Beta Was this translation helpful? Give feedback.
-
|
The Google free AI search nails this: apiVersion: source.toolkit.fluxcd.io/v1
kind: OCIRepository
metadata:
name: my-chart-source
namespace: default
spec:
interval: 10m
url: oci://ghcr.io/your-org/charts/my-chart
ref:
digest: sha256:your-full-sha256-digest-here
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: my-app
namespace: default
spec:
interval: 10m
chartRef:
kind: OCIRepository
name: my-chart-source
values:
replicaCount: 2 |
Beta Was this translation helpful? Give feedback.
The Google free AI search nails this: