Skip to content

Commit

Permalink
Create release in hmc-templates by default
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Pavlov <[email protected]>
  • Loading branch information
Kshatrix committed Oct 18, 2024
1 parent 1233ebe commit 39e21ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions internal/controller/release_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion templates/provider/hmc-templates/values.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
createRelease: false
createRelease: true

0 comments on commit 39e21ab

Please sign in to comment.