Documentation ¶
Index ¶
- func ConvertVersionMapToGenerationMap(versionMap map[string]string) map[string]int64
- func ObjectNeedsUpdate(desiredObj, clusterObj *unstructured.Unstructured, recordedVersion string, ...) bool
- func ObjectVersion(clusterObj *unstructured.Unstructured) string
- func PropagatedVersionStatusEquivalent(pvs1, pvs2 *fedcorev1a1.PropagatedVersionStatus) bool
- func SortClusterVersions(versions []fedcorev1a1.ClusterObjectVersion)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ObjectNeedsUpdate ¶
func ObjectNeedsUpdate( desiredObj, clusterObj *unstructured.Unstructured, recordedVersion string, typeConfig *fedcorev1a1.FederatedTypeConfig, ) bool
ObjectNeedsUpdate determines whether the 2 objects provided cluster object needs to be updated according to the desired object and the recorded version.
func ObjectVersion ¶
func ObjectVersion(clusterObj *unstructured.Unstructured) string
ObjectVersion retrieves the field type-prefixed value used for determining currency of the given cluster object.
func PropagatedVersionStatusEquivalent ¶
func PropagatedVersionStatusEquivalent(pvs1, pvs2 *fedcorev1a1.PropagatedVersionStatus) bool
PropagatedVersionStatusEquivalent returns true if both statuses are equal by comparing Template and Override version, and their ClusterVersion slices; false otherwise.
func SortClusterVersions ¶
func SortClusterVersions(versions []fedcorev1a1.ClusterObjectVersion)
SortClusterVersions ASCII sorts the given cluster versions slice based on cluster name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.