-
Notifications
You must be signed in to change notification settings - Fork 55
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
[feat] Provision user and email credentials to gitconfig #708
Conversation
Signed-off-by: Josh Pinkney <joshpinkney@gmail.com>
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JPinkney 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 |
Signed-off-by: Josh Pinkney <joshpinkney@gmail.com>
Signed-off-by: Josh Pinkney <joshpinkney@gmail.com>
Signed-off-by: Josh Pinkney <joshpinkney@gmail.com>
939da04
to
1644718
Compare
Signed-off-by: Josh Pinkney <joshpinkney@gmail.com>
Signed-off-by: Josh Pinkney <joshpinkney@gmail.com>
Signed-off-by: Josh Pinkney <joshpinkney@gmail.com>
/test v8-devworkspace-operator-e2e |
This is good as first implementation. But rather than a specialized That would allow to mount a complete gitconfig (not only user name and email) and to mount any file in an existing folder:. For example: kind: ConfigMap
apiVersion: v1
metadata:
name: git-config-cm
annotations:
controller.devfile.io/mount-path: /etc/gitconfig
controller.devfile.io/sub-path: gitconfig
labels:
controller.devfile.io/mount-to-devworkspace: "true"
data:
gitconfig: |
[user]
email = jojo@gmail.com
name = Jojo
[core]
editor = vim
[alias]
... |
I beat you to the punch by about an hour :D #710 |
I saw that earlier today! I was probably still thinking at the right way to inject a |
@JPinkney: PR needs rebase. 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/test-infra repository. |
@amisevsk I believe we can close this one, right? |
I think so, I'll leave the branch in place in case it's needed later as this was initially requested by the Che server IIRC. |
Signed-off-by: Josh Pinkney joshpinkney@gmail.com
What does this PR do?
This PR automatically provisions user and email credentials to the gitconfig whenever the label: controller.devfile.io/git-user-credential is true.
If you want to provision git credentials to your gitconfig you can use:
What issues does this PR fix or reference?
#694
Is it tested? How?
Tested manually using the above configmap, but also added unit tests
PR Checklist
/test v8-devworkspace-operator-e2e, v8-che-happy-path
to trigger)v8-devworkspace-operator-e2e
: DevWorkspace e2e testv8-che-happy-path
: Happy path for verification integration with Che