Skip to content

Commit

Permalink
refactor: reorganise files structure
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly committed Jan 23, 2024
1 parent 609fa7e commit b779d2f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ COPY . ./
# ARG ARCH
# ARG GIT_COMMIT
# ARG GIT_TAG
RUN GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags="-w -s" -o policy-reports ./cmd/main.go
RUN GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags="-w -s" -o policy-reports ./main.go

FROM gcr.io/distroless/static:nonroot
WORKDIR /
Expand Down
2 changes: 1 addition & 1 deletion cmd/main.go → main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"runtime"

"github.com/kyverno/policy-reports/cmd/app"
"github.com/kyverno/policy-reports/pkg/app"
genericapiserver "k8s.io/apiserver/pkg/server"
"k8s.io/component-base/logs"
)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion cmd/app/policyserver.go → pkg/app/policyserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"os"

"github.com/kyverno/policy-reports/cmd/app/opts"
"github.com/kyverno/policy-reports/pkg/app/opts"
"github.com/spf13/cobra"
cliflag "k8s.io/component-base/cli/flag"
"k8s.io/component-base/logs"
Expand Down

0 comments on commit b779d2f

Please sign in to comment.