application

package
v0.0.0-...-7db8050 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: AGPL-3.0 Imports: 46 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyConstraints

func ApplyConstraints(pod *core.PodSpec, appName string, cons constraints.Value, configureConstraint ConstraintApplier) error

ApplyConstraints applies the specified constraints to the pod.

func HeadlessServiceName

func HeadlessServiceName(appName string) string

HeadlessServiceName is an idempotent function for returning the name of the endpoints service juju make for applications.

func MergeConstraint

func MergeConstraint(resourceName core.ResourceName, value string, resourcesList core.ResourceList) (core.ResourceList, error)

MergeConstraint merges constraint spec.

func NewApplication

func NewApplication(
	name string,
	namespace string,
	modelUUID string,
	modelName string,
	legacyLabels bool,
	deploymentType caas.DeploymentType,
	client kubernetes.Interface,
	newWatcher k8swatcher.NewK8sWatcherFunc,
	clock clock.Clock,
	randomPrefix utils.RandomPrefixFunc,
) caas.Application

NewApplication returns an application.

Types

type ConstraintApplier

type ConstraintApplier func(pod *core.PodSpec, resourceName core.ResourceName, value string) error

ConstraintApplier defines the function type for configuring constraint for a pod.

Jump to

Keyboard shortcuts

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