@@ -10,7 +10,7 @@ import (
10
10
"time"
11
11
12
12
"k8s.io/client-go/rest"
13
- "k8s.io/klog"
13
+ "k8s.io/klog/v2 "
14
14
15
15
_ "k8s.io/apimachinery/pkg/runtime/serializer/yaml"
16
16
@@ -37,33 +37,33 @@ type gatherFunction func(g *Gatherer) ([]record.Record, []error)
37
37
const gatherAll = "ALL"
38
38
39
39
var gatherFunctions = map [string ]gatherFunction {
40
- "pdbs" : GatherPodDisruptionBudgets ,
41
- "metrics" : GatherMostRecentMetrics ,
42
- "operators" : GatherClusterOperators ,
43
- "container_images" : GatherContainerImages ,
44
- "nodes" : GatherNodes ,
45
- "config_maps" : GatherConfigMaps ,
46
- "version" : GatherClusterVersion ,
47
- "id" : GatherClusterID ,
48
- "infrastructures" : GatherClusterInfrastructure ,
49
- "networks" : GatherClusterNetwork ,
50
- "authentication" : GatherClusterAuthentication ,
51
- "image_registries" : GatherClusterImageRegistry ,
52
- "image_pruners" : GatherClusterImagePruner ,
53
- "feature_gates" : GatherClusterFeatureGates ,
54
- "oauths" : GatherClusterOAuth ,
55
- "ingress" : GatherClusterIngress ,
56
- "proxies" : GatherClusterProxy ,
40
+ "pdbs" : GatherPodDisruptionBudgets ,
41
+ "metrics" : GatherMostRecentMetrics ,
42
+ "operators" : GatherClusterOperators ,
43
+ "container_images" : GatherContainerImages ,
44
+ "nodes" : GatherNodes ,
45
+ "config_maps" : GatherConfigMaps ,
46
+ "version" : GatherClusterVersion ,
47
+ "id" : GatherClusterID ,
48
+ "infrastructures" : GatherClusterInfrastructure ,
49
+ "networks" : GatherClusterNetwork ,
50
+ "authentication" : GatherClusterAuthentication ,
51
+ "image_registries" : GatherClusterImageRegistry ,
52
+ "image_pruners" : GatherClusterImagePruner ,
53
+ "feature_gates" : GatherClusterFeatureGates ,
54
+ "oauths" : GatherClusterOAuth ,
55
+ "ingress" : GatherClusterIngress ,
56
+ "proxies" : GatherClusterProxy ,
57
57
"certificate_signing_requests" : GatherCertificateSigningRequests ,
58
- "crds" : GatherCRD ,
59
- "host_subnets" : GatherHostSubnet ,
60
- "machine_sets" : GatherMachineSet ,
61
- "install_plans" : GatherInstallPlans ,
62
- "service_accounts" : GatherServiceAccounts ,
63
- "machine_config_pools" : GatherMachineConfigPool ,
64
- "container_runtime_configs" : GatherContainerRuntimeConfig ,
65
- "stateful_sets" : GatherStatefulSets ,
66
- "netnamespaces" : GatherNetNamespace ,
58
+ "crds" : GatherCRD ,
59
+ "host_subnets" : GatherHostSubnet ,
60
+ "machine_sets" : GatherMachineSet ,
61
+ "install_plans" : GatherInstallPlans ,
62
+ "service_accounts" : GatherServiceAccounts ,
63
+ "machine_config_pools" : GatherMachineConfigPool ,
64
+ "container_runtime_configs" : GatherContainerRuntimeConfig ,
65
+ "stateful_sets" : GatherStatefulSets ,
66
+ "netnamespaces" : GatherNetNamespace ,
67
67
}
68
68
69
69
// New creates new Gatherer
@@ -144,22 +144,22 @@ func uniqueStrings(list []string) []string {
144
144
if len (list ) < 2 {
145
145
return list
146
146
}
147
- keys := make (map [string ]bool )
148
- set := []string {}
149
- for _ , entry := range list {
150
- if _ , value := keys [entry ]; ! value {
151
- keys [entry ] = true
152
- set = append (set , entry )
153
- }
154
- }
155
- return set
147
+ keys := make (map [string ]bool )
148
+ set := []string {}
149
+ for _ , entry := range list {
150
+ if _ , value := keys [entry ]; ! value {
151
+ keys [entry ] = true
152
+ set = append (set , entry )
153
+ }
154
+ }
155
+ return set
156
156
}
157
157
158
158
func contains (s []string , e string ) bool {
159
- for _ , a := range s {
160
- if a == e {
161
- return true
162
- }
163
- }
164
- return false
165
- }
159
+ for _ , a := range s {
160
+ if a == e {
161
+ return true
162
+ }
163
+ }
164
+ return false
165
+ }
0 commit comments