Skip to content

Commit

Permalink
fix: Properly build dtrack imageProjectMap (#184)
Browse files Browse the repository at this point in the history
Relates: #183
  • Loading branch information
muellerst-hg authored Oct 1, 2022
1 parent db05321 commit 70abfcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/target/dtrack/dtrack_target.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ func (g *DependencyTrackTarget) LoadImages() []*libk8s.RegistryImage {
for _, project := range projectsPage.Items {
sbomOperatorPropFound := false
imageRelatesToCluster := false
imageId = ""
for _, tag := range project.Tags {
imageId = ""
if strings.Index(tag.Name, kubernetesCluster) == 0 {
clusterId := string(tag.Name[len(kubernetesCluster)+1:])
if clusterId == g.k8sClusterId {
Expand Down

0 comments on commit 70abfcc

Please sign in to comment.