Documentation ¶
Index ¶
- func AreResourceRequementsSame(lhs, rhs v1.ResourceRequirements) bool
- func AreSelectorsSame(lhs, rhs map[string]string) bool
- func AreStringMapsSame(lhs, rhs map[string]string) bool
- func AreTolerationsSame(lhs, rhs []v1.Toleration) bool
- func CompareVersionArrays(lhs, rhs []int) int
- func ContainsSameTolerations(lhs, rhs []v1.Toleration) bool
- func ContainsSameVolumeMounts(lhs, rhs []corev1.VolumeMount) bool
- func EnvFieldRefEqual(lhs, rhs v1.ObjectFieldSelector) bool
- func EnvResourceFieldRefEqual(lhs, rhs v1.ResourceFieldSelector) bool
- func EnvValueEqual(lhs, rhs []v1.EnvVar) bool
- func EnvVarEqual(lhs, rhs v1.EnvVar) bool
- func EnvVarSourceEqual(lhs, rhs v1.EnvVarSource) bool
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreResourceRequementsSame ¶
func AreResourceRequementsSame(lhs, rhs v1.ResourceRequirements) bool
func AreSelectorsSame ¶
func AreStringMapsSame ¶
AreStringMapsSame compares two maps which are string key/value
func AreTolerationsSame ¶
func AreTolerationsSame(lhs, rhs []v1.Toleration) bool
AreTolerationsSame compares two lists of tolerations for equality
func CompareVersionArrays ¶
CompareVersionArrays will return one of: -1 : if lhs > rhs 0 : if lhs == rhs 1 : if rhs > lhs
func ContainsSameTolerations ¶
func ContainsSameTolerations(lhs, rhs []v1.Toleration) bool
containsSameTolerations checks that the tolerations in rhs are all contained within lhs this follows our other patterns of "current, desired"
func ContainsSameVolumeMounts ¶
func ContainsSameVolumeMounts(lhs, rhs []corev1.VolumeMount) bool
check that all of rhs (desired) are contained within lhs (current)
func EnvFieldRefEqual ¶
func EnvFieldRefEqual(lhs, rhs v1.ObjectFieldSelector) bool
func EnvResourceFieldRefEqual ¶
func EnvResourceFieldRefEqual(lhs, rhs v1.ResourceFieldSelector) bool
func EnvValueEqual ¶
* EnvValueEqual - check if 2 EnvValues are equal or not Notes: - reflect.DeepEqual does not return expected results if the to-be-compared value is a pointer. - needs to adjust with k8s.io/api/core/v#/types.go when the types are updated. *
func EnvVarEqual ¶
func EnvVarSourceEqual ¶
func EnvVarSourceEqual(lhs, rhs v1.EnvVarSource) bool