Skip to content

Commit 2c3d826

Browse files
committed
fix bug
1 parent eaa40fc commit 2c3d826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/core/landscaper/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func (r *LandscaperConnector) reconcile(ctx context.Context, req ctrl.Request) c
185185
var v2cons []openmcpv1alpha1.ComponentCondition
186186
var errr openmcperrors.ReasonableError
187187
old := ls.DeepCopy()
188-
if mcpocfg.Config.Architecture.Landscaper.Version == openmcpv1alpha1.ArchitectureV2 {
188+
if mcpocfg.Config.Architecture.DecideVersion(ls) == openmcpv1alpha1.ArchitectureV2 {
189189
// v2 logic
190190
log.Info("Using v2 logic for APIServer")
191191
if deleteLandscaper {

0 commit comments

Comments
 (0)