From 099ddce5cc0313df095f7e00c6a0be7988ab4eb0 Mon Sep 17 00:00:00 2001 From: Robert Munteanu Date: Mon, 15 Feb 2021 20:40:57 +0100 Subject: [PATCH] Update chart to surface leader election flag --- .../nfs-subdir-external-provisioner/templates/deployment.yaml | 4 ++++ charts/nfs-subdir-external-provisioner/values.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/charts/nfs-subdir-external-provisioner/templates/deployment.yaml b/charts/nfs-subdir-external-provisioner/templates/deployment.yaml index 6693722f..75519915 100644 --- a/charts/nfs-subdir-external-provisioner/templates/deployment.yaml +++ b/charts/nfs-subdir-external-provisioner/templates/deployment.yaml @@ -55,6 +55,10 @@ spec: value: {{ .Values.nfs.server }} - name: NFS_PATH value: {{ .Values.nfs.path }} + {{- if eq .Values.leaderElection.enabled false }} + - name: ENABLE_LEADER_ELECTION + value: false + {{- end }} {{- with .Values.resources }} resources: {{ toYaml . | indent 12 }} diff --git a/charts/nfs-subdir-external-provisioner/values.yaml b/charts/nfs-subdir-external-provisioner/values.yaml index 0b5e4e5b..95c23038 100644 --- a/charts/nfs-subdir-external-provisioner/values.yaml +++ b/charts/nfs-subdir-external-provisioner/values.yaml @@ -38,6 +38,10 @@ storageClass: # Set access mode - ReadWriteOnce, ReadOnlyMany or ReadWriteMany accessModes: ReadWriteOnce +leaderElection: + # When set to false leader election will be disabled + enabled: true + ## For RBAC support: rbac: # Specifies whether RBAC resources should be created