Skip to content

Commit

Permalink
fix linter errors #5
Browse files Browse the repository at this point in the history
  • Loading branch information
koala7659 committed Jun 25, 2024
1 parent 4e58b5a commit ced19f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package fsm
import (
"fmt"

. "github.com/onsi/gomega"
. "github.com/onsi/gomega" //nolint:revive
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/onsi/gomega/types"
Expand Down
8 changes: 3 additions & 5 deletions internal/controller/runtime/fsm/runtime_fsm_initialise.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import (
"context"
"time"

"k8s.io/apimachinery/pkg/api/meta"

imv1 "github.com/kyma-project/infrastructure-manager/api/v1"
"k8s.io/apimachinery/pkg/api/meta"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
)
Expand All @@ -15,7 +14,6 @@ import (
// All the states we set in the operator are about to be read only by the external clients

func sFnInitialize(ctx context.Context, m *fsm, s *systemState) (stateFn, *ctrl.Result, error) {

instanceIsNotBeingDeleted := s.instance.GetDeletionTimestamp().IsZero()
instanceHasFinalizer := controllerutil.ContainsFinalizer(&s.instance, m.Finalizer)

Expand Down Expand Up @@ -56,10 +54,10 @@ func sFnInitialize(ctx context.Context, m *fsm, s *systemState) (stateFn, *ctrl.

} else {
if instanceHasFinalizer {
//if s.shoot.GetDeletionTimestamp().IsZero() {
// if s.shoot.GetDeletionTimestamp().IsZero() {
m.log.Info("Instance is being deleted")
return switchState(sFnDeleteShoot)
//}
// }

//return switchState(sFnWaitForShootDeletion)
}
Expand Down

0 comments on commit ced19f2

Please sign in to comment.