Skip to content

Commit

Permalink
Make sure K8s service discovery is in help (#4315)
Browse files Browse the repository at this point in the history
* Make sure K8s service discovery is in help

This adds it to `scan --help` output under `--discovery`

Signed-off-by: Tim Smith <[email protected]>

* Sort the discovery options to easier reading

Signed-off-by: Tim Smith <[email protected]>

---------

Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 authored Jul 8, 2024
1 parent be36002 commit 792ba97
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions providers/k8s/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,19 @@ var Config = plugin.Provider{
Discovery: []string{
resources.DiscoveryAll,
resources.DiscoveryAuto,
resources.DiscoveryAdmissionReviews,
resources.DiscoveryClusters,
resources.DiscoveryPods,
resources.DiscoveryJobs,
resources.DiscoveryContainerImages,
resources.DiscoveryCronJobs,
resources.DiscoveryStatefulSets,
resources.DiscoveryDeployments,
resources.DiscoveryReplicaSets,
resources.DiscoveryDaemonSets,
resources.DiscoveryContainerImages,
resources.DiscoveryAdmissionReviews,
resources.DiscoveryDeployments,
resources.DiscoveryIngresses,
resources.DiscoveryJobs,
resources.DiscoveryNamespaces,
resources.DiscoveryPods,
resources.DiscoveryReplicaSets,
resources.DiscoveryServices,
resources.DiscoveryStatefulSets,
},
Flags: []plugin.Flag{
{
Expand Down

0 comments on commit 792ba97

Please sign in to comment.