-
Notifications
You must be signed in to change notification settings - Fork 98
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
Support wpa configuration #142
Conversation
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 pull request contains a valid label.
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 pull request contains a valid label.
59a8c85
to
58256fb
Compare
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 pull request contains a valid label.
@@ -664,6 +664,11 @@ type ExternalMetricsConfig struct { | |||
// +optional | |||
Enabled bool `json:"enabled,omitempty"` | |||
|
|||
// Enable informer and controller of the watermark pod autoscaler | |||
// NOTE: You need to install the `WatermarkPodAutoscaler` CRD before |
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.
maybe something more generic: the WatermarkPodAutoscaler-Controller (https://github.com/DataDog/watermarkpodautoscaler) need to be install
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.
good point, done 👍
Codecov Report
@@ Coverage Diff @@
## master #142 +/- ##
==========================================
+ Coverage 58.02% 58.42% +0.39%
==========================================
Files 31 31
Lines 4610 4623 +13
==========================================
+ Hits 2675 2701 +26
+ Misses 1739 1726 -13
Partials 196 196
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
58256fb
to
e172a40
Compare
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 pull request contains a valid label.
e172a40
to
76d246a
Compare
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 pull request contains a valid label.
if reflect.DeepEqual(policyRule.Verbs, requiredVerbs) { | ||
verbsFound = true | ||
} |
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 will make the function return false in the cases where we have more privileges than expected (i.e.: not only get
, list
and watch
but also something else or even *
.)
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.
yes that's true, it's a util function for a test case though I wanted to leave it as dumb as possible - I think we can keep it like this and extend it if needed in other test cases in the future
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 pull request contains a valid label.
Co-authored-by: Lénaïc Huard <L3n41c@users.noreply.github.com>
71f5ba0
to
d71c5ed
Compare
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 pull request contains a valid label.
What does this PR do?
Add a dedicated field in the CRD and the required rbacs for WPA