Skip to content

Commit

Permalink
Fix warning message for openshift 3
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Andriienko <[email protected]>
  • Loading branch information
AndrienkoAleksandr committed May 14, 2020
1 parent a4a5913 commit 5fdc52a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/che/che_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ type ReconcileChe struct {
const (
failedNoOpenshiftUserReason = "InstallOrUpdateFailed"
warningNoIdentityProvidersMessage = "No Openshift identity providers. Openshift oAuth was disabled. How to add identity provider read in the Help Link:"
warningNoRealUsersMessage = "No real users. Openshift oAuth was disabled. How to add new user read in the Help Link:"
failedUnableToGetOAuth = "Unable to get openshift oauth."
failedUnableToGetOpenshiftUsers = "Unable to get users on the OpenShift cluster."

Expand Down Expand Up @@ -409,7 +410,7 @@ func (r *ReconcileChe) Reconcile(request reconcile.Request) (reconcile.Result, e
return reconcile.Result{}, err
}
if len(users.Items) < 1 {
logrus.Warn(warningNoIdentityProvidersMessage, " ", howToConfigureOAuthLinkOS3)
logrus.Warn(warningNoRealUsersMessage, " ", howToConfigureOAuthLinkOS3)
r.backOffOAuth(request, instance)
}
}
Expand Down

0 comments on commit 5fdc52a

Please sign in to comment.