-
Notifications
You must be signed in to change notification settings - Fork 612
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
Add types for task protection handlers #3350
Add types for task protection handlers #3350
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.
LGTM. Please confirm with the control plane guys that this is aligned with finalized API.
// Protection for a Task | ||
type taskProtection struct { | ||
protectionType taskProtectionType | ||
protectionTimeoutMinutes *int |
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.
Q: What's the consideration of making this *int
instead of int
? Is this in sync with scheduler API?
Summary
Add new types to be used in Task scale-in protection API handlers.
Implementation details
A couple of new types, their constructors, and getters.
Testing
Unit tests
New tests cover the changes: yes
Description for the changelog
Add new types for task scale-in protection API
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.