pod

package
v0.0.0-...-5ee5d88 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownTypeToGetPodSpec = errors.New("unknown type to get pod spec")
View Source
var PodSpecPaths = map[schema.GroupKind]string{
	{Group: appsv1.GroupName, Kind: common.DeploymentKind}:  "spec.template.spec",
	{Group: appsv1.GroupName, Kind: common.StatefulSetKind}: "spec.template.spec",
	{Group: appsv1.GroupName, Kind: common.DaemonSetKind}:   "spec.template.spec",
	{Group: batchv1.GroupName, Kind: common.JobKind}:        "spec.template.spec",
	{Group: batchv1.GroupName, Kind: common.CronJobKind}:    "spec.jobTemplate.spec.template.spec",
	{Group: "", Kind: common.PodKind}:                       "spec",
}

PodSpecPaths maps supported type to pod spec path. TODO: think about whether PodTemplatePath/PodSpecPath should be specified in the FTC instead. Specifying in the FTC allows changing the path according to the api version. Other controllers should consider using the specified paths instead of hardcoded paths.

Functions

func GetPodSpec

func GetPodSpec(fedObject fedcorev1a1.GenericFederatedObject, podSpecPath string) (*corev1.PodSpec, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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