Skip to content

Commit

Permalink
Move options to internal package (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
radito3 authored Mar 28, 2024
1 parent 433c35f commit 26ef520
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions cmd/remote-work-processor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"github.com/SAP/remote-work-processor/internal/grpc/processors"
"github.com/SAP/remote-work-processor/internal/kubernetes/controller"
meta "github.com/SAP/remote-work-processor/internal/kubernetes/metadata"
"github.com/SAP/remote-work-processor/internal/opt"
"k8s.io/apimachinery/pkg/runtime"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
Expand Down Expand Up @@ -134,8 +135,8 @@ Loop:
}
}

func setupFlagsAndLogger() *Options {
opts := &Options{}
func setupFlagsAndLogger() *opt.Options {
opts := &opt.Options{}
opts.BindFlags(flag.CommandLine)

zapOpts := zap.Options{}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package opt

import (
"crypto/sha256"
Expand Down

0 comments on commit 26ef520

Please sign in to comment.