Skip to content

Commit

Permalink
Inadvertantly exposed validate package. (#5726)
Browse files Browse the repository at this point in the history
The validate package was not meant to be public, moving it to internal.

Signed-off-by: jesus m. rodriguez <[email protected]>
  • Loading branch information
jmrodri authored May 4, 2022
1 parent a217ff4 commit d43225a
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions changelog/fragments/01-move-validate-to-internal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# entries is a list of entries to include in
# release notes and/or the migration guide
entries:
- description: >
The validate package was inadvertantly exposed, it should be internal as
all the other packages are in operator-sdk. The package was moved
from `pkg/validate` to `internal/validate`.
# kind is one of:
# - addition
# - change
# - deprecation
# - removal
# - bugfix
kind: "change"
# Is this a breaking change?
breaking: false
2 changes: 1 addition & 1 deletion internal/cmd/operator-sdk/bundle/validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
"k8s.io/apimachinery/pkg/labels"

internalregistry "github.com/operator-framework/operator-sdk/internal/registry"
"github.com/operator-framework/operator-sdk/pkg/validate"
"github.com/operator-framework/operator-sdk/internal/validate"
)

type bundleValidateCmd struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/operator-sdk/bundle/validate/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
log "github.com/sirupsen/logrus"
"github.com/spf13/pflag"

"github.com/operator-framework/operator-sdk/pkg/validate"
"github.com/operator-framework/operator-sdk/internal/validate"
)

var _ = Describe("Running a bundle validate command", func() {
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.
File renamed without changes.
File renamed without changes.

0 comments on commit d43225a

Please sign in to comment.