-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional Deprecation Types #307
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I’m not seeing the point of this condition. There are three distinct conditions that reflect which resource is deprecated. I don’t see the need of a blanket condition unless there is a usage for it that is not described in the comment or commit. This is why we should start to do proof PR to show how these fields are being used as a part of reviewing process. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or is this supposed to replace OperatorDeprecated? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it's replacing |
||
|
||
// 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 ( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect this condition is used on olm side. So this is kind of an api change. Is it necessary to remove this without deprecation warning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For context, we just added that field yesterday and it's not in any release, so it's not in use anywhere. We're making a correction to the name here and also adding sub-types so that users can see which levels their installed Operators are deprecated at.