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

Prevent inconsistency when allowed user namespaces is false and namespace contains random part. #18209

Merged
merged 1 commit into from
Oct 27, 2020

Conversation

mshaposhnik
Copy link
Contributor

@mshaposhnik mshaposhnik commented Oct 27, 2020

What does this PR do?

Some namespace naming inconsistency spotted, when che.infra.kubernetes.namespace.allow_user_defined=false and when we need to normalize the namespace name. PR fixes this situation.

Screenshot/screencast of this PR

What issues does this PR fix or reference?

#18178

How to test this PR?

Create a user with invalid symbols in username. Try create/run custom workspaces. Everything should run smooth. namespace name should remain the same.

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

@mshaposhnik mshaposhnik requested review from sparkoo and removed request for nickboldt, sleshchenko and amisevsk October 27, 2020 10:07
@che-bot che-bot added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. target/branch Indicates that a PR will be merged into a branch other than master. kind/bug Outline of a bug - must adhere to the bug report template. labels Oct 27, 2020
Copy link
Member

@sparkoo sparkoo left a comment

Choose a reason for hiding this comment

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

tried on minikube, works fine

@mshaposhnik mshaposhnik merged commit 8c9bc41 into eclipse-che:7.20.x Oct 27, 2020
@mshaposhnik mshaposhnik deleted the 7.20.x branch October 27, 2020 14:33
@che-bot che-bot removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template. target/branch Indicates that a PR will be merged into a branch other than master.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants