-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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(controller)!: Updates the resource duration calculation. Fixes #2934 #2937
Conversation
@elgalu, @gaigepr, @seichten, @lemor303442, @paguos, @goern, @wangadong, @phelinor, @ddseapy, @zhujl1991 can I please request your feedback on this change? |
@elgalu, @gaigepr, @seichten, @lemor303442, @paguos, @goern, @wangadong, @phelinor, @zhujl1991 bump! |
@@ -56,9 +56,6 @@ type Config struct { | |||
// MetricsConfig specifies configuration for metrics emission | |||
MetricsConfig PrometheusConfig `json:"metricsConfig,omitempty"` | |||
|
|||
// FeatureFlags for general/experimental features | |||
FeatureFlags FeatureFlags `json:"featureFlags,omitempty"` |
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.
Are we getting rid of feature flags entirely? Wouldn't we want to keep this for future features?
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.
I don't think it is bad design. You can use normal config item or a envvar? Both are easier and more flexible.
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.
Are we enabling resource duration by default?
@@ -978,7 +979,7 @@ func (in ResourcesDuration) Add(o ResourcesDuration) ResourcesDuration { | |||
func (in ResourcesDuration) String() string { | |||
var parts []string | |||
for n, d := range in { | |||
parts = append(parts, fmt.Sprintf("%v*%s", d, n)) | |||
parts = append(parts, fmt.Sprintf("%v*(%s %s)", d, ResourceQuantityDenominator(n).String(), n)) |
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.
This looks way better in my opinion
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.
LGMT
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
.Fixes #2934
Changes
Screenshots