Skip to content

Commit

Permalink
Move a bunch of code from internal->pkg (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
viswajithiii authored Jan 16, 2021
1 parent 0b0314c commit a64df58
Show file tree
Hide file tree
Showing 144 changed files with 566 additions and 566 deletions.
4 changes: 2 additions & 2 deletions cmd/kube-linter/kube-linter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"os"

"golang.stackrox.io/kube-linter/internal/command/root"
"golang.stackrox.io/kube-linter/pkg/command/root"
// Register templates
_ "golang.stackrox.io/kube-linter/internal/templates/all"
_ "golang.stackrox.io/kube-linter/pkg/templates/all"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion internal/defaultchecks/default_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"golang.stackrox.io/kube-linter/internal/builtinchecks"
"golang.stackrox.io/kube-linter/internal/set"
"golang.stackrox.io/kube-linter/pkg/builtinchecks"
)

func TestListReferencesOnlyValidChecks(t *testing.T) {
Expand Down
25 changes: 0 additions & 25 deletions internal/templates/all/all.go

This file was deleted.

This file was deleted.

52 changes: 0 additions & 52 deletions internal/templates/privileged/internal/params/gen-params.go

This file was deleted.

52 changes: 0 additions & 52 deletions internal/templates/readinessprobe/internal/params/gen-params.go

This file was deleted.

52 changes: 0 additions & 52 deletions internal/templates/readonlyrootfs/internal/params/gen-params.go

This file was deleted.

52 changes: 0 additions & 52 deletions internal/templates/runasnonroot/internal/params/gen-params.go

This file was deleted.

52 changes: 0 additions & 52 deletions internal/templates/writablehostmount/internal/params/gen-params.go

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/ghodss/yaml"
"github.com/gobuffalo/packr"
"github.com/pkg/errors"
"golang.stackrox.io/kube-linter/internal/check"
"golang.stackrox.io/kube-linter/internal/checkregistry"
"golang.stackrox.io/kube-linter/pkg/check"
"golang.stackrox.io/kube-linter/pkg/checkregistry"
)

var (
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions internal/check/template.go → pkg/check/template.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package check

import (
"golang.stackrox.io/kube-linter/internal/diagnostic"
"golang.stackrox.io/kube-linter/internal/lintcontext"
"golang.stackrox.io/kube-linter/pkg/diagnostic"
"golang.stackrox.io/kube-linter/pkg/lintcontext"
)

// A Func is a specific lint-check, which runs on a specific objects, and emits diagnostics if problems are found.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package checkregistry

import (
"github.com/pkg/errors"
"golang.stackrox.io/kube-linter/internal/check"
"golang.stackrox.io/kube-linter/internal/instantiatedcheck"
"golang.stackrox.io/kube-linter/pkg/check"
"golang.stackrox.io/kube-linter/pkg/instantiatedcheck"
)

// A CheckRegistry is a registry of checks.
Expand Down
Loading

0 comments on commit a64df58

Please sign in to comment.