Skip to content

Commit

Permalink
Conditionally set resourceLock to prevent chart incompatabilities wit…
Browse files Browse the repository at this point in the history
…h 1.27+

Signed-off-by: liam.baker <liam.baker@sage.com>
  • Loading branch information
liam.baker committed Dec 4, 2023
1 parent f43ee19 commit d1826c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jupyterhub/templates/scheduling/user-scheduler/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ data:
{{- end }}
kind: KubeSchedulerConfiguration
leaderElection:
{{- if semverCompare ">=1.27.0-0" .Capabilities.KubeVersion.Version }}
resourceLock: leases
{{- else }}
resourceLock: endpointsleases
{{- end }}
resourceName: {{ include "jupyterhub.user-scheduler-lock.fullname" . }}
resourceNamespace: "{{ .Release.Namespace }}"
profiles:
Expand Down

0 comments on commit d1826c9

Please sign in to comment.