From 0d25508ec43b98b53e39cdff66c0136be7331a04 Mon Sep 17 00:00:00 2001 From: Rahul Sharma Date: Fri, 11 Sep 2026 08:16:28 -0700 Subject: [PATCH] allow configuring leader-lease-renew-deadline Signed-off-by: Rahul Sharma --- deployments/gpu-operator/templates/operator.yaml | 5 +++++ deployments/gpu-operator/values.yaml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/deployments/gpu-operator/templates/operator.yaml b/deployments/gpu-operator/templates/operator.yaml index 984d7be0a..fcd9a79a9 100644 --- a/deployments/gpu-operator/templates/operator.yaml +++ b/deployments/gpu-operator/templates/operator.yaml @@ -40,6 +40,11 @@ spec: command: ["gpu-operator"] args: - --leader-elect + {{- with .Values.operator.leaderElection }} + {{- if .renewDeadline }} + - --leader-lease-renew-deadline={{ .renewDeadline }} + {{- end }} + {{- end }} {{- if .Values.operator.logging.develMode }} - --zap-devel {{- else }} diff --git a/deployments/gpu-operator/values.yaml b/deployments/gpu-operator/values.yaml index f6222b0d5..b24c59d73 100644 --- a/deployments/gpu-operator/values.yaml +++ b/deployments/gpu-operator/values.yaml @@ -76,6 +76,8 @@ operator: #version: "" imagePullPolicy: IfNotPresent imagePullSecrets: [] + # leaderElection: + # renewDeadline: 60s env: [] priorityClassName: system-node-critical runtimeClass: nvidia