Documentation ¶
Index ¶
- Variables
- func ApplyPodAntiAffinity(t *core.PodTemplateSpec)
- func GetDeployment(c *providers.Provider) (providers.ClowderProvider, error)
- func NewDeploymentProvider(p *providers.Provider) (providers.ClowderProvider, error)
- func ProcessInitContainers(nn types.NamespacedName, c *core.Container, ics []crd.InitContainer) ([]core.Container, error)
- func ProcessResources(pod *crd.PodSpec, env *crd.ClowdEnvironment) core.ResourceRequirements
- func TestResourceDefaults(t *testing.T)
- type IDAndParams
- type Params
Constants ¶
This section is empty.
Variables ¶
View Source
var CoreDeployment = rc.NewMultiResourceIdent(ProvName, "core_deployment", &apps.Deployment{})
CoreDeployment is the deployment for the apps deployments.
View Source
var ProvName = "deployment"
ProvName sets the provider name identifier
Functions ¶
func ApplyPodAntiAffinity ¶
func ApplyPodAntiAffinity(t *core.PodTemplateSpec)
ApplyPodAntiAffinity applies pod anti affinity rules to a pod template
func GetDeployment ¶
func GetDeployment(c *providers.Provider) (providers.ClowderProvider, error)
GetEnd returns the correct end provider.
func NewDeploymentProvider ¶
func NewDeploymentProvider(p *providers.Provider) (providers.ClowderProvider, error)
func ProcessInitContainers ¶
func ProcessInitContainers(nn types.NamespacedName, c *core.Container, ics []crd.InitContainer) ([]core.Container, error)
ProcessInitContainers returns a container object which has been processed from the container spec.
func ProcessResources ¶
func ProcessResources(pod *crd.PodSpec, env *crd.ClowdEnvironment) core.ResourceRequirements
ProcessResources takes a pod spec and a clowd environment and returns the resource requirements object.
func TestResourceDefaults ¶
Types ¶
type IDAndParams ¶
func NewIDAndParam ¶
func NewIDAndParam(ID, limitCPU, limitMemory, requestsCPU, requestsMemory string) IDAndParams
Click to show internal directories.
Click to hide internal directories.