From 20d7d0c78ac4371cc1130df0490004ba8514c180 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Fri, 1 Apr 2022 15:21:10 +0300 Subject: [PATCH] Add image registry example to story 2 Signed-off-by: Stefan Prodan --- rfcs/helm-oci/README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/rfcs/helm-oci/README.md b/rfcs/helm-oci/README.md index 6d9fc87c..b03fba6c 100644 --- a/rfcs/helm-oci/README.md +++ b/rfcs/helm-oci/README.md @@ -75,7 +75,7 @@ And finally in Flux `HelmReleases`, refer to the ghcr-charts `HelmRepository`: apiVersion: helm.toolkit.fluxcd.io/v2beta1 kind: HelmRelease metadata: - name: podinfo + name: my-app namespace: default spec: interval: 60m @@ -98,10 +98,19 @@ spec: Given that charts are stored in container registries, you can use Flux image automation and patch the chart version in Git, in the same way Flux works for updating container image tags. -Define an image policy using semver: +Define an image registry and a policy for the chart artifact: ```yaml apiVersion: image.toolkit.fluxcd.io/v1beta1 +kind: ImageRepository +metadata: + name: my-app + namespace: default +spec: + image: ghcr.io/my-org/charts/my-app + interval: 1m0s +--- +apiVersion: image.toolkit.fluxcd.io/v1beta1 kind: ImagePolicy metadata: name: my-app @@ -120,7 +129,7 @@ Then add the policy marker to the `HelmRelease` manifests in Git: apiVersion: helm.toolkit.fluxcd.io/v2beta1 kind: HelmRelease metadata: - name: podinfo + name: my-app namespace: default spec: interval: 60m