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)
func GetResourcePodSpec ¶
func GetResourcePodSpec(fedObject fedcorev1a1.GenericFederatedObject, gvk schema.GroupVersionKind) (*corev1.PodSpec, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.