taskconfig

package
v0.0.0-...-a69e935 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 10 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasContainerSpecChanged

func HasContainerSpecChanged(
	prevContainerSpec *pod.ContainerSpec,
	newContainerSpec *pod.ContainerSpec) bool

HasContainerSpecChanged returns true if the container spec has changed.

func HasPelotonLabelsChanged

func HasPelotonLabelsChanged(
	prevLabels []*peloton.Label,
	newLabels []*peloton.Label) bool

HasPelotonLabelsChanged returns true if v0 peloton labels have changed

func HasPelotonV1LabelsChanged

func HasPelotonV1LabelsChanged(
	prevLabels []*v1peloton.Label,
	newLabels []*v1peloton.Label) bool

HasPelotonV1LabelsChanged returns true if v1 peloton labels have changed

func HasPodSpecChanged

func HasPodSpecChanged(
	prevPodSpec *pod.PodSpec,
	newPodSpec *pod.PodSpec) bool

HasPodSpecChanged returns true if the pod spec (other than the name) has changed.

func HasPortConfigsChanged

func HasPortConfigsChanged(
	prevPorts []*task.PortConfig,
	newPorts []*task.PortConfig) bool

HasPortConfigsChanged returns true if the port configs have changed

func HasPortSpecsChanged

func HasPortSpecsChanged(
	prevPorts []*pod.PortSpec,
	newPorts []*pod.PortSpec) bool

HasPortSpecsChanged returns true if the port specs have changed

func HasTaskConfigChanged

func HasTaskConfigChanged(
	prevTaskConfig *task.TaskConfig,
	newTaskConfig *task.TaskConfig,
) bool

HasTaskConfigChanged returns true if the task config (other than the name) has changed.

func Merge

func Merge(base *task.TaskConfig, override *task.TaskConfig) *task.TaskConfig

Merge returns the merged task config between a base and an override. The merge will only happen of top-level fields, not recursively. If any of the arguments is nil, no merge will happen, and the non-nil argument (if exists) is returned.

func MergePodSpec

func MergePodSpec(base *pod.PodSpec, override *pod.PodSpec) *pod.PodSpec

MergePodSpec returns the merged v1 pod spec between a base and an override. The merge will only happen of top-level fields, not recursively. If any of the arguments is nil, no merge will happen, and the non-nil argument (if exists) is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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