MCPcopy
hub / github.com/redspread/spread / KubeShortForm

Function KubeShortForm

pkg/deploy/kinds.go:27–32  ·  view source on GitHub ↗
(resource string)

Source from the content-addressed store, hash-verified

25}
26
27func KubeShortForm(resource string) string {
28 if long, ok := shortForms[resource]; ok {
29 return long
30 }
31 return resource
32}
33
34// TODO: ensure all Kinds are supported
35var kinds = map[string]KubeObject{

Callers 1

GetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected