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 name check logic to Toleration in ClusterSettings #536

Conversation

andrewballantyne
Copy link
Member

Resolves: #515

Description

Added the regexp k8s tells us and a similar error message so the Toleration Key is checked in real time.

Screen.Recording.2022-09-12.at.6.42.08.AM.mov

How Has This Been Tested?

Tested on the Toleration key in the Cluster Settings page.

Merge criteria:

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

@andrewballantyne andrewballantyne requested review from dlabaj and DaoDaoNoCode and removed request for LaVLaS and maroroman September 12, 2022 10:48
@andrewballantyne andrewballantyne added the do-not-merge/hold This PR is hold for some reason label Sep 12, 2022
Copy link
Contributor

@dlabaj dlabaj left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link
Contributor

@dlabaj dlabaj left a comment

Choose a reason for hiding this comment

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

One comment on how to prevent saving a bad entry.

<HelperTextItem hasIcon variant="error">
{notebookTolerationSettings.error}
</HelperTextItem>
)}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you change line 419 to isDisabled={!isSettingsChanged || notebookTolerationSettings.error !== undefined} That should prevent the user from saving bad values.

@andrewballantyne andrewballantyne removed the do-not-merge/hold This PR is hold for some reason label Sep 15, 2022
Copy link
Contributor

@dlabaj dlabaj left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Sep 15, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 15, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dlabaj

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

@dlabaj dlabaj added the do-not-merge/hold This PR is hold for some reason label Sep 15, 2022
@andrewballantyne andrewballantyne removed the do-not-merge/hold This PR is hold for some reason label Sep 15, 2022
@openshift-merge-robot openshift-merge-robot merged commit ef5ba37 into opendatahub-io:main Sep 15, 2022
LaVLaS pushed a commit to LaVLaS/odh-dashboard that referenced this pull request Sep 19, 2022
…#536)

* Add name check logic to Toleration in ClusterSettings

* Block saving when tolerations are in error
LaVLaS pushed a commit to LaVLaS/odh-dashboard that referenced this pull request Sep 20, 2022
…#536)

* Add name check logic to Toleration in ClusterSettings

* Block saving when tolerations are in error
@andrewballantyne andrewballantyne deleted the toleration-error-check branch September 23, 2022 22:47
strangiato pushed a commit to strangiato/odh-dashboard that referenced this pull request Oct 18, 2023
…#536)

* Add name check logic to Toleration in ClusterSettings

* Block saving when tolerations are in error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Tolerations have no validation
3 participants