-
Notifications
You must be signed in to change notification settings - Fork 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
ACL support for scaling APIs #7418
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.
CircleCI lint is failing and a test which seems to reference count diff which makes me think its a real failure. I could be mistaken on these though.
"github.com/stretchr/testify/require" | ||
"testing" | ||
"time" |
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: import sorting
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.
and a test which seems to reference count diff which makes me think its a real failure. I could be mistaken on these though.
thanks, i didn't notice the lint and i had forgotten about that test failure. sorry to take up the braincycles on that.
75f5083
to
a6a7e1c
Compare
cf10543
to
22edfc0
Compare
- read-job-scaling - scale-job - list-scaling-policies - read-scaling-policy updated the read and right policy dispositions, added the new autoscaler disposition
added ACL protection in Job.Scale in Job.Scale, only perform a Job.Register if the Count was non-nil
22edfc0
to
da3c2a4
Compare
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
Added new ACL capabilities for autoscaling:
read-job-scaling
scale-job
list-scaling-policies
read-scaling-policy
Updated
read
andwrite
policy dispositions, added newautoscaler
policy dispositionUpdated scaling API endpoints to check ACL capabilities
Closes #7411
One fun bit with this one.... because the scaling policies are embedded in the job, I wrote this to allow hitting those endpoints if you would otherwise have been able to see the scaling policies by looking directly at the encapsulating job.