Documentation ¶
Index ¶
- Constants
- func SetPropagationStatus(fedObject *unstructured.Unstructured, reason AggregateReason, ...) error
- type AggregateReason
- type AggregateStatus
- type ConditionType
- type GenericClusterStatus
- type GenericCondition
- type GenericFederatedStatus
- type GenericPropagationStatus
- type PropagationStatus
- type PropagationStatusMap
Constants ¶
View Source
const ( ClusterPropagationOK PropagationStatus = "" WaitingForRemoval PropagationStatus = "WaitingForRemoval" // Cluster-specific errors ClusterNotReady PropagationStatus = "ClusterNotReady" CachedRetrievalFailed PropagationStatus = "CachedRetrievalFailed" ComputeResourceFailed PropagationStatus = "ComputeResourceFailed" CreationFailed PropagationStatus = "CreationFailed" UpdateFailed PropagationStatus = "UpdateFailed" DeletionFailed PropagationStatus = "DeletionFailed" LabelRemovalFailed PropagationStatus = "LabelRemovalFailed" RetrievalFailed PropagationStatus = "RetrievalFailed" AlreadyExists PropagationStatus = "AlreadyExists" FieldRetentionFailed PropagationStatus = "FieldRetentionFailed" VersionRetrievalFailed PropagationStatus = "VersionRetrievalFailed" ClientRetrievalFailed PropagationStatus = "ClientRetrievalFailed" // Operation timeout errors CreationTimedOut PropagationStatus = "CreationTimedOut" UpdateTimedOut PropagationStatus = "UpdateTimedOut" DeletionTimedOut PropagationStatus = "DeletionTimedOut" LabelRemovalTimedOut PropagationStatus = "LabelRemovalTimedOut" AggregateSuccess AggregateReason = "" ClusterRetrievalFailed AggregateReason = "ClusterRetrievalFailed" ComputePlacementFailed AggregateReason = "ComputePlacementFailed" CheckClusters AggregateReason = "CheckClusters" PropagationConditionType ConditionType = "Propagation" )
Variables ¶
This section is empty.
Functions ¶
func SetPropagationStatus ¶
func SetPropagationStatus(fedObject *unstructured.Unstructured, reason AggregateReason, statusMap PropagationStatusMap) error
SetPropagationStatus sets the conditions and clusters fields of the federated resource's object map from the provided reason and cluster status map.
Types ¶
type AggregateReason ¶
type AggregateReason string
type AggregateStatus ¶
type AggregateStatus string
type ConditionType ¶
type ConditionType string
type GenericClusterStatus ¶
type GenericClusterStatus struct { Name string `json:"name"` Status PropagationStatus `json:"status,omitempty"` }
type GenericCondition ¶
type GenericCondition struct { // Type of cluster condition Type ConditionType `json:"type"` // Status of the condition, one of True, False, Unknown. Status apiv1.ConditionStatus `json:"status"` // Last time the condition was checked. // +optional LastProbeTime string `json:"lastProbeTime,omitempty"` // Last time the condition transit from one status to another. // +optional LastTransitionTime string `json:"lastTransitionTime,omitempty"` // (brief) reason for the condition's last transition. // +optional Reason AggregateReason `json:"reason,omitempty"` }
type GenericFederatedStatus ¶
type GenericFederatedStatus struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Status *GenericPropagationStatus `json:"status,omitempty"` }
type GenericPropagationStatus ¶
type GenericPropagationStatus struct { Conditions []*GenericCondition `json:"conditions,omitempty"` Clusters []GenericClusterStatus `json:"clusters,omitempty"` }
type PropagationStatus ¶
type PropagationStatus string
type PropagationStatusMap ¶
type PropagationStatusMap map[string]PropagationStatus
Click to show internal directories.
Click to hide internal directories.