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
Bug 1838698: Show alert when operator-recommended namespace already exists #5540
Conversation
@jhadvig: This pull request references Bugzilla bug 1838698, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@jhadvig: This pull request references Bugzilla bug 1838698, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/bugzilla refresh |
@jhadvig: This pull request references Bugzilla bug 1838698, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@@ -342,15 +342,23 @@ export const OperatorHubSubscribeForm: React.FC<OperatorHubSubscribeFormProps> = | |||
const showMonitoringCheckbox = | |||
operatorRequestsMonitoring && _.startsWith(selectedTargetNamespace, 'openshift-'); | |||
|
|||
const createNamespaceDetails = isSuggestedNamespaceSelected && !suggestedNamespaceExists && ( |
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.
This changes the logic for when we show the monitoring checkbox. I don't think we should show the checkbox for namespaces that already exist.
It seems like now there is a risk that the user will just see the blue alert and ignore its contents since it always appears. Do either of this situations justify a warning/yellow alert? How critical is it that the user reads/understands this info? cc @tlwu2013 |
@itsptk yeah, if this relates to potential security concerns (read this from Slack messages), I guess it worths being bumped up to a warning/yellow alert. @shawn-hurley / @spadgett could you help suggest the alert text in [____] that hints users to make sure this NS isn't problematic?
thanks! |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jhadvig, spadgett 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 |
@jhadvig: All pull requests linked via external trackers have merged: openshift/console#5540. Bugzilla bug 1838698 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Wasnt really sure if we want to somehow make "Namespace already exists" alert more informative, since the administrator might not realize the namespace isn't being created just for the operator, and other users on the cluster could already have admin access to that namespace.
Screen:
Will probably conflict with #5529
/assign @spadgett