Skip to content

Commit

Permalink
Fix initial release creation
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 800c135
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/controller/release_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ func (r *ReleaseReconciler) reconcileHMCTemplates(ctx context.Context, releaseNa
l.Info("Initial creation of HMC Release is skipped")
return nil
}
initialInstall := releaseName == ""
var ownerRefs []metav1.OwnerReference
if releaseName == "" {
releaseName = utils.ReleaseNameFromVersion(build.Version)
Expand Down Expand Up @@ -252,7 +253,7 @@ func (r *ReleaseReconciler) reconcileHMCTemplates(ctx context.Context, releaseNa
},
}

if releaseName == "" {
if initialInstall {
createReleaseValues := map[string]any{
"createRelease": true,
}
Expand Down

0 comments on commit 800c135

Please sign in to comment.