-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve defaulting for kubernetes driver
* When LimitCPU or LimitMemory is 0, do not set a limit. We don't set a request size, and requesting 0 is not the same as not having a requested resource quantity. This can lead to increased pod evictions. * Clarify that LimitCPU and LimitMemory are also used for the requested resources. * When ActiveDeadlineSeconds is 0, do not set a deadline. * Stop defaulting ActiveDeadlineSeconds to 5 minutes. It will cut off a bundle mid-execution, which isn't a great default. * Split reading the configuration in SetConfig and attempting to connect to the cluster, so that we can unit test the settings logic. * Move validation for KUBE_NAMESPACE into SetConfig so that any errors can be reported immediately. * Add comments for all of the driver settings Signed-off-by: Carolyn Van Slyck <[email protected]>
- Loading branch information
Showing
3 changed files
with
278 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.