Skip to content

Commit a64df58

Browse files
authored
Move a bunch of code from internal->pkg (#122)
1 parent 0b0314c commit a64df58

File tree

144 files changed

+566
-566
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+566
-566
lines changed

cmd/kube-linter/kube-linter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"fmt"
55
"os"
66

7-
"golang.stackrox.io/kube-linter/internal/command/root"
7+
"golang.stackrox.io/kube-linter/pkg/command/root"
88
// Register templates
9-
_ "golang.stackrox.io/kube-linter/internal/templates/all"
9+
_ "golang.stackrox.io/kube-linter/pkg/templates/all"
1010
)
1111

1212
func main() {

internal/defaultchecks/default_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55

66
"github.com/stretchr/testify/assert"
77
"github.com/stretchr/testify/require"
8-
"golang.stackrox.io/kube-linter/internal/builtinchecks"
98
"golang.stackrox.io/kube-linter/internal/set"
9+
"golang.stackrox.io/kube-linter/pkg/builtinchecks"
1010
)
1111

1212
func TestListReferencesOnlyValidChecks(t *testing.T) {

internal/templates/all/all.go

Lines changed: 0 additions & 25 deletions
This file was deleted.

internal/templates/nonexistentserviceaccount/internal/params/gen-params.go

Lines changed: 0 additions & 52 deletions
This file was deleted.

internal/templates/privileged/internal/params/gen-params.go

Lines changed: 0 additions & 52 deletions
This file was deleted.

internal/templates/readinessprobe/internal/params/gen-params.go

Lines changed: 0 additions & 52 deletions
This file was deleted.

internal/templates/readonlyrootfs/internal/params/gen-params.go

Lines changed: 0 additions & 52 deletions
This file was deleted.

internal/templates/runasnonroot/internal/params/gen-params.go

Lines changed: 0 additions & 52 deletions
This file was deleted.

internal/templates/writablehostmount/internal/params/gen-params.go

Lines changed: 0 additions & 52 deletions
This file was deleted.

internal/builtinchecks/built_in_checks.go renamed to pkg/builtinchecks/built_in_checks.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"github.com/ghodss/yaml"
77
"github.com/gobuffalo/packr"
88
"github.com/pkg/errors"
9-
"golang.stackrox.io/kube-linter/internal/check"
10-
"golang.stackrox.io/kube-linter/internal/checkregistry"
9+
"golang.stackrox.io/kube-linter/pkg/check"
10+
"golang.stackrox.io/kube-linter/pkg/checkregistry"
1111
)
1212

1313
var (

0 commit comments

Comments
 (0)