Skip to content
Permalink
Browse files

Adds the setPVOwnerRef option to the helm chart (default false)

  • Loading branch information...
h0tbird committed Jul 24, 2019
1 parent fb07a05 commit 74869f0c8ecc273c543618c1d37892aebb1dfbd3
Showing with 12 additions and 3 deletions.
  1. +2 −1 helm/README.md
  2. +3 −0 helm/provisioner/templates/provisioner.yaml
  3. +7 −2 helm/provisioner/values.yaml
@@ -35,7 +35,7 @@ And there are [a lot of examples](TODO) to help you get started quickly.

Helm templating is used to generate the provisioner's DaemonSet, ConfigMap and
other necessary objects' specs. The generated specs can be further customized
as needed (usually not necessary), and then deployed using kubectl.
as needed (usually not necessary), and then deployed using kubectl.

**helm template** uses 3 sources of information:

@@ -100,6 +100,7 @@ provisioner chart and their default values.
| common.minResyncPeriod | Resync period in reflectors will be random between `minResyncPeriod` and `2*minResyncPeriod`. | str | `5m0s` |
| common.configMapName | Provisioner ConfigMap name. | str | `local-provisioner-config` |
| common.podSecurityPolicy | Whether to create pod security policy or not. | bool | `false` |
| common.setPVOwnerRef | If set to true, PVs are set to be dependents of the owner Node. | bool | `false` |
| classes.[n].name | StorageClass name. | str | `-` |
| classes.[n].hostDir | Path on the host where local volumes of this storage class are mounted under. | str | `-` |
| classes.[n].mountDir | Optionally specify mount path of local volumes. By default, we use same path as hostDir in container. | str | `-` |
@@ -17,6 +17,9 @@ data:
{{- if .Values.common.useAlphaAPI }}
useAlphaAPI: "true"
{{- end }}
{{- if .Values.common.setPVOwnerRef }}
setPVOwnerRef: "true"
{{- end }}
{{- if .Values.common.useJobForCleaning }}
useJobForCleaning: "yes"
{{- end}}
@@ -12,13 +12,18 @@ common:
namespace: default
#
# Defines whether to create provisioner namespace
#
#
createNamespace: false
#
# Beta PV.NodeAffinity field is used by default. If running against pre-1.10
# k8s version, the `useAlphaAPI` flag must be enabled in the configMap.
#
useAlphaAPI: false
#
# Indicates if PVs should be dependents of the owner Node.
#
setPVOwnerRef: false
#
# Provisioner clean volumes in process by default. If set to true, provisioner
# will use Jobs to clean.
#
@@ -78,7 +83,7 @@ classes:
# reclaimPolicy: Delete # Available reclaim policies: Delete/Retain, defaults: Delete.
#
# Configure DaemonSet for provisioner.
#
#
daemonset:
#
# Defines the name of a Provisioner

0 comments on commit 74869f0

Please sign in to comment.
You can’t perform that action at this time.