From fa58bbd4d6a45ccc202fd1407910cb5f64a7a30a Mon Sep 17 00:00:00 2001 From: Oleksandr Andriienko Date: Tue, 9 Feb 2021 17:48:32 +0200 Subject: [PATCH] Update pkg/controller/che/che_controller.go Co-authored-by: Anatolii Bazko --- pkg/controller/che/che_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/che/che_controller.go b/pkg/controller/che/che_controller.go index cdc5d6454..0b501ed37 100644 --- a/pkg/controller/che/che_controller.go +++ b/pkg/controller/che/che_controller.go @@ -1137,7 +1137,7 @@ func (r *ReconcileChe) autoEnableOAuth(deployContext *deploy.DeployContext, requ if err := r.userHandler.CreateOAuthInitialUser(deploy.DefaultCheFlavor(cr), cr.Namespace, openshitOAuth); err != nil { message = warningNoIdentityProvidersMessage + " Operator tried to create initial OpenShift OAuth user for HTPasswd identity provider, but failed. Cause: " + err.Error() logrus.Error(message) - logrus.Info(" You can create identity provider manually:" + howToAddIdentityProviderLinkOS4) + logrus.Info("To enable OpenShift OAuth, please add identity provider first: " + howToAddIdentityProviderLinkOS4) reason = failedNoIdentityProviders // Don't try to create initial user any more, che-operator shouldn't hang on this step. cr.Spec.Auth.InitialOpenShiftOAuthUser = nil