Skip to content

Commit

Permalink
Merge pull request #83 from slashben/adding-storage-related
Browse files Browse the repository at this point in the history
Supporting storage classes
  • Loading branch information
slashben authored Dec 3, 2023
2 parents ba83f84 + 051a7df commit 7675ac9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion k8sinterface/k8sdiscovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,14 @@ func StringToResourceGroup(str string) (string, string, string) {
return "", "", ""
}

// updateResourceKind update kind from single to parallel
// updateResourceKind update kind from singular to plural
func updateResourceKind(resource string) string {
resource = strings.ToLower(resource)

if resource == "ingress" {
return "ingresses"
} else if resource == "storageclass" {
return "storageclasses"
}

if resource != "" && !strings.HasSuffix(resource, "s") {
Expand Down

0 comments on commit 7675ac9

Please sign in to comment.