From c0bf8fb8cae9bbc95a94ecfab3016ba421943777 Mon Sep 17 00:00:00 2001 From: Dan Luhring Date: Fri, 7 Jul 2023 12:39:27 -0400 Subject: [PATCH] Fix CPE gen for k8s python client Signed-off-by: Dan Luhring --- syft/pkg/cataloger/common/cpe/candidate_by_package_type.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/syft/pkg/cataloger/common/cpe/candidate_by_package_type.go b/syft/pkg/cataloger/common/cpe/candidate_by_package_type.go index 875b6dad02c..f203da2f10c 100644 --- a/syft/pkg/cataloger/common/cpe/candidate_by_package_type.go +++ b/syft/pkg/cataloger/common/cpe/candidate_by_package_type.go @@ -356,6 +356,11 @@ var defaultCandidateRemovals = buildCandidateRemovalLookup( candidateKey{PkgName: "redis"}, candidateRemovals{VendorsToRemove: []string{"redis"}}, }, + { + pkg.PythonPkg, + candidateKey{PkgName: "kubernetes"}, + candidateRemovals{ProductsToRemove: []string{"kubernetes"}}, + }, // NPM packages { pkg.NpmPkg,