Skip to content

Revision controller needs some cleanup/organization #10217

Open

Description

@dprotaso

/area API
/kind cleanup

Just revisited the revision controller after sometime. I figured I should write down my thoughts before I'm off on vacation starting now.

The revision controller is very fragile wrt. ordering of reconciling its child resources. Currently deployments are reconciled prior to pod autoscalers. Thus I've noticed:

  1. Phases reading into the revision status may be reading stale data
    • The deployment phase looks at the Active condition, then after the PodAutoscaler phase may update it
    • MakePA looks at the revisions conditions to reconcile. Afterwards PA conditions are propagated to revision. Maybe this causes some churn?
  2. Last Mark*() method wins - there's code in the PA phase to guard against overriding false conditions that it assumes the deployment phase has set
  3. Re-ordering phases exposes assumptions:
    • deployment phase (when deployment is not found) marks the revision as 'Deploying' - but the PA phase doesn't.
    • test fixtures aren't accurate - ie. deployment was not ready when testing the steady state but still passed because of PA's ready state trumped all (see 2. above)

Activity

  1. added
    kind/bug
    on Nov 27, 2020
  2. added
    area/API
    kind/cleanup
    on Nov 27, 2020
  3. removed
    kind/bug
    on Nov 27, 2020
  4. github-actions commented on Feb 27, 2021

    @github-actions

    This issue is stale because it has been open for 90 days with no
    activity. It will automatically close after 30 more days of
    inactivity. Reopen the issue with /reopen. Mark the issue as
    fresh by adding the comment /remove-lifecycle stale.

  5. added
    lifecycle/stale
    on Feb 27, 2021
  6. added this to the 0.22.x milestone on Mar 4, 2021
  7. dprotaso commented on Mar 4, 2021

    @dprotaso
    MemberAuthor

    /remove-lifecycle stale

    /assign

  8. removed
    lifecycle/stale
    on Mar 4, 2021
  9. evankanderson commented on Mar 19, 2021

    @evankanderson
    Member

    /triage accepted

  10. added
    triage/accepted
    on Mar 19, 2021
  11. modified the milestones: 0.22.x, 0.23.x on Apr 6, 2021
  12. modified the milestones: 0.23.x, 0.24.x on May 25, 2021
  13. modified the milestones: 0.24.x, 0.25.x on Jul 6, 2021
  14. modified the milestones: 0.25.x, 0.26.x on Aug 26, 2021
  15. modified the milestones: 0.26.x, 0.27.x on Oct 6, 2021
  16. modified the milestones: v1.0.0, v1.1.0 on Nov 3, 2021
  17. modified the milestones: v1.1.0, Icebox on Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/APIkind/cleanuptriage/accepted

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions