From ceb03b05047692a2c3e22a5f559b3af0ab66e4f5 Mon Sep 17 00:00:00 2001 From: Samuel Padgett Date: Wed, 20 Feb 2019 09:09:29 -0500 Subject: [PATCH] Add back OAuth configuration link in kubeadmin notifier --- frontend/public/components/kube-admin-notifier.jsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/frontend/public/components/kube-admin-notifier.jsx b/frontend/public/components/kube-admin-notifier.jsx index 2ed252a90ff..d1efc3f1c5c 100644 --- a/frontend/public/components/kube-admin-notifier.jsx +++ b/frontend/public/components/kube-admin-notifier.jsx @@ -1,14 +1,14 @@ import * as React from 'react'; -// import { Link } from 'react-router-dom'; +import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import * as _ from 'lodash-es'; -// import { OAuthModel } from '../models'; +import { OAuthModel } from '../models'; import { userStateToProps } from '../ui/ui-reducers'; import { KUBE_ADMIN_USERNAME } from '../const'; -// import { resourcePathFromModel } from './utils/resource-link'; +import { resourcePathFromModel } from './utils/resource-link'; -// const oAuthResourcePath = resourcePathFromModel(OAuthModel, 'cluster'); +const oAuthResourcePath = resourcePathFromModel(OAuthModel, 'cluster'); export const KubeAdminNotifier = connect(userStateToProps)(({user}) => { const username = _.get(user, 'metadata.name'); @@ -17,8 +17,7 @@ export const KubeAdminNotifier = connect(userStateToProps)(({user}) => {

You are logged in as a temporary administrative user. - {/* Temporarily disable the link since it's not yet possible to add identity providers. */} - {/* Update the cluster OAuth configuration to allow others to log in. */} + Update the cluster OAuth configuration to allow others to log in.