Skip to content

Commit

Permalink
reduce delay
Browse files Browse the repository at this point in the history
  • Loading branch information
foriequal0 committed Jul 30, 2024
1 parent d2ed5c2 commit a7c9a29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/pod-graceful-drain/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ metrics:

# Set the manager log level: info, debug (default: info)
logLevel:
# Amount of time that a pod is deleted after a denial of an admission (default: 90s)
# Amount of time that a pod is deleted after a denial of an admission (default: 25s)
deleteAfter:
# Allow pod deletion even if there were errors during the pod deletion interception (default: true)
ignoreError: true
experimentalGeneralIngress: false

# Time period for the controller pod to do a graceful shutdown. It should be greater than deleteAfter
terminationGracePeriodSeconds: 100
terminationGracePeriodSeconds: 30
# Timeout for the ValidatingAdmissionWebhook. It should be long enough since admission delay cap is determined by this value
webhookTimeoutSeconds: 30
# webhook's namespaceSelector to limit where the pod-graceful-drain is applied
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use humantime::parse_duration;
#[derive(Clone, Debug, Parser)]
#[command(version, about)]
pub struct Config {
#[arg(long, default_value = "90s", value_parser = parse_duration)]
#[arg(long, default_value = "30s", value_parser = parse_duration)]
pub delete_after: Duration,

#[arg(long, default_value = "true")]
Expand Down

0 comments on commit a7c9a29

Please sign in to comment.