From f3ae1a6d48deb0bc3710fe1cf4baa78d2386cc52 Mon Sep 17 00:00:00 2001 From: "Timothy St. Clair" Date: Tue, 10 Jul 2018 16:54:48 -0500 Subject: [PATCH] Removes PodPresets and Secrets gathering Signed-off-by: Timothy St. Clair --- pkg/config/config.go | 2 -- pkg/discovery/queries.go | 4 ---- 2 files changed, 6 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 4fa6699b7..880331e25 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -87,7 +87,6 @@ var NamespacedResources = []string{ "PersistentVolumeClaims", "PodDisruptionBudgets", "PodLogs", - "PodPresets", "PodTemplates", "Pods", "ReplicaSets", @@ -95,7 +94,6 @@ var NamespacedResources = []string{ "ResourceQuotas", "RoleBindings", "Roles", - "Secrets", "ServiceAccounts", "Services", "StatefulSets", diff --git a/pkg/discovery/queries.go b/pkg/discovery/queries.go index 7d8a7d251..b63053644 100644 --- a/pkg/discovery/queries.go +++ b/pkg/discovery/queries.go @@ -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": @@ -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":