Skip to content

Commit

Permalink
tmp: makes tekton cmds not requiring operator check
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszmajsak committed Sep 15, 2022
1 parent e7f125d commit 0fbd128
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 2 additions & 6 deletions pkg/cmd/create/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"github.com/go-logr/logr"
"github.com/spf13/cobra"

"github.com/maistra/istio-workspace/pkg/cmd"
"github.com/maistra/istio-workspace/pkg/cmd/config"
internal "github.com/maistra/istio-workspace/pkg/cmd/internal/session"
"github.com/maistra/istio-workspace/pkg/log"
Expand All @@ -21,11 +20,8 @@ var logger = func() logr.Logger {
// NewCmd creates instance of "create" Cobra Command with flags and execution logic defined.
func NewCmd() *cobra.Command {
createCmd := &cobra.Command{
Use: "create",
Short: "Creates a new Session",
Annotations: map[string]string{
cmd.AnnotationOperatorRequired: "true",
},
Use: "create",
Short: "Creates a new Session",
SilenceUsage: true,
PreRunE: func(cmd *cobra.Command, args []string) error {
return errors.Wrap(config.SyncFullyQualifiedFlags(cmd), "failed syncing flags")
Expand Down
4 changes: 0 additions & 4 deletions pkg/cmd/delete/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"github.com/go-logr/logr"
"github.com/spf13/cobra"

"github.com/maistra/istio-workspace/pkg/cmd"
"github.com/maistra/istio-workspace/pkg/cmd/config"
internal "github.com/maistra/istio-workspace/pkg/cmd/internal/session"
"github.com/maistra/istio-workspace/pkg/log"
Expand All @@ -21,9 +20,6 @@ func NewCmd() *cobra.Command {
Use: "delete",
Short: "Deletes an existing Session",
SilenceUsage: true,
Annotations: map[string]string{
cmd.AnnotationOperatorRequired: "true",
},
PreRunE: func(cmd *cobra.Command, args []string) error {
return errors.Wrap(config.SyncFullyQualifiedFlags(cmd), "failed syncing flags")
},
Expand Down

0 comments on commit 0fbd128

Please sign in to comment.