Skip to content

Commit 93e7c4c

Browse files
Merge pull request #1202 from spadgett/oauth-banner-link
Add back OAuth configuration link in kubeadmin notifier
2 parents a0b75bc + ceb03b0 commit 93e7c4c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

frontend/public/components/kube-admin-notifier.jsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import * as React from 'react';
2-
// import { Link } from 'react-router-dom';
2+
import { Link } from 'react-router-dom';
33
import { connect } from 'react-redux';
44
import * as _ from 'lodash-es';
55

6-
// import { OAuthModel } from '../models';
6+
import { OAuthModel } from '../models';
77
import { userStateToProps } from '../ui/ui-reducers';
88
import { KUBE_ADMIN_USERNAME } from '../const';
9-
// import { resourcePathFromModel } from './utils/resource-link';
9+
import { resourcePathFromModel } from './utils/resource-link';
1010

11-
// const oAuthResourcePath = resourcePathFromModel(OAuthModel, 'cluster');
11+
const oAuthResourcePath = resourcePathFromModel(OAuthModel, 'cluster');
1212

1313
export const KubeAdminNotifier = connect(userStateToProps)(({user}) => {
1414
const username = _.get(user, 'metadata.name');
@@ -17,8 +17,7 @@ export const KubeAdminNotifier = connect(userStateToProps)(({user}) => {
1717
<div className="co-global-notification__content">
1818
<p className="co-global-notification__text">
1919
You are logged in as a temporary administrative user.
20-
{/* Temporarily disable the link since it's not yet possible to add identity providers. */}
21-
{/* Update the <Link to={oAuthResourcePath}>cluster OAuth configuration</Link> to allow others to log in. */}
20+
Update the <Link to={oAuthResourcePath}>cluster OAuth configuration</Link> to allow others to log in.
2221
</p>
2322
</div>
2423
</div>

0 commit comments

Comments
 (0)