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

Bug 1838698: Show alert when operator-recommended namespace already exists #5540

Merged
merged 1 commit into from May 26, 2020

Conversation

jhadvig
Copy link
Member

@jhadvig jhadvig commented May 22, 2020

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:
Screenshot 2020-05-22 at 15 23 19

Will probably conflict with #5529

/assign @spadgett

@openshift-ci-robot openshift-ci-robot added the bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. label May 22, 2020
@openshift-ci-robot
Copy link
Contributor

@jhadvig: This pull request references Bugzilla bug 1838698, which is invalid:

  • expected the bug to target the "4.5.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 1838698: Show alert when operator-recommended namespace already exists

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.

@openshift-ci-robot openshift-ci-robot added bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. component/olm Related to OLM labels May 22, 2020
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 22, 2020
@openshift openshift deleted a comment from openshift-ci-robot May 22, 2020
@openshift-ci-robot
Copy link
Contributor

@jhadvig: This pull request references Bugzilla bug 1838698, which is invalid:

  • expected the bug to target the "4.5.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

/bugzilla refresh

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
Copy link
Member Author

jhadvig commented May 22, 2020

/bugzilla refresh

@openshift-ci-robot
Copy link
Contributor

@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
  • bug is open, matching expected state (open)
  • bug target release (4.5.0) matches configured target release for branch (4.5.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

/bugzilla refresh

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.

@openshift-ci-robot openshift-ci-robot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels May 22, 2020
@spadgett
Copy link
Member

cc @itsptk @shawn-hurley

@@ -342,15 +342,23 @@ export const OperatorHubSubscribeForm: React.FC<OperatorHubSubscribeFormProps> =
const showMonitoringCheckbox =
operatorRequestsMonitoring && _.startsWith(selectedTargetNamespace, 'openshift-');

const createNamespaceDetails = isSuggestedNamespaceSelected && !suggestedNamespaceExists && (
Copy link
Member

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.

@itsptk
Copy link

itsptk commented May 22, 2020

existingNSbug

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

@tlwu2013
Copy link
Contributor

@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?

Namespace openshift-logging already exists and will be used. [_____]

thanks!

@jhadvig
Copy link
Member Author

jhadvig commented May 25, 2020

@tlwu2013 @spadgett what about ?

Namespace openshift-logging already exists and will be used. Other users could already have access to this namespace.

Screenshot 2020-05-25 at 14 45 03

Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@spadgett spadgett added this to the v4.5 milestone May 26, 2020
@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label May 26, 2020
@openshift-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit cc03e1f into openshift:master May 26, 2020
@openshift-ci-robot
Copy link
Contributor

@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:

Bug 1838698: Show alert when operator-recommended namespace already exists

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. component/olm Related to OLM lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants