Skip to content

Commit 90de9ff

Browse files
dtfranzci-robot
authored andcommitted
Add additional deprecation types for each level (package, channel, bundle). (#307)
Signed-off-by: dtfranz <[email protected]> Upstream-repository: api Upstream-commit: 047dce1d23b997e02349c97c38733c8ab047aabe
1 parent 307937c commit 90de9ff

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

staging/api/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 (

vendor/github.com/operator-framework/api/pkg/operators/v1alpha1/subscription_types.go

Lines changed: 12 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)