From 9744f4c009e84a675815f3d718fec0c8480c9e3d Mon Sep 17 00:00:00 2001 From: Dan Luhring Date: Mon, 10 Jul 2023 11:54:19 -0400 Subject: [PATCH] Fix CPE gen for k8s python client (#1921) Signed-off-by: Dan Luhring Co-authored-by: Christopher Phillips --- 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 6588ea8bb..bc62d3909 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,