interfaces

package
v0.0.0-...-44f2bf6 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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

type PodModifier interface {
	ApplyPodSpec(spec *core.PodSpec) error
}

Jump to

Keyboard shortcuts

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