-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: add summary objects #28
Conversation
99200b7
to
7118cf4
Compare
This commit introduces manual type definitions for SBOM summaries. Signed-off-by: Vlad Klokun <[email protected]>
This commit finishes the changes needed to introduce a new API type: SBOM Summary. The new type acts as a lightweight beacon that will be created whenever an SBOM is created, so the Storage APIServer can avoid loading entire large SBOMs into memory when listing and serving Watch requests. Signed-off-by: Vlad Klokun <[email protected]>
Prior to this commit, introducing a "build" directory broke building a standalone binary using a Makefile. Because the "build" directory exists in the source tree, it made `make` think that the target already exists and is up-to-date, so it would not even try to build new binaries. This commit changes the target name and fixes the problem. Signed-off-by: Vlad Klokun <[email protected]>
This commit introduces manual type definition for vulnerability manifest summaries. Signed-off-by: Vlad Klokun <[email protected]>
… summaries This commit finishes the changes needed to introduce a new API type: Vulnerability Manifest Summary. The idea is the same as for the SBOM Summaries: lightweight indicators that make the Storage AA avoid loading large full objects into memory. Signed-off-by: Vlad Klokun <[email protected]>
7118cf4
to
b0e0b43
Compare
Signed-off-by: Vlad Klokun <[email protected]>
@@ -52,5 +52,5 @@ func NewREST(scheme *runtime.Scheme, storageImpl storage.Interface, optsGetter g | |||
if err := store.CompleteWithOptions(options); err != nil { | |||
return nil, err | |||
} | |||
return ®istry.REST{store}, nil | |||
return ®istry.REST{Store: store}, nil |
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.
yay golint!
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.
Kinda funny I found this with my LSP (go vet
), since the linter did not even run on PR changes for me :)
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.
much easier when looking at separate commits, thx!
Summary:
|
What this PR changes?
This commit:
build
directory in the source tree.