deployment

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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

func TestResourceDefaults(t *testing.T)

Types

type IDAndParams

type IDAndParams struct {
	Params Params
	ID     string
}

func NewIDAndParam

func NewIDAndParam(ID, limitCPU, limitMemory, requestsCPU, requestsMemory string) IDAndParams

type Params

type Params map[string]map[string]string

Jump to

Keyboard shortcuts

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