Documentation ¶
Index ¶
- Constants
- func ComputeStatus(obj *unstructured.Unstructured) *resourcemap.CachedStatus
- func ConvertKstatusConditions(kstatusConds []kstatus.Condition) []v1alpha1.Condition
- func GetSourceHash(annotations map[string]string) string
- func IsCNRMResource(group string) bool
- func ReadKCCResourceConditions(obj *unstructured.Unstructured) ([]v1alpha1.Condition, error)
Constants ¶
View Source
const (
// SourceHashAnnotationKey is the name of the annotation which contains the source hash
SourceHashAnnotationKey = "configmanagement.gke.io/token"
)
Variables ¶
This section is empty.
Functions ¶
func ComputeStatus ¶
func ComputeStatus(obj *unstructured.Unstructured) *resourcemap.CachedStatus
ComputeStatus computes the status and conditions that should be saved in the memory.
func ConvertKstatusConditions ¶
ConvertKstatusConditions converts the status from kstatus library to the conditions defined in ResourceGroup apis.
func GetSourceHash ¶
GetSourceHash returns the source hash that is defined in the source hash annotation.
func IsCNRMResource ¶
IsCNRMResource checks if a group is for a CNRM resource.
func ReadKCCResourceConditions ¶
func ReadKCCResourceConditions(obj *unstructured.Unstructured) ([]v1alpha1.Condition, error)
ReadKCCResourceConditions reads the status.conditions from a KCC object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.