-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Propagate HasBeenActive to a terminal condition as "ScaleTargetInitialized". #8569
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
Changes from 1 commit
34e09d9
ad6e4b5
f431439
241a3e3
751a4b1
57e4ea5
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 | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -112,6 +112,9 @@ const ( | |||||||
| // PodAutoscalerConditionReady is set when the revision is starting to materialize | ||||||||
| // runtime resources, and becomes true when those resources are ready. | ||||||||
| PodAutoscalerConditionReady = apis.ConditionReady | ||||||||
| // PodAutoscalerConditionHasBeenActive is set when the PodAutoscaler's ScaleTargetRef was ready to | ||||||||
| // serve traffic once. | ||||||||
| PodAutoscalerConditionHasBeenActive apis.ConditionType = "HasBeenActive" | ||||||||
|
Member
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.
Member
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.
Contributor
Author
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 almost feel like we should just set
Contributor
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. Not necessarily true. With initialScale=0 — nothing will ever be deployed
Contributor
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. Hmm
Member
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.
Contributor
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 maybe ReachedInitialScale, since that’s what actually gates the condition
Contributor
Author
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.
Contributor
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. Hm, in my head when minScale > initialScale, initialScale is implicitly set to minScale, but I see how that could be confusing.
Member
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 think it works because it's part of the PodAutoscaler spec serving/pkg/apis/autoscaling/v1alpha1/pa_types.go Lines 98 to 100 in f431439
|
||||||||
| // PodAutoscalerConditionActive is set when the PodAutoscaler's ScaleTargetRef is receiving traffic. | ||||||||
| PodAutoscalerConditionActive apis.ConditionType = "Active" | ||||||||
| ) | ||||||||
|
|
||||||||
Uh oh!
There was an error while loading. Please reload this page.