-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: resolve Git Anonymous Resolver excessive memory usage #8677
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| baseImageOverrides: | ||
| github.com/tektoncd/pipeline/cmd/resolvers: cgr.dev/chainguard/git@sha256:566235a8ef752f37d285042ee05fc37dbb04293e50f116a231984080fb835693 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think there might be some changes to be done in the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In addition to modifying the task's inline .koconfig like is already done? |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -106,6 +106,9 @@ spec: | |
| value: "https://artifacthub.io/" | ||
| - name: TEKTON_HUB_API | ||
| value: "https://api.hub.tekton.dev/" | ||
| volumeMounts: | ||
| - name: tmp-clone-volume | ||
| mountPath: "/tmp" | ||
|
Comment on lines
+109
to
+111
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mounting a directory at Additionally, using an empty-dir volume as the |
||
| securityContext: | ||
| allowPrivilegeEscalation: false | ||
| readOnlyRootFilesystem: true | ||
|
|
@@ -115,3 +118,7 @@ spec: | |
| - "ALL" | ||
| seccompProfile: | ||
| type: RuntimeDefault | ||
| volumes: | ||
| - name: tmp-clone-volume | ||
| emptyDir: | ||
| sizeLimit: 4Gi | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 would make all resolvers image having to use the git image... isnt that a bit much for example the http-resolver would def not need it...
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.
If I understand correctly all of the resolvers run as plugins together in the same pod(s). So at least while the some resolvers will have unnecessary access to the
gitbinary, all of the resolver pods will need access to the binary if the git resolver is enabled. Not sure if that's that much better though