Documentation
¶
Index ¶
- func HasContainerSpecChanged(prevContainerSpec *pod.ContainerSpec, newContainerSpec *pod.ContainerSpec) bool
- func HasPelotonLabelsChanged(prevLabels []*peloton.Label, newLabels []*peloton.Label) bool
- func HasPelotonV1LabelsChanged(prevLabels []*v1peloton.Label, newLabels []*v1peloton.Label) bool
- func HasPodSpecChanged(prevPodSpec *pod.PodSpec, newPodSpec *pod.PodSpec) bool
- func HasPortConfigsChanged(prevPorts []*task.PortConfig, newPorts []*task.PortConfig) bool
- func HasPortSpecsChanged(prevPorts []*pod.PortSpec, newPorts []*pod.PortSpec) bool
- func HasTaskConfigChanged(prevTaskConfig *task.TaskConfig, newTaskConfig *task.TaskConfig) bool
- func Merge(base *task.TaskConfig, override *task.TaskConfig) *task.TaskConfig
- func MergePodSpec(base *pod.PodSpec, override *pod.PodSpec) *pod.PodSpec
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 ¶
HasPelotonLabelsChanged returns true if v0 peloton labels have changed
func HasPelotonV1LabelsChanged ¶
HasPelotonV1LabelsChanged returns true if v1 peloton labels have changed
func HasPodSpecChanged ¶
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 ¶
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 ¶
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.