Skip to content

Commit

Permalink
fix: feature landscape logging (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilos77 authored Jul 11, 2024
1 parent bb340e0 commit f545a62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/skr/runtime/looper/skrLooper.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/kyma-project/cloud-manager/pkg/util/debugged"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime"
"os"
"sigs.k8s.io/controller-runtime/pkg/cluster"
"sigs.k8s.io/controller-runtime/pkg/manager"
"sync"
Expand Down Expand Up @@ -256,11 +257,14 @@ func (l *skrLooper) handleOneSkr(kymaName string) {
skrManager.GetScheme()

ctx := feature.ContextBuilderFromCtx(l.ctx).
Landscape(os.Getenv("LANDSCAPE")).
LoadFromScope(scope).
LoadFromKyma(kyma).
Plane(types.PlaneSkr).
Build(l.ctx)

logger = feature.DecorateLogger(ctx, logger)

logger.Info("Starting SKR Runner")
runner := NewSkrRunner(l.registry, l.kcpCluster)
to := 10 * time.Second
Expand Down

0 comments on commit f545a62

Please sign in to comment.