-
Notifications
You must be signed in to change notification settings - Fork 31
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
[RHSTOR-5133] Adds Provider Mode support #1115
[RHSTOR-5133] Adds Provider Mode support #1115
Conversation
769cfd5
to
112ecb1
Compare
112ecb1
to
8a4a717
Compare
const MODAL_TITLE = t('Client onboarding token'); | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
const [ticket, _setTicket] = React.useState('dummy--text'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am assuming that u r setting initial state to dummy--text
and have eslint-disable-next-line
comment as this modal is still WIP... and u did not forget to remove this :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_setTicket
iis not being used so need this
@@ -81,6 +85,7 @@ export const setOCSFlags = async (setFlag: SetFeatureFlag) => { | |||
'standalone' | |||
); | |||
setFlag(OCS_NFS_ENABLED, storageCluster?.spec?.nfs?.enable === true); | |||
setFlag(PROVIDER_MODE, isProviderMode(storageCluster)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just FYI, we will need to move this to redux later... useODFSystemFlags
is already taking care of this, u just need to add a new field for isProviderMode
in the object (exactly same as other flags)...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need it is a flag to disable extensions for Provider mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aahhh !!
so how will u set this in case of multiple storage cluster CR then ?? right now we are just taking first cluster and checking for the flag, this will not work for multiple clusters...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we need to loop over all the CRs...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we supporting multiple clusters as part of 4.15?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah 1 internal + 1 external... so multiple StorageCluster CRs can be present at a time...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can filter internal one though... that will always be single
b7e2a9f
to
b8db10b
Compare
LGTM cc @GowthamShanmugam |
/test odf-console-e2e-aws |
b8db10b
to
3b0cc60
Compare
Adds list page for Clients Adds Modal for generating onboarding token for clients Updates ODF dashboard to add Client Status Adds flags for Provider Mode Disables StorageClass and BlockPool creation in Provider mode Signed-off-by: Bipul Adhikari <[email protected]>
3b0cc60
to
7b8040b
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bipuladh, SanjalKatiyar The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test odf-console-e2e-aws |
e70f38c
into
red-hat-storage:master
Do I need special login /password to access this? Also, are these UI changes available in the provider base cluster dashboard? |
Screenshots:
Onboarding token modal
Client mismatch popover
Status Card
Signed-off-by: Bipul Adhikari [email protected]