Skip to content

Commit

Permalink
Remove banner
Browse files Browse the repository at this point in the history
Signed-off-by: rasel <[email protected]>
  • Loading branch information
Superm4n97 committed Mar 28, 2024
1 parent 5876258 commit 0a83027
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions pkg/kubectl/bind-apiservice/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (

"go.bytebuilders.dev/kube-bind/pkg/kubectl/bind-apiservice/plugin"

"github.com/fatih/color"
"github.com/spf13/cobra"
"k8s.io/cli-runtime/pkg/genericclioptions"
_ "k8s.io/client-go/plugin/pkg/client/auth/exec"
Expand Down Expand Up @@ -63,11 +62,6 @@ func New(streams genericclioptions.IOStreams) (*cobra.Command, error) {
return err
}

if opts.Banner {
yellow := color.New(color.BgRed, color.FgBlack).SprintFunc()
fmt.Fprintf(streams.ErrOut, yellow("DISCLAIMER: This is a prototype. It will change in incompatible ways at any time.")+"\n\n") // nolint: errcheck
}

return opts.Run(cmd.Context())
},
}
Expand Down
3 changes: 0 additions & 3 deletions pkg/kubectl/bind-apiservice/plugin/bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ type BindAPIServiceOptions struct {
SkipKonnector bool
KonnectorImageOverride string
DowngradeKonnector bool
Banner bool

url string
}
Expand Down Expand Up @@ -90,8 +89,6 @@ func (b *BindAPIServiceOptions) AddCmdFlags(cmd *cobra.Command) {
cmd.Flags().BoolVar(&b.DowngradeKonnector, "downgrade-konnector", b.DowngradeKonnector, "Downgrade the konnector to the version of the kubectl-bind-apiservice binary")
cmd.Flags().StringVar(&b.KonnectorImageOverride, "konnector-image", b.KonnectorImageOverride, "The konnector image to use")
cmd.Flags().MarkHidden("konnector-image") // nolint:errcheck
cmd.Flags().BoolVar(&b.Banner, "no-banner", b.Banner, "Do not show the red banner")
cmd.Flags().MarkHidden("no-banner") // nolint:errcheck
}

// Complete ensures all fields are initialized.
Expand Down

0 comments on commit 0a83027

Please sign in to comment.