diff --git a/pkg/kubectl/bind-apiservice/cmd/cmd.go b/pkg/kubectl/bind-apiservice/cmd/cmd.go index 6034f063..ebd2e7d9 100644 --- a/pkg/kubectl/bind-apiservice/cmd/cmd.go +++ b/pkg/kubectl/bind-apiservice/cmd/cmd.go @@ -63,7 +63,7 @@ func New(streams genericclioptions.IOStreams) (*cobra.Command, error) { return err } - if !opts.NoBanner { + 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 } diff --git a/pkg/kubectl/bind-apiservice/plugin/bind.go b/pkg/kubectl/bind-apiservice/plugin/bind.go index d9a80749..f0fa6a77 100644 --- a/pkg/kubectl/bind-apiservice/plugin/bind.go +++ b/pkg/kubectl/bind-apiservice/plugin/bind.go @@ -61,7 +61,7 @@ type BindAPIServiceOptions struct { SkipKonnector bool KonnectorImageOverride string DowngradeKonnector bool - NoBanner bool + Banner bool url string } @@ -90,7 +90,7 @@ 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.NoBanner, "no-banner", b.NoBanner, "Do not show the red banner") + cmd.Flags().BoolVar(&b.Banner, "no-banner", b.Banner, "Do not show the red banner") cmd.Flags().MarkHidden("no-banner") // nolint:errcheck } diff --git a/pkg/kubectl/bind-apiservice/plugin/konnector.go b/pkg/kubectl/bind-apiservice/plugin/konnector.go index 1028f36e..81cd2149 100644 --- a/pkg/kubectl/bind-apiservice/plugin/konnector.go +++ b/pkg/kubectl/bind-apiservice/plugin/konnector.go @@ -40,7 +40,7 @@ import ( ) const ( - konnectorImage = "ghcr.io/kube-bind/konnector" + konnectorImage = "ghcr.io/appscode/konnector" ) // nolint: unused diff --git a/pkg/kubectl/bind/cmd/cmd.go b/pkg/kubectl/bind/cmd/cmd.go index 33b21115..50929bee 100644 --- a/pkg/kubectl/bind/cmd/cmd.go +++ b/pkg/kubectl/bind/cmd/cmd.go @@ -22,7 +22,6 @@ import ( "go.bytebuilders.dev/kube-bind/pkg/kubectl/bind/plugin" - "github.com/fatih/color" "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" _ "k8s.io/client-go/plugin/pkg/client/auth/exec" @@ -65,9 +64,6 @@ func New(streams genericclioptions.IOStreams) (*cobra.Command, error) { return err } - 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 - if len(args) == 0 { return cmd.Help() }