Skip to content
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

Initial implementation. #1

Merged
merged 16 commits into from
Apr 24, 2024
Merged

Initial implementation. #1

merged 16 commits into from
Apr 24, 2024

Conversation

porridge
Copy link
Collaborator

This a bare-bones (no metric gathering support) but functional implementation.

Tested in stackrox/stackrox#10750
On that PR, (judging from the logs of a few jobs) deploying the pre-fetcher added 7-18 seconds, and waiting for pulls to complete 1-4 seconds to the job runtime, but likely provided a moderate net speed-up, since non-prefetched stackrox image pulls was on the order of 20-40 seconds.

@porridge porridge requested a review from janisz April 18, 2024 09:36
Copy link

@janisz janisz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for the first step. I briefly looked at deployment.yaml maybe someone with more experience can verify it.
I think we need CI for this + linter (https://github.com/marketplace/actions/run-golangci-lint)

Dockerfile Outdated Show resolved Hide resolved
go.mod Show resolved Hide resolved
deploy/go.mod Show resolved Hide resolved
cmd/fetch.go Show resolved Hide resolved
cmd/sleep.go Outdated Show resolved Hide resolved
deploy/main.go Outdated Show resolved Hide resolved
deploy/deployment.yaml.gotpl Show resolved Hide resolved
internal/main.go Outdated Show resolved Hide resolved
internal/main.go Show resolved Hide resolved
README.md Show resolved Hide resolved
@porridge porridge requested review from janisz and rukletsov April 23, 2024 09:35
@porridge
Copy link
Collaborator Author

@rukletsov would you be able to review this while @janisz is out?

Copy link

@janisz janisz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one note on adding a comment about replaces and how to upgrade them in a future

@porridge porridge merged commit a5f69ee into master Apr 24, 2024
1 check passed
@porridge porridge deleted the impl branch May 9, 2024 10:02
jdao-rh added a commit that referenced this pull request Nov 5, 2024
Have a metadata generation task per arch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants