Skip to content

Commit

Permalink
Delete unused things
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKalke committed Apr 5, 2024
1 parent 0b40eac commit 2f5d515
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion components/operator/api/v1alpha1/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
const (
ServerlessGroup = "operator.kyma-project.io"
ServerlessVersion = "v1alpha1"
ServerlessKind = "Serverless"
)

var (
Expand Down
12 changes: 0 additions & 12 deletions components/operator/internal/state/controller_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import (
"context"

"github.com/kyma-project/serverless/components/operator/api/v1alpha1"
corev1 "k8s.io/api/core/v1"
controllerruntime "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
)

const (
Expand Down Expand Up @@ -60,13 +58,3 @@ func configureControllerConfigurationFlags(s *systemState) {
s.instance.Status.DefaultRuntimePodPreset,
)
}

func getNodesLen(ctx context.Context, c client.Client) (int, error) {
nodeList := corev1.NodeList{}
err := c.List(ctx, &nodeList)
if err != nil {
return 0, err
}

return len(nodeList.Items), nil
}
4 changes: 0 additions & 4 deletions components/operator/internal/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ var requeueResult = &ctrl.Result{
Requeue: true,
}

func stopWithErrorOrRequeue(err error) (stateFn, *ctrl.Result, error) {
return nil, requeueResult, err
}

func nextState(next stateFn) (stateFn, *ctrl.Result, error) {
return next, nil, nil
}
Expand Down

0 comments on commit 2f5d515

Please sign in to comment.