Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerCreator ¶
type ContainerCreator interface { GetCommand() ([]string, error) GetName() string GetExecutor() string GetProbes() (*core.Probe, *core.Probe, *core.Probe, error) GetResourceRequirements() core.ResourceRequirements GetLifecycle() (*core.Lifecycle, error) GetImagePullPolicy() core.PullPolicy GetImage() string GetEnvs() ([]core.EnvVar, []core.EnvFromSource) GetSecurityContext() *core.SecurityContext GetPorts() []core.ContainerPort GetVolumeMounts() []core.VolumeMount }
type PodCreator ¶
type PodCreator interface { Init(context.Context, Inspector, *core.PodTemplateSpec) error GetName() string GetRole() string GetVolumes() []core.Volume GetSidecars(*core.PodTemplateSpec) error GetInitContainers(cachedStatus Inspector) ([]core.Container, error) GetFinalizers() []string GetTolerations() []core.Toleration GetNodeSelector() map[string]string GetServiceAccountName() string GetPodAntiAffinity() *core.PodAntiAffinity GetPodAffinity() *core.PodAffinity GetNodeAffinity() *core.NodeAffinity GetRestartPolicy() core.RestartPolicy GetContainerCreator() ContainerCreator GetImagePullSecrets() []string IsDeploymentMode() bool Validate(cachedStatus Inspector) error Annotations() map[string]string Labels() map[string]string Profiles() (schedulerApi.ProfileTemplates, error) PodModifier }
type PodModifier ¶
Click to show internal directories.
Click to hide internal directories.