-
Notifications
You must be signed in to change notification settings - Fork 36
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
feat: add woop apply threshold strategy to tf scaling policy #438
Conversation
@@ -567,13 +680,37 @@ func toWorkloadScalingPoliciesMap(p sdk.WorkloadoptimizationV1ResourcePolicies) | |||
m[FieldLimitStrategy] = []map[string]any{limit} | |||
} | |||
|
|||
if v, ok := previousCfg["apply_threshold"].(float64); ok && v > 0 { |
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.
nit I would extract that into a func similar to what you did with resolveApplyThresholdStrategy
. Then, place both functions close to each other and include a "business" comment explaining why it’s done this way, or just add a link to a gh comments, so even after N months, we’ll still be able to quickly understand “what the hell..” 😄
…oth applyThreshold and Strategy is missing
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.
No description provided.