-
Notifications
You must be signed in to change notification settings - Fork 545
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
Add Subscription InstallPlan Status #923
Add Subscription InstallPlan Status #923
Conversation
ff021fc
to
078d75c
Compare
- Add Subscription InstallPlan status conditions - Add better condition getters/setters to InstallPlan status - Add hashstructure set tag to Subscription condition - Update internal version types to match
Add Subscription InstallPlan states and transition functions.
- Add Subscription InstallPlan status reconciler - Simplify Subscription catalog health reconciler transition loop conditions
- Add InstallPlan status reconciler to Subscription Syncer - Add InstallPlan Informer option to Subscription Syncer config - Plumb now function through transitionInstallPlanState(...)
@@ -96,6 +125,11 @@ func (c *catalogHealthReconciler) catalogHealth(namespace string) ([]v1alpha1.Su | |||
catalogs = append(catalogs, globals...) | |||
} | |||
|
|||
// Sort to ensure ordering | |||
sort.Slice(catalogs, func(i, j int) bool { |
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.
we only really need this for testing, right? is there any way we can just sort for tests and not for prod?
err = sync(s.Subscription()) | ||
} | ||
// installPlanReconciler reconciles InstallPlan status for Subscriptions. | ||
type installPlanReconciler struct { |
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.
installPlanStatusReconciler?
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ecordell, njhale The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Adds Subscription status conditions for referenced InstallPlans.
Conditions added:
SubscriptionInstallPlanMissing
SubscriptionInstallPlanPending
SubscriptionInstallPlanFailed