-
Notifications
You must be signed in to change notification settings - Fork 0
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
Implement Single Layer OCI Artifacts #98
base: main
Are you sure you want to change the base?
Conversation
a39704d
to
28cc46a
Compare
f1c1f69
to
cbe7736
Compare
e168ef4
to
45ce876
Compare
45ce876
to
9568d38
Compare
#### What this PR does / why we need it With this PR an in-cluster instance of `zot` OCI registry will be deployed aside to the controllers: * `make deploy-dev` makes `zot` accessible via http. * `make deploy` makes `zot` accessible via https. #### Which issue(s) this PR fixes This PR is in the context of #75 and should be merged before #98
2458ab5
to
d9af52c
Compare
2e78025
to
4b0a1ce
Compare
e0fd87f
to
ac6759c
Compare
ce9492f
to
847f0e1
Compare
847f0e1
to
b0a18be
Compare
fixes the reconciler tests by optimizing them and cleaning them up. To remove a potential race of the test and the control loop I had to introduce a finalizer on the component that serializes the deletion of the snapshots. (even though we are aware that envtest cannot delete with ownerrefs) <!-- markdownlint-disable MD041 --> #### What this PR does / why we need it #### Which issue(s) this PR fixes <!-- Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. -->
|
||
var extractedData bytes.Buffer | ||
//nolint:gosec // TODO: Decision needed | ||
if _, err := io.Copy(&extractedData, tarReader); err != nil { |
Check failure
Code scanning / gosec
Potential DoS vulnerability via decompression bomb Error
} | ||
|
||
// Open the file | ||
f, err := os.Open(file) |
Check failure
Code scanning / gosec
Potential file inclusion via variable Error
Expect(err).NotTo(HaveOccurred()) | ||
|
||
// Start zot-registry | ||
zotCmd := exec.Command(binPath, "serve", configFile) |
Check failure
Code scanning / gosec
Subprocess launched with variable Error test
unused import removed
Fixes #75