Skip to content

Commit

Permalink
Removes PodPresets and Secrets gathering (#474)
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy St. Clair <timothysc@gmail.com>
  • Loading branch information
timothysc authored Jul 11, 2018
1 parent 3d46d23 commit 0426731
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,13 @@ var NamespacedResources = []string{
"PersistentVolumeClaims",
"PodDisruptionBudgets",
"PodLogs",
"PodPresets",
"PodTemplates",
"Pods",
"ReplicaSets",
"ReplicationControllers",
"ResourceQuotas",
"RoleBindings",
"Roles",
"Secrets",
"ServiceAccounts",
"Services",
"StatefulSets",
Expand Down
4 changes: 0 additions & 4 deletions pkg/discovery/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@ func queryNsResource(ns string, resourceKind string, opts metav1.ListOptions, ku
return kubeClient.CoreV1().Pods(ns).List(opts)
case "PodDisruptionBudgets":
return kubeClient.PolicyV1beta1().PodDisruptionBudgets(ns).List(opts)
case "PodPresets":
return kubeClient.SettingsV1alpha1().PodPresets(ns).List(opts)
case "PodTemplates":
return kubeClient.CoreV1().PodTemplates(ns).List(opts)
case "ReplicaSets":
Expand Down Expand Up @@ -210,8 +208,6 @@ func queryNsResource(ns string, resourceKind string, opts metav1.ListOptions, ku
return lst, err
}
return lst, err
case "Secrets":
return kubeClient.CoreV1().Secrets(ns).List(opts)
case "ServiceAccounts":
return kubeClient.CoreV1().ServiceAccounts(ns).List(opts)
case "Services":
Expand Down

0 comments on commit 0426731

Please sign in to comment.