From c91f4a1fe3172b55645a39680547c9d31e5f66f5 Mon Sep 17 00:00:00 2001 From: Bart Smykla Date: Thu, 9 Jan 2025 11:24:07 +0100 Subject: [PATCH] test(framework): replace bitnami helm chart with oci one Switched from the Bitnami Helm chart to the OCI-based chart, resolving issues with adding the Bitnami repository caused by Cloudflare instability. This change allows the complete removal of the Bitnami repository. Signed-off-by: Bart Smykla --- test/framework/deployments/postgres/kubernetes.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/test/framework/deployments/postgres/kubernetes.go b/test/framework/deployments/postgres/kubernetes.go index 70a2796e3b58..0f9221b2fe9e 100644 --- a/test/framework/deployments/postgres/kubernetes.go +++ b/test/framework/deployments/postgres/kubernetes.go @@ -13,7 +13,10 @@ type k8SDeployment struct { options *deployOptions } -const releaseName = "postgres-release" +const ( + releaseName = "postgres-release" + chart = "oci://registry-1.docker.io/bitnamicharts/postgresql" +) func (t *k8SDeployment) GetEnvVars() map[string]string { return t.envVars @@ -55,12 +58,7 @@ data: helmOpts.SetValues["primary.initdb.password"] = t.options.postgresPassword } - err := helm.AddRepoE(cluster.GetTesting(), helmOpts, "bitnami", "https://charts.bitnami.com/bitnami") - if err != nil { - return err - } - - return helm.InstallE(cluster.GetTesting(), helmOpts, "bitnami/postgresql", releaseName) + return helm.InstallE(cluster.GetTesting(), helmOpts, chart, releaseName) } func (t *k8SDeployment) Delete(cluster framework.Cluster) error {