Skip to content
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

Merged
merged 7 commits into from
Jun 26, 2019

Conversation

njhale
Copy link
Member

@njhale njhale commented Jun 22, 2019

Adds Subscription status conditions for referenced InstallPlans.

Conditions added:

  • SubscriptionInstallPlanMissing
  • SubscriptionInstallPlanPending
  • SubscriptionInstallPlanFailed

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 22, 2019
@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jun 22, 2019
@njhale njhale force-pushed the sub-ips branch 6 times, most recently from ff021fc to 078d75c Compare June 24, 2019 21:49
njhale added 7 commits June 24, 2019 18:06
- 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(...)
@njhale njhale changed the title WIP Add Subscription InstallPlan Status Add Subscription InstallPlan Status Jun 24, 2019
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 24, 2019
@@ -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 {
Copy link
Member

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 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

installPlanStatusReconciler?

@ecordell
Copy link
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 26, 2019
@openshift-ci-robot
Copy link
Collaborator

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 73c00f8 into operator-framework:master Jun 26, 2019
@njhale njhale deleted the sub-ips branch September 30, 2019 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants