utils

package
v0.0.0-...-4f4f4d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GVR = map[string]schema.GroupVersionResource{

	"c-role": {Group: "rbac.authorization.k8s.io", Version: "v1", Resource: "clusterroles"},
	"crb":    {Group: "rbac.authorization.k8s.io", Version: "v1", Resource: "clusterrolebindings"},
	"crd":    {Group: "apiextensions.k8s.io", Version: "v1", Resource: "customresourcedefinitions"},
	"ic":     {Group: "networking.k8s.io", Version: "v1", Resource: "ingressclasses"},
	"no":     {Version: "v1", Resource: "nodes"},
	"pv":     {Version: "v1", Resource: "persistentvolumes"},
	"sc":     {Group: "storage.k8s.io", Version: "v1", Resource: "storageclasses"},

	"cm":      {Version: "v1", Resource: "configmaps"},
	"cronjob": {Group: "batch", Version: "v1", Resource: "cronjobs"},
	"ds":      {Group: "apps", Version: "v1", Resource: "daemonsets"},
	"deploy":  {Group: "apps", Version: "v1", Resource: "deployments"},
	"ev":      {Version: "v1", Resource: "events"},
	"ing":     {Group: "networking.k8s.io", Version: "v1", Resource: "ingresses"},
	"job":     {Group: "batch", Version: "v1", Resource: "jobs"},
	"netpol":  {Group: "networking.k8s.io", Version: "v1", Resource: "networkpolicies"},
	"pvc":     {Version: "v1", Resource: "persistentvolumeclaims"},
	"pod":     {Version: "v1", Resource: "pods"},
	"rs":      {Group: "apps", Version: "v1", Resource: "replicasets"},
	"rc":      {Version: "v1", Resource: "replicationcontrollers"},
	"role":    {Group: "rbac.authorization.k8s.io", Version: "v1", Resource: "roles"},
	"rb":      {Group: "rbac.authorization.k8s.io", Version: "v1", Resource: "rolebindings"},
	"secret":  {Version: "v1", Resource: "secrets"},
	"svc":     {Version: "v1", Resource: "services"},
	"sa":      {Version: "v1", Resource: "serviceaccounts"},
	"sts":     {Group: "apps", Version: "v1", Resource: "statefulsets"},
}

Functions

func RandomString

func RandomString() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL