deployment

package
v0.101.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package deployment provides deployment management functionality for Clowder applications

Index

Constants

View Source
const (
	// TerminationLogPath defines the standard path for container termination logs
	TerminationLogPath = "/dev/termination-log"
)

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)

GetDeployment returns the correct deployment provider.

func NewDeploymentProvider

func NewDeploymentProvider(p *providers.Provider) (providers.ClowderProvider, error)

NewDeploymentProvider creates a new deployment provider instance

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)

TestResourceDefaults validates the default resource settings for deployments

Types

type IDAndParams

type IDAndParams struct {
	Params Params
	ID     string
}

IDAndParams represents a structure containing an ID and associated parameters

func NewIDAndParam

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

NewIDAndParam creates a new IDAndParams instance with the specified resource values

type Params

type Params map[string]map[string]string

Params represents a map of parameter categories to parameter key-value pairs

Jump to

Keyboard shortcuts

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