Skip to content

Commit

Permalink
Moved k8sutil from internal to pkg to allow external use (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Rati committed May 13, 2021
1 parent d0218ef commit 9a8ea02
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pkg/extract/gvk.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package extract

import (
"golang.stackrox.io/kube-linter/internal/k8sutil"
"golang.stackrox.io/kube-linter/pkg/k8sutil"
"k8s.io/apimachinery/pkg/runtime/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/extract/metadata.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package extract

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

// Labels extracts labels from the given object.
Expand Down
2 changes: 1 addition & 1 deletion pkg/extract/pod_spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package extract
import (
"reflect"

"golang.stackrox.io/kube-linter/internal/k8sutil"
"golang.stackrox.io/kube-linter/pkg/k8sutil"
batchV1Beta1 "k8s.io/api/batch/v1beta1"
coreV1 "k8s.io/api/core/v1"
metaV1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/lintcontext/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package lintcontext
import (
"encoding/json"

"golang.stackrox.io/kube-linter/internal/k8sutil"
"golang.stackrox.io/kube-linter/internal/stringutils"
"golang.stackrox.io/kube-linter/pkg/k8sutil"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/lintcontext/mocks/context.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package mocks

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

Expand Down
2 changes: 1 addition & 1 deletion pkg/lintcontext/parse_yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
y "github.com/ghodss/yaml"
ocsAppsV1 "github.com/openshift/api/apps/v1"
"github.com/pkg/errors"
"golang.stackrox.io/kube-linter/internal/k8sutil"
"golang.stackrox.io/kube-linter/pkg/k8sutil"
"helm.sh/helm/v3/pkg/chart"
"helm.sh/helm/v3/pkg/chart/loader"
"helm.sh/helm/v3/pkg/chartutil"
Expand Down
2 changes: 1 addition & 1 deletion pkg/templates/util/required_matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"fmt"

"github.com/pkg/errors"
"golang.stackrox.io/kube-linter/internal/k8sutil"
"golang.stackrox.io/kube-linter/internal/stringutils"
"golang.stackrox.io/kube-linter/pkg/check"
"golang.stackrox.io/kube-linter/pkg/diagnostic"
"golang.stackrox.io/kube-linter/pkg/extract"
"golang.stackrox.io/kube-linter/pkg/k8sutil"
"golang.stackrox.io/kube-linter/pkg/lintcontext"
"golang.stackrox.io/kube-linter/pkg/matcher"
)
Expand Down

0 comments on commit 9a8ea02

Please sign in to comment.