From ec325d1f9ebf4bdd618abf0a5395547798e48cbe Mon Sep 17 00:00:00 2001 From: Ricardo Sanchez Date: Fri, 13 Dec 2024 19:26:06 +0100 Subject: [PATCH] Migrate bitnami charts to OCI repository --- kubernetes/clusters/prod/repositories/kustomization.yaml | 1 + .../clusters/prod/repositories/oci/bitnami-ocirepo.yaml | 9 +++++++++ .../clusters/prod/repositories/oci/kustomization.yaml | 4 ++++ kubernetes/platform/kafka/schema-registry/base/helm.yaml | 2 +- kubernetes/platform/keycloak/app/base/helm.yaml | 2 +- 5 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 kubernetes/clusters/prod/repositories/oci/bitnami-ocirepo.yaml create mode 100644 kubernetes/clusters/prod/repositories/oci/kustomization.yaml diff --git a/kubernetes/clusters/prod/repositories/kustomization.yaml b/kubernetes/clusters/prod/repositories/kustomization.yaml index 2e4109d5..b13012f4 100644 --- a/kubernetes/clusters/prod/repositories/kustomization.yaml +++ b/kubernetes/clusters/prod/repositories/kustomization.yaml @@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ./helm + - ./oci diff --git a/kubernetes/clusters/prod/repositories/oci/bitnami-ocirepo.yaml b/kubernetes/clusters/prod/repositories/oci/bitnami-ocirepo.yaml new file mode 100644 index 00000000..e6fa8709 --- /dev/null +++ b/kubernetes/clusters/prod/repositories/oci/bitnami-ocirepo.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: OCIRepository +metadata: + name: bitnami + namespace: flux-system +spec: + url: oci://registry-1.docker.io/bitnamicharts + interval: 1h \ No newline at end of file diff --git a/kubernetes/clusters/prod/repositories/oci/kustomization.yaml b/kubernetes/clusters/prod/repositories/oci/kustomization.yaml new file mode 100644 index 00000000..6771a889 --- /dev/null +++ b/kubernetes/clusters/prod/repositories/oci/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - bitnami-ocirepo.yaml diff --git a/kubernetes/platform/kafka/schema-registry/base/helm.yaml b/kubernetes/platform/kafka/schema-registry/base/helm.yaml index b03e7162..6d9c35a6 100644 --- a/kubernetes/platform/kafka/schema-registry/base/helm.yaml +++ b/kubernetes/platform/kafka/schema-registry/base/helm.yaml @@ -10,7 +10,7 @@ spec: chart: schema-registry version: 23.1.0 sourceRef: - kind: HelmRepository + kind: OCIRepository name: bitnami namespace: flux-system releaseName: schema-registry diff --git a/kubernetes/platform/keycloak/app/base/helm.yaml b/kubernetes/platform/keycloak/app/base/helm.yaml index 1ff232bb..2718b084 100644 --- a/kubernetes/platform/keycloak/app/base/helm.yaml +++ b/kubernetes/platform/keycloak/app/base/helm.yaml @@ -11,7 +11,7 @@ spec: chart: keycloak version: 24.3.0 sourceRef: - kind: HelmRepository + kind: OCIRepository name: bitnami namespace: flux-system install: