Skip to content

Commit

Permalink
Fix doubling fields
Browse files Browse the repository at this point in the history
  • Loading branch information
VOID404 committed Nov 22, 2024
1 parent 0654112 commit be0f941
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/controller/runtime/runtime_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ func (r *RuntimeReconciler) Reconcile(ctx context.Context, request ctrl.Request)
shootName = "N/D"
}

r.Log = r.Log.WithValues("runtime", runtimeID, "shoot", shootName)
r.Log.Info("Reconciling Runtime", "Name", runtime.Name, "Namespace", runtime.Namespace)
log := r.Log.WithValues("runtime", runtimeID, "shoot", shootName)
log.Info("Reconciling Runtime", "Name", runtime.Name, "Namespace", runtime.Namespace)

stateFSM := fsm.NewFsm(

Check failure on line 73 in internal/controller/runtime/runtime_controller.go

View workflow job for this annotation

GitHub Actions / govuln

assignment mismatch: 1 variable but 3 values
r.Log.WithName(fmt.Sprintf("reqID %d", requCounter)),
log.Sprintf("reqID %d", requCounter)),

Check failure on line 74 in internal/controller/runtime/runtime_controller.go

View workflow job for this annotation

GitHub Actions / govuln

log.Sprintf undefined (type logr.Logger has no field or method Sprintf)

Check failure on line 74 in internal/controller/runtime/runtime_controller.go

View workflow job for this annotation

GitHub Actions / govuln

not enough arguments in call to fsm.NewFsm
r.Cfg,
fsm.K8s{
Client: r.Client,
Expand Down

0 comments on commit be0f941

Please sign in to comment.