diff --git a/pkg/kubectl/bind-apiservice/cmd/cmd.go b/pkg/kubectl/bind-apiservice/cmd/cmd.go index ebd2e7d9..77a8c6e9 100644 --- a/pkg/kubectl/bind-apiservice/cmd/cmd.go +++ b/pkg/kubectl/bind-apiservice/cmd/cmd.go @@ -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" @@ -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()) }, } diff --git a/pkg/kubectl/bind-apiservice/plugin/bind.go b/pkg/kubectl/bind-apiservice/plugin/bind.go index f0fa6a77..ffc7e4ae 100644 --- a/pkg/kubectl/bind-apiservice/plugin/bind.go +++ b/pkg/kubectl/bind-apiservice/plugin/bind.go @@ -61,7 +61,6 @@ type BindAPIServiceOptions struct { SkipKonnector bool KonnectorImageOverride string DowngradeKonnector bool - Banner bool url string } @@ -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.