From 6f8f2db927624d387bc5a8785e1dcced618cfe00 Mon Sep 17 00:00:00 2001 From: dtfranz Date: Fri, 10 Nov 2023 12:39:23 -0800 Subject: [PATCH] Add additional deprecation types for each level (package, channel, bundle). Signed-off-by: dtfranz --- pkg/operators/v1alpha1/subscription_types.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pkg/operators/v1alpha1/subscription_types.go b/pkg/operators/v1alpha1/subscription_types.go index 23f2cc511..672489264 100644 --- a/pkg/operators/v1alpha1/subscription_types.go +++ b/pkg/operators/v1alpha1/subscription_types.go @@ -118,8 +118,18 @@ const ( // SubscriptionBundleUnpackFailed indicates that the unpack job failed SubscriptionBundleUnpackFailed SubscriptionConditionType = "BundleUnpackFailed" - // SubscriptionOperatorDeprecated indicates that the Operator currently installed with this Subscription has been deprecated. - SubscriptionOperatorDeprecated SubscriptionConditionType = "OperatorDeprecated" + // SubscriptionDeprecated is a roll-up condition which indicates that the Operator currently installed with this Subscription + //has been deprecated. It will be present when any of the three deprecation types (Package, Channel, Bundle) are present. + SubscriptionDeprecated SubscriptionConditionType = "Deprecated" + + // SubscriptionOperatorDeprecated indicates that the Package currently installed with this Subscription has been deprecated. + SubscriptionPackageDeprecated SubscriptionConditionType = "PackageDeprecated" + + // SubscriptionOperatorDeprecated indicates that the Channel used with this Subscription has been deprecated. + SubscriptionChannelDeprecated SubscriptionConditionType = "ChannelDeprecated" + + // SubscriptionOperatorDeprecated indicates that the Bundle currently installed with this Subscription has been deprecated. + SubscriptionBundleDeprecated SubscriptionConditionType = "BundleDeprecated" ) const (