-
Notifications
You must be signed in to change notification settings - Fork 30
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
CNV-19414: Templates project tab #753
CNV-19414: Templates project tab #753
Conversation
61bf50a
to
db10846
Compare
Signed-off-by: Matan Schatzman <mschatzm@redhat.com>
db10846
to
cdc13dd
Compare
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 think we need to change in all the text shown to user all resources like Templates
Projects
Namespaces
to be PascalCase, please fix them as well
other than that looks good to me :)
isDisabled={isEmpty(name)} | ||
> | ||
<Text> | ||
{t('An OpenShift project is an alternative representation of a Kubernetes namespace.')} |
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 think we can simply omit the 'An' at the beginning
<Popover | ||
bodyContent={ | ||
<Trans t={t} ns="plugin__kubevirt-plugin"> | ||
A Project name must consist of lower case alphanumeric characters or ', and |
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 think we can omit the 'A' at the beginning
{ | ||
op: 'replace', | ||
path: `/spec/commonTemplatesNamespace`, | ||
value: newNamespace === OPENSHIFT ? null : newNamespace, |
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.
why do you need to check here if the newNamespace is openshift? what will happen if we changed it once from openshift
to some other namespace and than I want to change it back? won't we lose all templates?
/retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: avivtur, metalice 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 |
Signed-off-by: Matan Schatzman mschatzm@redhat.com
📝 Description
Adding template project tab - this gives the user option to move common templates from one name space to another.
🎥 Demo