Documentation ¶
Overview ¶
Package annotations provides the utils related to object annotations.
Index ¶
- func ExtractNumOfClustersFromPolicySnapshot(policy *fleetv1beta1.ClusterSchedulingPolicySnapshot) (int, error)
- func ExtractNumberOfEnvelopeObjFromResourceSnapshot(snapshot *fleetv1beta1.ClusterResourceSnapshot) (int, error)
- func ExtractNumberOfResourceSnapshotsFromResourceSnapshot(snapshot *fleetv1beta1.ClusterResourceSnapshot) (int, error)
- func ExtractObservedCRPGenerationFromPolicySnapshot(policy *fleetv1beta1.ClusterSchedulingPolicySnapshot) (int64, error)
- func ExtractSubindexFromClusterResourceSnapshot(snapshot *fleetv1beta1.ClusterResourceSnapshot) (doesExist bool, subindex int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractNumOfClustersFromPolicySnapshot ¶
func ExtractNumOfClustersFromPolicySnapshot(policy *fleetv1beta1.ClusterSchedulingPolicySnapshot) (int, error)
ExtractNumOfClustersFromPolicySnapshot extracts the numOfClusters value from the annotations on a policy snapshot.
func ExtractNumberOfEnvelopeObjFromResourceSnapshot ¶ added in v0.7.9
func ExtractNumberOfEnvelopeObjFromResourceSnapshot(snapshot *fleetv1beta1.ClusterResourceSnapshot) (int, error)
ExtractNumberOfEnvelopeObjFromResourceSnapshot extracts the number of envelope object in a group from the master clusterResourceSnapshot.
func ExtractNumberOfResourceSnapshotsFromResourceSnapshot ¶
func ExtractNumberOfResourceSnapshotsFromResourceSnapshot(snapshot *fleetv1beta1.ClusterResourceSnapshot) (int, error)
ExtractNumberOfResourceSnapshotsFromResourceSnapshot extracts the number of clusterResourceSnapshots in a group from the master clusterResourceSnapshot.
func ExtractObservedCRPGenerationFromPolicySnapshot ¶
func ExtractObservedCRPGenerationFromPolicySnapshot(policy *fleetv1beta1.ClusterSchedulingPolicySnapshot) (int64, error)
ExtractObservedCRPGenerationFromPolicySnapshot extracts the observed CRP generation from policySnapshot.
func ExtractSubindexFromClusterResourceSnapshot ¶
func ExtractSubindexFromClusterResourceSnapshot(snapshot *fleetv1beta1.ClusterResourceSnapshot) (doesExist bool, subindex int, err error)
ExtractSubindexFromClusterResourceSnapshot extracts the subindex value from the annotations of a clusterResourceSnapshot.
Types ¶
This section is empty.