Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions changelog/fragments/scorecard-move-alpha.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
entries:
- description: >
Changes the alpha scorecard command to become the standard scorecard
command.

kind: "change"

# Is this a breaking change?
breaking: true

# NOTE: ONLY USE `pull_request_override` WHEN ADDING THIS
# FILE FOR A PREVIOUSLY MERGED PULL_REQUEST!
#
# The generator auto-detects the PR number from the commit
# message in which this file was originally added.
#
# What is the pull request number (without the "#")?
# pull_request_override: 0


# Migration can be defined to automatically add a section to
# the migration guide. This is required for breaking changes.
migration:
header: Move scorecard/alpha to scorecard
body: |
If you referenced 'operator-sdk alpha scorecard', you will
need to update them to use 'operator-sdk scorecard'.
27 changes: 0 additions & 27 deletions cmd/operator-sdk/alpha/alpha_suite_test.go

This file was deleted.

33 changes: 0 additions & 33 deletions cmd/operator-sdk/alpha/cmd.go

This file was deleted.

33 changes: 0 additions & 33 deletions cmd/operator-sdk/alpha/cmd_test.go

This file was deleted.

2 changes: 1 addition & 1 deletion cmd/operator-sdk/bundle/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

"github.com/blang/semver"
"github.com/operator-framework/operator-registry/pkg/lib/bundle"
scorecard "github.com/operator-framework/operator-sdk/internal/scorecard/alpha"
"github.com/operator-framework/operator-sdk/internal/scorecard"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
Expand Down
5 changes: 2 additions & 3 deletions cmd/operator-sdk/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
package cli

import (
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/alpha"
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/build"
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/bundle"
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/cleanup"
Expand All @@ -24,6 +23,7 @@ import (
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/new"
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/olm"
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/run"
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/scorecard"
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/version"
"github.com/operator-framework/operator-sdk/internal/flags"
golangv2 "github.com/operator-framework/operator-sdk/internal/plugins/golang/v2"
Expand All @@ -40,8 +40,7 @@ var commands = []*cobra.Command{
// The "new" cmd provides a way to scaffold Helm/Ansible projects
// from the new CLI.
new.NewCmd(),

alpha.NewCmd(),
scorecard.NewCmd(),
build.NewCmd(),
bundle.NewCmd(),
cleanup.NewCmd(),
Expand Down
4 changes: 2 additions & 2 deletions cmd/operator-sdk/cli/legacy.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ import (
"github.com/spf13/viper"

"github.com/operator-framework/operator-sdk/cmd/operator-sdk/add"
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/alpha"
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/build"
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/bundle"
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/completion"
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/generate"
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/new"
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/olm"
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/scorecard"
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/version"
"github.com/operator-framework/operator-sdk/internal/flags"
"github.com/operator-framework/operator-sdk/internal/util/projutil"
Expand Down Expand Up @@ -64,9 +64,9 @@ func GetCLIRoot() *cobra.Command {

root.AddCommand(
add.NewCmd(),
alpha.NewCmd(),
build.NewCmd(),
bundle.NewCmdLegacy(),
scorecard.NewCmd(),
completion.NewCmd(),
generate.NewCmdLegacy(),
new.NewCmd(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (

"github.com/operator-framework/operator-sdk/internal/flags"
registryutil "github.com/operator-framework/operator-sdk/internal/registry"
scorecard "github.com/operator-framework/operator-sdk/internal/scorecard/alpha"
"github.com/operator-framework/operator-sdk/internal/scorecard"
"github.com/operator-framework/operator-sdk/pkg/apis/scorecard/v1alpha3"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
. "github.com/onsi/gomega"
)

var _ = Describe("Running an alpha scorecard command", func() {
var _ = Describe("Running the scorecard command", func() {
Describe("NewCmd", func() {
It("builds and returns a cobra command", func() {
cmd := NewCmd()
Expand Down
4 changes: 2 additions & 2 deletions images/scorecard-test/cmd/test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
apimanifests "github.com/operator-framework/api/pkg/manifests"

registryutil "github.com/operator-framework/operator-sdk/internal/registry"
scorecard "github.com/operator-framework/operator-sdk/internal/scorecard/alpha"
"github.com/operator-framework/operator-sdk/internal/scorecard/alpha/tests"
"github.com/operator-framework/operator-sdk/internal/scorecard"
"github.com/operator-framework/operator-sdk/internal/scorecard/tests"
scapiv1alpha3 "github.com/operator-framework/operator-sdk/pkg/apis/scorecard/v1alpha3"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package alpha
package scorecard

import (
"archive/tar"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package alpha
package scorecard

import (
"archive/tar"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package alpha
package scorecard

import (
"io/ioutil"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package alpha
package scorecard

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"log"
"os"

scorecard "github.com/operator-framework/operator-sdk/internal/scorecard/alpha"
"github.com/operator-framework/operator-sdk/internal/scorecard/alpha/examples/custom-scorecard-tests/internal/tests"
"github.com/operator-framework/operator-sdk/internal/scorecard"
"github.com/operator-framework/operator-sdk/internal/scorecard/examples/custom-scorecard-tests/internal/tests"

apimanifests "github.com/operator-framework/api/pkg/manifests"
scapiv1alpha3 "github.com/operator-framework/operator-sdk/pkg/apis/scorecard/v1alpha3"
Expand Down Expand Up @@ -51,7 +51,7 @@ func main() {
var result scapiv1alpha3.TestStatus

// Names of the custom tests which would be passed in the
// `operator-sdk alpha` command.
// `operator-sdk` command.
switch entrypoint[0] {
case tests.CustomTest1Name:
result = tests.CustomTest1(cfg)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package alpha
package scorecard

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package alpha
package scorecard

import (
"path/filepath"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package alpha
package scorecard

import (
"os"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package alpha
package scorecard

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package alpha
package scorecard

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package alpha
package scorecard

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package alpha
package scorecard

import (
"archive/tar"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package alpha
package scorecard

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package alpha
package scorecard

import (
"bytes"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion website/content/en/docs/cli/operator-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ An SDK for building operators with ease
### SEE ALSO

* [operator-sdk add](../operator-sdk_add) - Adds a controller or resource to the project
* [operator-sdk alpha](../operator-sdk_alpha) - Run an alpha subcommand
* [operator-sdk build](../operator-sdk_build) - Compiles code and builds artifacts
* [operator-sdk bundle](../operator-sdk_bundle) - Manage operator bundle metadata
* [operator-sdk completion](../operator-sdk_completion) - Generators for shell completions
* [operator-sdk generate](../operator-sdk_generate) - Invokes a specific generator
* [operator-sdk new](../operator-sdk_new) - Creates a new operator application
* [operator-sdk olm](../operator-sdk_olm) - Manage the Operator Lifecycle Manager installation in your cluster
* [operator-sdk scorecard](../operator-sdk_scorecard) - Runs scorecard
* [operator-sdk version](../operator-sdk_version) - Prints the version of operator-sdk

22 changes: 0 additions & 22 deletions website/content/en/docs/cli/operator-sdk_alpha.md

This file was deleted.

Loading