Skip to content

Commit

Permalink
removed unused WRONG map
Browse files Browse the repository at this point in the history
Signed-off-by: Min Min <[email protected]>
  • Loading branch information
jamsman94 committed Apr 14, 2022
1 parent 9cce250 commit 0f23376
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions pkg/tool/kube/getter/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,44 +29,6 @@ import (
"sigs.k8s.io/yaml"
)

var ResourceKindMap = map[string]schema.GroupVersionResource{
"Deployment": {
Group: "apps",
Version: "v1",
Resource: "deployments",
},
"ConfigMap": {
Group: "apps",
Version: "v1",
Resource: "configmaps",
},
"Job": {
Group: "batch",
Version: "v1",
Resource: "jobs",
},
"Secret": {
Group: "core",
Version: "v1",
Resource: "secrets",
},
"Service": {
Group: "api",
Version: "v1",
Resource: "services",
},
"StatefulSet": {
Group: "apps",
Version: "v1",
Resource: "statefulsets",
},
"PersistentVolume": {
Group: "api",
Version: "v1",
Resource: "persistentvolumes",
},
}

// GetResourceInCache gets a specific Kubernetes object in local cache, object can be any types
// which are registered by "scheme.AddToScheme()".
// Return true if object is found, false if not, or an error if something bad happened.
Expand Down

0 comments on commit 0f23376

Please sign in to comment.