Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add back OAuth configuration link in kubeadmin notifier #1202

Merged
merged 1 commit into from
Feb 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions frontend/public/components/kube-admin-notifier.jsx
Original file line number Diff line number Diff line change
@@ -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');
Expand All @@ -17,8 +17,7 @@ export const KubeAdminNotifier = connect(userStateToProps)(({user}) => {
<div className="co-global-notification__content">
<p className="co-global-notification__text">
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 <Link to={oAuthResourcePath}>cluster OAuth configuration</Link> to allow others to log in. */}
Update the <Link to={oAuthResourcePath}>cluster OAuth configuration</Link> to allow others to log in.
</p>
</div>
</div>
Expand Down