Skip to content

Commit

Permalink
fix: added more things to skip
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywhitaker3 committed Apr 13, 2024
1 parent 03d31cf commit c90f9c3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
15 changes: 15 additions & 0 deletions internal/detector/skip.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@ func getSkipList() []schema.GroupVersionResource {
Group: "flowcontrol.apiserver.k8s.io",
Resource: "prioritylevelconfigurations",
},
{
Version: "v1",
Group: "flowcontrol.apiserver.k8s.io",
Resource: "prioritylevelconfigurations",
},
{
Version: "v1",
Group: "flowcontrol.apiserver.k8s.io",
Resource: "flowschemas",
},
{
Version: "v1alpha1",
Group: "argoproj.io",
Expand All @@ -101,6 +111,11 @@ func getSkipList() []schema.GroupVersionResource {
Group: "apiregistration.k8s.io",
Resource: "apiservices",
},
{
Version: "v1",
Group: "node.k8s.io",
Resource: "runtimeclasses",
},
}

for _, gvr := range config.Cfg.Exclusions.GroupVersionResources {
Expand Down
6 changes: 6 additions & 0 deletions internal/exclusions/bundles/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,12 @@ func K8sBundle() bundleFunc {
Kind: "ServiceAccount",
Version: "v1",
},
{
Name: "legacy-service-account-token-cleaner",
Namespace: "kube-system",
Kind: "ServiceAccount",
Version: "v1",
},
},
GroupVersionResources: []exclusions.ExcludedGroupVersionResource{},
Namespaces: []string{},
Expand Down

0 comments on commit c90f9c3

Please sign in to comment.