Documentation ¶
Index ¶
- Constants
- func SetFederatedStatus(fedObject *unstructured.Unstructured, reason AggregateReason, ...) (bool, error)
- type AggregateReason
- type CollectedPropagationStatus
- type ConditionType
- type GenericClusterStatus
- type GenericCondition
- type GenericFederatedResource
- type GenericFederatedStatus
- 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" ApplyOverridesFailed PropagationStatus = "ApplyOverridesFailed" 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" ManagedLabelFalse PropagationStatus = "ManagedLabelFalse" // 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" NamespaceNotFederated AggregateReason = "NamespaceNotFederated" PropagationConditionType ConditionType = "Propagation" )
Variables ¶
This section is empty.
Functions ¶
func SetFederatedStatus ¶
func SetFederatedStatus(fedObject *unstructured.Unstructured, reason AggregateReason, collectedStatus CollectedPropagationStatus) (bool, error)
SetFederatedStatus sets the conditions and clusters fields of the federated resource's object map. Returns a boolean indication of whether status should be written to the API.
Types ¶
type AggregateReason ¶
type AggregateReason string
type CollectedPropagationStatus ¶
type CollectedPropagationStatus struct { StatusMap PropagationStatusMap ResourcesUpdated bool }
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 reconciliation resulted in an error or the last time a // change was propagated to member clusters. // +optional LastUpdateTime string `json:"lastUpdateTime,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 GenericFederatedResource ¶
type GenericFederatedResource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Status *GenericFederatedStatus `json:"status,omitempty"` }
type GenericFederatedStatus ¶
type GenericFederatedStatus struct { ObservedGeneration int64 `json:"observedGeneration,omitempty"` 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.