Documentation ¶
Overview ¶
Package utils provide utilities functions to make helm-convert work
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var K8SResourceMapping = map[string]string{
"certificatesigningrequest": "csr",
"clusterrolebinding": "crb",
"configmap": "cm",
"customresourcedefinition": "crd",
"daemonset": "ds",
"deployment": "deploy",
"endpoint": "ep",
"horizontalpodautoscaler": "hpa",
"ingress": "ing",
"limitrange": "limits",
"namespace": "ns",
"networkpolicy": "netpol",
"persistentvolume": "pv",
"persistentvolumeclaim": "pvc",
"poddisruptionbudget": "pdb",
"podsecuritypolicy": "psp",
"replicaset": "rs",
"replicationcontroller": "rc",
"resourcequota": "quota",
"rolebinding": "rb",
"service": "svc",
"serviceaccount": "sa",
}
K8SResourceMapping map long/short resource name
Functions ¶
func GetKindAbbreviation ¶
GetKindAbbreviation return the abbreviation of a given resource
func GetResourceFileName ¶
GetResourceFileName return a resource name from metadata.name
func RecursivelyRemoveKey ¶
RecursivelyRemoveKey of a matching key at a given path
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.