Documentation ¶
Index ¶
- Constants
- Variables
- func GetUsageCondition(status sbuTypes.ServiceBindingUsageStatus, ...) *sbuTypes.ServiceBindingUsageCondition
- func NewUsageCondition(condType sbuTypes.ServiceBindingUsageConditionType, ...) *sbuTypes.ServiceBindingUsageCondition
- func SetUsageCondition(status *sbuTypes.ServiceBindingUsageStatus, ...)
Constants ¶
View Source
const ( // ServiceBindingGetErrorReason is added in an usage when we cannot get a given ServiceBinding ServiceBindingGetErrorReason = "ServiceBindingGetError" // ServiceBindingOngoingAsyncOptReason is added in an usage when given ServiceBinding has ongoing async operation ServiceBindingOngoingAsyncOptReason = "ServiceBindingAsyncOperationInProgressError" // ServiceBindingNotReadyReason id added in an usage when given ServiceBinding is not in ready state ServiceBindingNotReadyReason = "ServiceBindingNotReadyError" // PodPresetUpsertErrorReason is added in an usage when we cannot create a new PodPreset PodPresetUpsertErrorReason = "PodPresetUpsertError" // FetchBindingLabelsErrorReason is added in an usage when we cannot fetch labels from given ClusterServiceClass or ServiceClass FetchBindingLabelsErrorReason = "ServiceClassGetBindingLabelsError" // ApplyLabelsConflictErrorReason is added in a usage when we cannot add labels to the given resource because they already exists ApplyLabelsConflictErrorReason = "ApplyLabelsConflictError" // EnsureLabelsAppliedErrorReason is added in a usage when we cannot add labels to the given resource, e.g. given resource does not exits EnsureLabelsAppliedErrorReason = "EnsureLabelsAppliedError" // AddOwnerReferenceErrorReason is added in a usage when we cannot add an OwnerReference to the given ServiceBinding AddOwnerReferenceErrorReason = "AddOwnerReferenceError" // EnsureLabelsDeletedErrorReason is added in a usage when we cannot deleted labels from the given resource EnsureLabelsDeletedErrorReason = "EnsureLabelsDeletedError" // PodPresetDeleteErrorReason is added in an usage when we cannot delete a new PodPreset PodPresetDeleteErrorReason = "PodPresetDeleteError" // GetStoredSpecError is added in an usage when we cannot get stored spec for given ServiceBindingUsage GetStoredSpecError = "GetStoredSBUSpecError" )
Variables ¶
View Source
var TimeNowFn = metaV1.Now
TimeNowFn is used for getting time for a new condition. It's exported to allow client to mock it in tests.
Functions ¶
func GetUsageCondition ¶
func GetUsageCondition(status sbuTypes.ServiceBindingUsageStatus, condType sbuTypes.ServiceBindingUsageConditionType) *sbuTypes.ServiceBindingUsageCondition
GetUsageCondition returns the condition with the provided type or nil if not found.
func NewUsageCondition ¶
func NewUsageCondition(condType sbuTypes.ServiceBindingUsageConditionType, status sbuTypes.ConditionStatus, reason, message string) *sbuTypes.ServiceBindingUsageCondition
NewUsageCondition creates a new usage condition.
func SetUsageCondition ¶
func SetUsageCondition(status *sbuTypes.ServiceBindingUsageStatus, condition sbuTypes.ServiceBindingUsageCondition)
SetUsageCondition updates the usage to include the provided condition. If the condition that we are about to add already exists and has the same status then we are not going to update the LastTransitionTime.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.