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

Allow Longhorn CSI storage driver to be selected #12682

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

rak-phillip
Copy link
Member

@rak-phillip rak-phillip commented Nov 26, 2024

Summary

This resolves an issue with selecting options for Pod Storage: CSI. It appears that there are two different ways that an option can be represented, by either being a string or an object with a label key. It also appears that periods are exclusively used for i18n selectors, so the key for Longhorn has been updated to use - instead.

Fixes #11899

Occurred changes and/or fixed issues

  • Create methods for getting CSI option labels
  • Replace periods with - in keys like driver.longhorn.io so that the i18n implementation will properly match a translation.
  • Add e2e test for selecting Longhorn CSI Pod storage

Technical notes summary

  • Options for CSI can be either a string or an object; objects contain a label property

Areas or cases that should be tested

See associated issue for more instructions.

  • Adding CSI storage driver in pod storage
  • Editing CSI storage driver in pod storage

Areas which could experience regressions

  • Adding CSI storage driver in pod storage
  • Editing CSI storage driver in pod storage

Checklist

  • The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
  • The PR has a Milestone
  • The PR template has been filled out
  • The PR has been self reviewed
  • The PR has a reviewer assigned
  • The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
  • The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes

Periods are used as a default key separator in Dashboard's i18n implementation. Using `-` instead of periods in our keys allows for a proper lookup of keys.

Signed-off-by: Phillip Rak <[email protected]>
Options for CSI can be either a string or an object; objects contain a label property. 

Replace periods with `-` in keys like `driver.longhorn.io` so that the i18n implementation will properly match a translation.

Signed-off-by: Phillip Rak <[email protected]>
The `name` prop for tabs assigns an id to a `section` element in the underlying tab. Since ids must be unique in the document, there conflicts can arise when programmatically selecting tabs.

Signed-off-by: Phillip Rak <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to select Deployment Pod Storage driver
1 participant