kubernetes/staging/src/k8s.io/kubectl/pkg/generate/versioned/run.go

// getLabels returns map of labels.
func getLabels(params map[string]string, name string) (map[string]string, error) {}

// getName returns the name of newly created resource.
func getName(params map[string]string) (string, error) {}

// getParams returns map of generic parameters.
func getParams(genericParams map[string]interface{}

// getArgs returns arguments for the container command.
func getArgs(genericParams map[string]interface{}

// getAnnotations returns map of annotations.
func getAnnotations(genericParams map[string]interface{}

// getEnvs returns environment variables.
func getEnvs(genericParams map[string]interface{}

// populateResourceListV1 takes strings of form <resourceName1>=<value1>,<resourceName1>=<value2>
// and returns ResourceList.
func populateResourceListV1(spec string) (v1.ResourceList, error) {}

// HandleResourceRequirementsV1 parses the limits and requests parameters if specified
// and returns ResourceRequirements.
func HandleResourceRequirementsV1(params map[string]string) (v1.ResourceRequirements, error) {}

// updatePodContainers updates PodSpec.Containers with passed parameters.
func updatePodContainers(params map[string]string, args []string, envs []v1.EnvVar, imagePullPolicy v1.PullPolicy, podSpec *v1.PodSpec) error {}

// updatePodContainers updates PodSpec.Containers.Ports with passed parameters.
func updatePodPorts(params map[string]string, podSpec *v1.PodSpec) (err error) {}

type BasicPod

func (BasicPod) ParamNames() []generate.GeneratorParam {}

func (BasicPod) Generate(genericParams map[string]interface{}

// parseEnvs converts string into EnvVar objects.
func parseEnvs(envArray []string) ([]v1.EnvVar, error) {}