Kubeflow: Namespace registration fails when userDetails include a dot

Created on 10 Sep 2019  路  1Comment  路  Source: kubeflow/kubeflow

/kind bug

What steps did you take and what happened:
[A clear and concise description of what the bug is.]

During Namespace registration the name of the namespace is being retrieved from the email address and the dot is not being replaced with a hyphen causing. The profile is created but the namespace isn't due to it not being a valid.

What did you expect to happen:

I expected my email name joel.cooklin to be replaced with joel-cooklin as the namespace it would create.

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

The regex at https://github.com/kubeflow/kubeflow/blob/5c4fc0b0afab30b7a43dae534db8d3a633ccf214/components/centraldashboard/public/components/registration-page.js#L59 needs to be changed. I used /[^\w]|_|\./g to fix it. The ^ operator was previously excluding \..

Environment:

  • Kubeflow version: (version number can be found at the bottom left corner of the Kubeflow dashboard):

    • KF .62

    • centraldashboard (v20190909-v0.6.0-rc.0-89-g5b652b18)

kinbug

Most helpful comment

Issue-Label Bot is automatically applying the label kind/bug to this issue, with a confidence of 0.99. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

>All comments

Issue-Label Bot is automatically applying the label kind/bug to this issue, with a confidence of 0.99. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Was this page helpful?
0 / 5 - 0 ratings