Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
  • Loading branch information
tolusha committed Mar 18, 2021
1 parent 6bf612f commit 7fb1f9c
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 @@ -617,7 +617,8 @@ func (r *ReconcileChe) Reconcile(request reconcile.Request) (reconcile.Result, e
}

if !util.IsOAuthEnabled(instance) && !util.IsWorkspaceInSameNamespaceWithChe(instance) {
exists, err := deploy.Get(deployContext, types.NamespacedName{Name: CheWorkspacesClusterRoleNameTemplate}, &rbac.ClusterRole{})
сheWorkspacesClusterRoleName := fmt.Sprintf(CheWorkspacesClusterRoleNameTemplate, instance.Namespace)
exists, err := deploy.Get(deployContext, types.NamespacedName{Name: сheWorkspacesClusterRoleName}, &rbac.ClusterRole{})
if err != nil {
logrus.Error(err)
return reconcile.Result{RequeueAfter: time.Second}, err
Expand Down

0 comments on commit 7fb1f9c

Please sign in to comment.