-
Notifications
You must be signed in to change notification settings - Fork 1
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
Sec/helm index max size #4
Conversation
Signed-off-by: pashakostohrys <[email protected]>
Signed-off-by: pashakostohrys <[email protected]>
PR-Agent was enabled for this repository. To use it, please link your git user with your CodiumAI identity here. CI Failure Feedback
✨ CI feedback usage guide:The CI feedback tool (
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:
where Configuration options
See more information about the |
PR Description updated to latest commit (9cfa9a7)
|
PR Review
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
PR-Agent was enabled for this repository. To use it, please link your git user with your CodiumAI identity here. CI Failure Feedback
✨ CI feedback usage guide:The CI feedback tool (
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:
where Configuration options
See more information about the |
User description
Checklist:
Type
enhancement
Description
helm-registry-max-index-size
to limit the size of the helm registry index file.RepoServerInitConstants
struct to include the newHelmRegistryMaxIndexSize
parameter.GetIndex
method and added a test case for size limit enforcement.Changes walkthrough
argocd_repo_server.go
Add helm registry max index size configuration
cmd/argocd-repo-server/commands/argocd_repo_server.go
helm-registry-max-index-size
to specify the maximumsize of the helm registry index file.
helmRegistryMaxIndexSize
parameter into thereposerver.NewServer
function.repository.go
Extend RepoServerInitConstants with HelmRegistryMaxIndexSize
reposerver/repository/repository.go
HelmRegistryMaxIndexSize
field toRepoServerInitConstants
structto hold the maximum index size configuration.
client.go
Enforce max index size in helm client
util/helm/client.go
GetIndex
method to acceptmaxIndexSize
parameter to enforcemaximum index file size.
loadRepoIndex
method to limit the index file size based onmaxIndexSize
.client_test.go
Update tests for helm client with max index size
util/helm/client_test.go
maxIndexSize
parameter toGetIndex
method.exceeds the specified limit.