Skip to content

Commit 14ac711

Browse files
authored
cmd/operator-sdk/main.go: remove --version flag (#1444)
* cmd/operator-sdk/main.go: remove --version flag
1 parent 0dedc05 commit 14ac711

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
### Removed
2727

2828
- The SDK will no longer run `defaulter-gen` on running `operator-sdk generate k8s`. Defaulting for CRDs should be handled with mutating admission webhooks. ([#1288](https://github.com/operator-framework/operator-sdk/pull/1288))
29+
- The `--version` flag was removed. Users should use the `operator-sdk version` command. ([#1444](https://github.com/operator-framework/operator-sdk/pull/1444))
2930
- **Breaking Change**: The `test cluster` subcommand and the corresponding `--enable-tests` flag for the `build` subcommand have been removed ([#1414](https://github.com/operator-framework/operator-sdk/pull/1414))
3031
- **Breaking Change**: The `--cluster-scoped` flag for `operator-sdk new` has been removed so it won't scaffold a cluster-scoped operator. Read the [operator scope](https://github.com/operator-framework/operator-sdk/blob/master/doc/operator-scope.md) documentation on the changes needed to run a cluster-scoped operator. ([#1434](https://github.com/operator-framework/operator-sdk/pull/1434))
3132

cmd/operator-sdk/main.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ import (
3434
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/up"
3535
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/version"
3636
flags "github.com/operator-framework/operator-sdk/internal/pkg/flags"
37-
osdkversion "github.com/operator-framework/operator-sdk/version"
3837

3938
log "github.com/sirupsen/logrus"
4039
"github.com/spf13/cobra"
@@ -44,9 +43,8 @@ import (
4443

4544
func main() {
4645
root := &cobra.Command{
47-
Use: "operator-sdk",
48-
Short: "An SDK for building operators with ease",
49-
Version: osdkversion.Version,
46+
Use: "operator-sdk",
47+
Short: "An SDK for building operators with ease",
5048
PersistentPreRun: func(cmd *cobra.Command, args []string) {
5149
if viper.GetBool(flags.VerboseOpt) {
5250
err := projutil.SetGoVerbose()

0 commit comments

Comments
 (0)