-
Notifications
You must be signed in to change notification settings - Fork 576
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
Change git-clone default userHome #1180
base: main
Are you sure you want to change the base?
Conversation
|
Hi @natifridman. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Catlin Output
|
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.
/ok-to-test
task/git-clone/0.9/git-clone.yaml
Outdated
@@ -107,7 +107,7 @@ spec: | |||
description: | | |||
Absolute path to the user's home directory. | |||
type: string | |||
default: "/home/git" | |||
default: "/workspace/nonroot" |
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.
this can probably change user experience for all the current users. Can you please bump the version of git-clone? Also can you please help with the Pipelines version and the platform on which you are facing this issue? Probably it will be worth adding in the readme of the new version of git-clone task v0.10
.
@khrm @natifridman do let me know your thoughts around this 😄
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.
Created new version v0.10
@vinamra28 Let me know if I missed something. Where would you add the Pipelines version?
Diff between version 0.9 and 0.10diff --git a/task/git-clone/0.9/git-clone.yaml b/task/git-clone/0.10/git-clone.yaml
index c7eed37..931c68c 100644
--- a/task/git-clone/0.9/git-clone.yaml
+++ b/task/git-clone/0.10/git-clone.yaml
@@ -3,7 +3,7 @@ kind: Task
metadata:
name: git-clone
labels:
- app.kubernetes.io/version: "0.9"
+ app.kubernetes.io/version: "0.10"
annotations:
tekton.dev/pipelines.minVersion: "0.38.0"
tekton.dev/categories: Git |
Catlin Output
Catlin script lint Output
|
- Bumping git-clone version - Change git-clone default userHome to fix clone error as non-root `error: could not lock config file /home/git/.gitconfig: No such file or directory` Signed-off-by: Nati Fridman <[email protected]>
b989f16
to
24e05a9
Compare
Diff between version 0.9 and 0.10diff --git a/task/git-clone/0.9/README.md b/task/git-clone/0.10/README.md
index dc7d2e2..26ab4c2 100644
--- a/task/git-clone/0.9/README.md
+++ b/task/git-clone/0.10/README.md
@@ -102,7 +102,7 @@ spec:
* **verbose**: Log the commands that are executed during `git-clone`'s operation. (_default_: true)
* **sparseCheckoutDirectories**: Which directories to match or exclude when performing a sparse checkout (_default_: "")
* **gitInitImage**: The image providing the git-init binary that this Task runs. (_default_: "gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init:TODO")
-* **userHome**: The user's home directory. (_default_: "/tekton/home")
+* **userHome**: The user's home directory. (_default_: "/workspace/nonroot")
## Results
diff --git a/task/git-clone/0.9/git-clone.yaml b/task/git-clone/0.10/git-clone.yaml
index 0ac2d72..931c68c 100644
--- a/task/git-clone/0.9/git-clone.yaml
+++ b/task/git-clone/0.10/git-clone.yaml
@@ -3,7 +3,7 @@ kind: Task
metadata:
name: git-clone
labels:
- app.kubernetes.io/version: "0.9"
+ app.kubernetes.io/version: "0.10"
annotations:
tekton.dev/pipelines.minVersion: "0.38.0"
tekton.dev/categories: Git
@@ -107,7 +107,7 @@ spec:
description: |
Absolute path to the user's home directory.
type: string
- default: "/home/git"
+ default: "/workspace/nonroot"
results:
- name: commit
description: The precise commit SHA that was fetched by this Task. |
Catlin Output
|
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
/test pull-tekton-catalog-build-tests |
Diff between version 0.9 and 0.10diff --git a/task/git-clone/0.9/README.md b/task/git-clone/0.10/README.md
index dc7d2e2..26ab4c2 100644
--- a/task/git-clone/0.9/README.md
+++ b/task/git-clone/0.10/README.md
@@ -102,7 +102,7 @@ spec:
* **verbose**: Log the commands that are executed during `git-clone`'s operation. (_default_: true)
* **sparseCheckoutDirectories**: Which directories to match or exclude when performing a sparse checkout (_default_: "")
* **gitInitImage**: The image providing the git-init binary that this Task runs. (_default_: "gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init:TODO")
-* **userHome**: The user's home directory. (_default_: "/tekton/home")
+* **userHome**: The user's home directory. (_default_: "/workspace/nonroot")
## Results
diff --git a/task/git-clone/0.9/git-clone.yaml b/task/git-clone/0.10/git-clone.yaml
index 0ac2d72..931c68c 100644
--- a/task/git-clone/0.9/git-clone.yaml
+++ b/task/git-clone/0.10/git-clone.yaml
@@ -3,7 +3,7 @@ kind: Task
metadata:
name: git-clone
labels:
- app.kubernetes.io/version: "0.9"
+ app.kubernetes.io/version: "0.10"
annotations:
tekton.dev/pipelines.minVersion: "0.38.0"
tekton.dev/categories: Git
@@ -107,7 +107,7 @@ spec:
description: |
Absolute path to the user's home directory.
type: string
- default: "/home/git"
+ default: "/workspace/nonroot"
results:
- name: commit
description: The precise commit SHA that was fetched by this Task. |
/retest |
@natifridman: 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/test-infra repository. I understand the commands that are listed here. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester 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 |
Changes
Change git-clone default userHome to fix clone error as non-root
error: could not lock config file /home/git/.gitconfig: No such file or directory
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
contains
/kind <type>
. Valid types are bug, cleanup, design, documentation,feature, flake, misc, question, tep
File path follows
<kind>/<name>/<version>/name.yaml
Has
README.md
at<kind>/<name>/<version>/README.md
Has mandatory
metadata.labels
-app.kubernetes.io/version
the same as the<version>
of the resourceHas mandatory
metadata.annotations
tekton.dev/pipelines.minVersion
mandatory
spec.description
follows the conventionSee the contribution guide for more details.