Documentation ¶
Index ¶
- func AddConditionForResourceSubmittedDeliverable(conditionManager *ConditionManager, isOwner bool, err error)
- func AddConditionForResourceSubmittedWorkload(conditionManager *ConditionManager, isOwner bool, err error)
- func AlwaysHealthyResourcesHealthyCondition() metav1.Condition
- func BlueprintsFailedToListCreatedObjectsCondition(isOwner bool, err error) metav1.Condition
- func ClientBuilderErrorCondition(err error) metav1.Condition
- func DeliverableMissingLabelsCondition() metav1.Condition
- func DeliveryNotFoundCondition(labels map[string]string) metav1.Condition
- func DeliveryReadyCondition() metav1.Condition
- func DeploymentConditionNotMetCondition(err error) metav1.Condition
- func DeploymentFailedConditionMetCondition(err error) metav1.Condition
- func FailedToListCreatedObjectsCondition(err error) metav1.Condition
- func MissingReadyInDeliveryCondition(deliveryReadyCondition metav1.Condition) metav1.Condition
- func MissingReadyInSupplyChainCondition(supplyChainReadyCondition metav1.Condition) metav1.Condition
- func MissingValueAtPathCondition(isOwner bool, obj *unstructured.Unstructured, expression string, ...) metav1.Condition
- func MultiMatchNoMatchesCondition() metav1.Condition
- func MultiMatchResourcesHealthyCondition(status metav1.ConditionStatus, reason, message string) metav1.Condition
- func NoResourceResourcesHealthyCondition() metav1.Condition
- func NoStampedObjectResourcesHealthyCondition() metav1.Condition
- func OutputAvailableResourcesHealthyCondition() metav1.Condition
- func OutputNotAvailableResourcesHealthyCondition() metav1.Condition
- func OutputPathNotSatisfiedCondition(obj *unstructured.Unstructured, qualifiedResource string, errMsg string) metav1.Condition
- func ResolveTemplateOptionsErrorCondition(isOwner bool, err error) metav1.Condition
- func ResourceRealizerBuilderErrorCondition(err error) metav1.Condition
- func ResourceSubmittedCondition(isPassThrough bool) metav1.Condition
- func ResourcesSubmittedCondition(isOwner bool) metav1.Condition
- func RunTemplateMissingCondition(err error) metav1.Condition
- func RunTemplateReadyCondition() metav1.Condition
- func RunnableServiceAccountNotFoundCondition(err error) metav1.Condition
- func RunnableServiceAccountTokenErrorCondition(err error) metav1.Condition
- func RunnableTemplateStampFailureCondition(err error) metav1.Condition
- func ServiceAccountNotFoundCondition(err error) metav1.Condition
- func ServiceAccountTokenErrorCondition(err error) metav1.Condition
- func SingleConditionMatchCondition(status metav1.ConditionStatus, conditionName, message string) metav1.Condition
- func StampedObjectConditionKnown(condition *metav1.Condition) metav1.Condition
- func StampedObjectConditionUnknown() metav1.Condition
- func StampedObjectRejectedByAPIServerCondition(err error) metav1.Condition
- func SupplyChainNotFoundCondition(labels map[string]string) metav1.Condition
- func SupplyChainReadyCondition() metav1.Condition
- func TemplateObjectRetrievalFailureCondition(isOwner bool, err error) metav1.Condition
- func TemplateOptionsMatchErrorCondition(isOwner bool, err error) metav1.Condition
- func TemplateRejectedByAPIServerCondition(isOwner bool, err error) metav1.Condition
- func TemplateStampFailureByObservedGenerationCondition(err error) metav1.Condition
- func TemplateStampFailureCondition(isOwner bool, err error) metav1.Condition
- func TemplatesFoundCondition() metav1.Condition
- func TemplatesNotFoundCondition(resourceNames []string) metav1.Condition
- func TooManyDeliveryMatchesCondition() metav1.Condition
- func TooManySupplyChainMatchesCondition() metav1.Condition
- func UnknownErrorCondition(err error) metav1.Condition
- func UnknownResourceErrorCondition(isOwner bool, err error) metav1.Condition
- func UnknownResourcesHealthyCondition() metav1.Condition
- func WorkloadMissingLabelsCondition() metav1.Condition
- type ConditionManager
- type ConditionManagerBuilder
- type Polarity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddConditionForResourceSubmittedDeliverable ¶ added in v0.4.0
func AddConditionForResourceSubmittedDeliverable(conditionManager *ConditionManager, isOwner bool, err error)
func AddConditionForResourceSubmittedWorkload ¶ added in v0.4.0
func AddConditionForResourceSubmittedWorkload(conditionManager *ConditionManager, isOwner bool, err error)
func AlwaysHealthyResourcesHealthyCondition ¶ added in v0.4.0
func BlueprintsFailedToListCreatedObjectsCondition ¶ added in v0.6.0
func ClientBuilderErrorCondition ¶ added in v0.4.0
func DeliverableMissingLabelsCondition ¶ added in v0.4.0
func DeliveryNotFoundCondition ¶ added in v0.4.0
func DeliveryReadyCondition ¶ added in v0.4.0
func DeploymentConditionNotMetCondition ¶ added in v0.4.0
func DeploymentFailedConditionMetCondition ¶ added in v0.4.0
func FailedToListCreatedObjectsCondition ¶ added in v0.4.0
func MissingReadyInDeliveryCondition ¶ added in v0.4.0
func MissingReadyInSupplyChainCondition ¶ added in v0.4.0
func MissingValueAtPathCondition ¶ added in v0.4.0
func MissingValueAtPathCondition(isOwner bool, obj *unstructured.Unstructured, expression string, qualifiedResource string) metav1.Condition
func MultiMatchNoMatchesCondition ¶ added in v0.4.0
func MultiMatchResourcesHealthyCondition ¶ added in v0.4.0
func MultiMatchResourcesHealthyCondition(status metav1.ConditionStatus, reason, message string) metav1.Condition
func NoResourceResourcesHealthyCondition ¶ added in v0.4.0
func NoStampedObjectResourcesHealthyCondition ¶ added in v0.4.0
func OutputAvailableResourcesHealthyCondition ¶ added in v0.4.0
func OutputNotAvailableResourcesHealthyCondition ¶ added in v0.4.0
func OutputPathNotSatisfiedCondition ¶ added in v0.4.0
func OutputPathNotSatisfiedCondition(obj *unstructured.Unstructured, qualifiedResource string, errMsg string) metav1.Condition
func ResolveTemplateOptionsErrorCondition ¶ added in v0.4.0
func ResourceRealizerBuilderErrorCondition ¶ added in v0.4.0
func ResourceSubmittedCondition ¶ added in v0.4.0
func ResourcesSubmittedCondition ¶ added in v0.4.0
func RunTemplateMissingCondition ¶ added in v0.4.0
func RunTemplateReadyCondition ¶ added in v0.4.0
func RunnableServiceAccountNotFoundCondition ¶ added in v0.5.3
func RunnableServiceAccountTokenErrorCondition ¶ added in v0.5.3
func RunnableTemplateStampFailureCondition ¶ added in v0.4.0
func ServiceAccountNotFoundCondition ¶ added in v0.5.0
func ServiceAccountTokenErrorCondition ¶ added in v0.5.0
func SingleConditionMatchCondition ¶ added in v0.4.0
func SingleConditionMatchCondition(status metav1.ConditionStatus, conditionName, message string) metav1.Condition
func StampedObjectConditionKnown ¶ added in v0.4.2
func StampedObjectConditionUnknown ¶ added in v0.4.2
func StampedObjectRejectedByAPIServerCondition ¶ added in v0.4.0
func SupplyChainNotFoundCondition ¶ added in v0.4.0
func SupplyChainReadyCondition ¶ added in v0.4.0
func TemplateObjectRetrievalFailureCondition ¶ added in v0.4.0
func TemplateOptionsMatchErrorCondition ¶ added in v0.4.0
func TemplateRejectedByAPIServerCondition ¶ added in v0.4.0
func TemplateStampFailureByObservedGenerationCondition ¶ added in v0.4.0
func TemplateStampFailureCondition ¶ added in v0.4.0
func TemplatesFoundCondition ¶ added in v0.4.0
func TemplatesNotFoundCondition ¶ added in v0.4.0
func TooManyDeliveryMatchesCondition ¶ added in v0.4.0
func TooManySupplyChainMatchesCondition ¶ added in v0.4.0
func UnknownErrorCondition ¶ added in v0.4.0
func UnknownResourceErrorCondition ¶ added in v0.4.0
func UnknownResourcesHealthyCondition ¶ added in v0.4.0
func WorkloadMissingLabelsCondition ¶ added in v0.4.0
Types ¶
type ConditionManager ¶
type ConditionManager interface { // Add a condition and associate a polarity with it. Add(condition metav1.Condition, positive Polarity) // AddPositive Adds a condition with a positive polarity AddPositive(condition metav1.Condition) // AddNegative Adds a condition with a negative polarity AddNegative(condition metav1.Condition) // Finalize returns all conditions // not idempotent! subsequent finalizes will keep adding Parent conditions // The changed result represents whether the conditions have changed enough to warrant an update to the APIServer Finalize() (conditions []metav1.Condition, changed bool) // IsSuccessful can be called any time. Start's off true, but an // add of an unsuccessful condition (Positive-False or Negative-True) // causes this to return false IsSuccessful() bool }
ConditionManager supports collecting condition statuses for your controller It adds a complete top level condition when Finalize is called.
TBD: either error or warn if the same Condition.Type is reused TBD2: should accept an existing []Condition slice to compare against
should only update LastTransitionTime if the other fields have changed
func NewConditionManager ¶
func NewConditionManager(topLevelType string, previousConditions []metav1.Condition) ConditionManager
NewConditionManager returns a ConditionManager with a top level Condition.Type specified in topLevelType
type ConditionManagerBuilder ¶
type ConditionManagerBuilder func(topLevelType string, previousConditions []metav1.Condition) ConditionManager
Source Files ¶
Click to show internal directories.
Click to hide internal directories.