From d756da41b958162a920ae396c4250703348384d0 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 16 Feb 2022 20:20:57 -0800 Subject: [PATCH] fix: print gateway banner on removal notice --- cmd/gateway-main.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cmd/gateway-main.go b/cmd/gateway-main.go index 4df077f50..a1b5b31e2 100644 --- a/cmd/gateway-main.go +++ b/cmd/gateway-main.go @@ -31,6 +31,7 @@ import ( "github.com/gorilla/mux" "github.com/minio/cli" "github.com/minio/madmin-go" + "github.com/minio/minio/internal/color" xhttp "github.com/minio/minio/internal/http" "github.com/minio/minio/internal/logger" "github.com/minio/pkg/certs" @@ -375,5 +376,15 @@ func StartGateway(ctx *cli.Context, gw Gateway) { logger.Info("======") } + // TODO: remove the following line by June 1st. + logStartupMessage( + color.RedBold(` +=================================================================================== +**** WARNING: MinIO Gateway will be removed by June 1st from MinIO repository ***** + +Please read https://github.com/minio/minio/issues/14331 +=================================================================================== +`)) + <-globalOSSignalCh }