-
Notifications
You must be signed in to change notification settings - Fork 73
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
Rework the gitconfig configmap provision #766
Conversation
...rkspace/infrastructure/kubernetes/namespace/configurator/GitconfigConfigmapConfigurator.java
Fixed
Show fixed
Hide fixed
...rkspace/infrastructure/kubernetes/namespace/configurator/GitconfigConfigmapConfigurator.java
Fixed
Show fixed
Hide fixed
/retest |
@@ -109,7 +109,7 @@ protected void configure() { | |||
namespaceConfigurators.addBinding().to(WorkspaceServiceAccountConfigurator.class); | |||
namespaceConfigurators.addBinding().to(UserProfileConfigurator.class); | |||
namespaceConfigurators.addBinding().to(UserPreferencesConfigurator.class); | |||
namespaceConfigurators.addBinding().to(GitconfigUserDataConfigurator.class); | |||
namespaceConfigurators.addBinding().to(GitconfigConfigmapConfigurator.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just call it GitconfigConfigurator
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
ImmutableMap.of( | ||
"controller.devfile.io/mount-as", "subpath", "controller.devfile.io/mount-path", "/etc"); | ||
private final Pattern usernmaePattern = | ||
Pattern.compile("\\[user](.|\\s)*name\\s*=\\s*(?<username>.*)"); |
Check failure
Code scanning / CodeQL
Inefficient regular expression High
private final Pattern usernmaePattern = | ||
Pattern.compile("\\[user](.|\\s)*name\\s*=\\s*(?<username>.*)"); | ||
private final Pattern emailPattern = | ||
Pattern.compile("\\[user](.|\\s)*email\\s*=\\s*(?<email>.*)"); |
Check failure
Code scanning / CodeQL
Inefficient regular expression High
Verified on Eclipse Che with the functionality works properly |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: artaleks9, tolusha, vinokurig The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@vinokurig: The following test failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
Build 3.20 :: server_3.x/383: Console, Changes, Git Data |
Build 3.20 :: sync-to-downstream_3.x/8827: Console, Changes, Git Data |
Build 3.20 :: get-sources-rhpkg-container-build_3.x/8945: server : 3.x :: Failed in 66771381 : BREW:BUILD/STATUS:UNKNOWN |
Enhance the provision of the workspace gitconfig, to be able to respect data another from username and email.
What does this PR do?
Enhance the provision of the workspace gitconfig, to be able to respect data another from username and email.
Screenshot/screencast of this PR
What issues does this PR fix or reference?
https://issues.redhat.com/browse/CRW-7947
How to test this PR?
quay.io/eclipse/che-server:pr-766
Switch to Viewer
, see:See: username and email were fetched from the git provider's user account.
PR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or reference
andHow to test this PR
completedRelease Notes
Reviewers
Reviewers, please comment how you tested the PR when approving it.