Skip to content

Commit 047dce1

Browse files
authored
Add additional deprecation types for each level (package, channel, bundle). (#307)
Signed-off-by: dtfranz <[email protected]>
1 parent 6b3567d commit 047dce1

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

pkg/operators/v1alpha1/subscription_types.go

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,18 @@ const (
118118
// SubscriptionBundleUnpackFailed indicates that the unpack job failed
119119
SubscriptionBundleUnpackFailed SubscriptionConditionType = "BundleUnpackFailed"
120120

121-
// SubscriptionOperatorDeprecated indicates that the Operator currently installed with this Subscription has been deprecated.
122-
SubscriptionOperatorDeprecated SubscriptionConditionType = "OperatorDeprecated"
121+
// SubscriptionDeprecated is a roll-up condition which indicates that the Operator currently installed with this Subscription
122+
//has been deprecated. It will be present when any of the three deprecation types (Package, Channel, Bundle) are present.
123+
SubscriptionDeprecated SubscriptionConditionType = "Deprecated"
124+
125+
// SubscriptionOperatorDeprecated indicates that the Package currently installed with this Subscription has been deprecated.
126+
SubscriptionPackageDeprecated SubscriptionConditionType = "PackageDeprecated"
127+
128+
// SubscriptionOperatorDeprecated indicates that the Channel used with this Subscription has been deprecated.
129+
SubscriptionChannelDeprecated SubscriptionConditionType = "ChannelDeprecated"
130+
131+
// SubscriptionOperatorDeprecated indicates that the Bundle currently installed with this Subscription has been deprecated.
132+
SubscriptionBundleDeprecated SubscriptionConditionType = "BundleDeprecated"
123133
)
124134

125135
const (

0 commit comments

Comments
 (0)