Skip to content

Commit de0138f

Browse files
authored
New condition types (#282)
* Adds BundleLookupFailed condition type It was previously defined and used in the operator codebase. Signed-off-by: Mikalai Radchuk <[email protected]> * Adds new Subscription condition types These conditions will be used to indicate unpack status on the subscription level. Previously unpack status was indicated on the InstallPlan, but since we now want to prevent InstallPlan from being created in a case of unpack job failure we need to indicate unpack job failures in Subscription conditions. --------- Signed-off-by: Mikalai Radchuk <[email protected]>
1 parent 0ab3deb commit de0138f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

pkg/operators/v1alpha1/installplan_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ const (
239239
// BundleLookupPending describes BundleLookups that are not complete.
240240
BundleLookupPending BundleLookupConditionType = "BundleLookupPending"
241241

242+
// BundleLookupFailed describes conditions types for when BundleLookups fail
243+
BundleLookupFailed BundleLookupConditionType = "BundleLookupFailed"
244+
242245
crdKind = "CustomResourceDefinition"
243246
)
244247

pkg/operators/v1alpha1/subscription_types.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ const (
111111

112112
// SubscriptionResolutionFailed indicates that the dependency resolution in the namespace in which the subscription is created has failed
113113
SubscriptionResolutionFailed SubscriptionConditionType = "ResolutionFailed"
114+
115+
// SubscriptionBundleUnpacking indicates that the unpack job is currently running
116+
SubscriptionBundleUnpacking SubscriptionConditionType = "BundleUnpacking"
117+
118+
// SubscriptionBundleUnpackFailed indicates that the unpack job failed
119+
SubscriptionBundleUnpackFailed SubscriptionConditionType = "BundleUnpackFailed"
114120
)
115121

116122
const (

0 commit comments

Comments
 (0)