annotations

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package annotations provides the utils related to object annotations.

Index

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.

Jump to

Keyboard shortcuts

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