-
Notifications
You must be signed in to change notification settings - Fork 31
Containerbuild / konflux #1977
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
Containerbuild / konflux #1977
Changes from all commits
38972ac
882d632
42e5a72
ddec172
c4d7c7d
b11e727
e209474
7c1e668
4d37201
739d5ee
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 |
|---|---|---|
| @@ -1,11 +1,13 @@ | ||
| apiVersion: kustomize.config.k8s.io/v1beta1 | ||
| kind: Kustomization | ||
|
|
||
| commonLabels: | ||
| app: hacbs-jvm-console | ||
| resources: | ||
| - deployment.yaml | ||
| - sa.yaml | ||
| - rbac.yaml | ||
| - service.yaml | ||
| - route.yaml | ||
| - deployment.yaml | ||
| - sa.yaml | ||
| - rbac.yaml | ||
| - service.yaml | ||
| - route.yaml | ||
| labels: | ||
| - includeSelectors: true | ||
| pairs: | ||
| app: hacbs-jvm-console |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,13 @@ | ||
| apiVersion: kustomize.config.k8s.io/v1beta1 | ||
| kind: Kustomization | ||
|
|
||
| commonLabels: | ||
| app: hacbs-jvm-operator | ||
| resources: | ||
| - deployment.yaml | ||
| - namespace.yaml | ||
| - sa.yaml | ||
| - rbac.yaml | ||
| - metricservice.yaml | ||
| - deployment.yaml | ||
| - namespace.yaml | ||
| - sa.yaml | ||
| - rbac.yaml | ||
| - metricservice.yaml | ||
| labels: | ||
| - includeSelectors: true | ||
| pairs: | ||
| app: hacbs-jvm-operator |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -214,8 +214,7 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) { | |
| } | ||
| for (var i : contaminatedGavs.entrySet()) { | ||
| if (!i.getValue().getAllowed()) { | ||
| gavs.removeAll(i.getValue().getContaminatedArtifacts()); | ||
| // i.getValue().getContaminatedArtifacts().forEach(gavs::remove); | ||
| i.getValue().getContaminatedArtifacts().forEach(gavs::remove); | ||
| } | ||
| } | ||
| generateBuildSbom(); | ||
|
|
@@ -241,6 +240,7 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) { | |
| } | ||
| } | ||
|
|
||
| // TODO: ### For container-builds, should sbom generation be delegated to the task within that? If it supports it? | ||
| private void generateBuildSbom() { | ||
|
Collaborator
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. @vibe13 To discuss ; Previously JBS handled SBOM after the build - I suspect now Konflux should handle that?
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. Mmmm no sure about Konflux handling java SBOMs. Rather, SBOMer could be used because it can generate good quality manifests. But, JBS has the capability to manifest the contaminated GAVs and contaminants, so we can think of JBS creating a skeleton SBOM to be later enriched by SBOMer. I would keep it in for now, then we will discuss with Marek and see how to design this. Good point!
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. But, I would like to see the content of SBOMs generated by Konflux regardless. There were discussions about merging our generated SBOMs with Konflux generated ones.
Collaborator
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. At the moment we don't have any way of handling / storing the sbom - this was handled by BuildVerifyCommand but as we don't have a way as far as I know in the buildah based task to access the .m2/gradle repositories (as we don't have a shared workspace) I think this now needs to be handled specifically by Konflux. |
||
| if (buildInfoPath == null) { | ||
| Log.infof("Not generating build sbom, path not set"); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.