From 39e21ab83794211e29420971928ee1a7ea6d94a3 Mon Sep 17 00:00:00 2001 From: Andrei Pavlov Date: Fri, 18 Oct 2024 23:57:54 +0700 Subject: [PATCH] Create release in hmc-templates by default Signed-off-by: Andrei Pavlov --- internal/controller/release_controller.go | 11 ----------- templates/provider/hmc-templates/values.yaml | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/internal/controller/release_controller.go b/internal/controller/release_controller.go index 79ac14676..e0d296879 100644 --- a/internal/controller/release_controller.go +++ b/internal/controller/release_controller.go @@ -252,17 +252,6 @@ func (r *ReleaseReconciler) reconcileHMCTemplates(ctx context.Context, releaseNa }, } - if releaseName == "" { - createReleaseValues := map[string]any{ - "createRelease": true, - } - raw, err := json.Marshal(createReleaseValues) - if err != nil { - return err - } - opts.Values = &apiextensionsv1.JSON{Raw: raw} - } - hr, operation, err := helm.ReconcileHelmRelease(ctx, r.Client, hmcTemplatesName, r.SystemNamespace, opts) if err != nil { return err diff --git a/templates/provider/hmc-templates/values.yaml b/templates/provider/hmc-templates/values.yaml index 792c3d702..3872ff87a 100644 --- a/templates/provider/hmc-templates/values.yaml +++ b/templates/provider/hmc-templates/values.yaml @@ -1 +1 @@ -createRelease: false +createRelease: true