You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Revision controller needs some cleanup/organization #10217
area/APIAPI objects and controllerskind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.triage/acceptedIssues which should be fixed (post-triage)
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:
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?
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
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)
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.
area/APIAPI objects and controllerskind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.triage/acceptedIssues which should be fixed (post-triage)
Activity
github-actions commentedon Feb 27, 2021
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 asfresh by adding the comment
/remove-lifecycle stale.dprotaso commentedon Mar 4, 2021
/remove-lifecycle stale
/assign
evankanderson commentedon Mar 19, 2021
/triage accepted