Skip to content

Commit

Permalink
[stable/nfs-server-provisioner]: add reclaim policy support (helm#7604)
Browse files Browse the repository at this point in the history
* feat(stable.nfs-server-provisioner): add recliamPolicy

Signed-off-by: Alexander Babai <[email protected]>

* chore(stable.nfs-server-provisioner): bump chart version

Signed-off-by: Alexander Babai <[email protected]>
  • Loading branch information
alebabai authored and k8s-ci-robot committed Sep 8, 2018
1 parent 64a5308 commit 5aab720
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/nfs-server-provisioner/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 1.0.8
description: nfs-server-provisioner is an out-of-tree dynamic provisioner for Kubernetes. You can use it to quickly & easily deploy shared storage that works almost anywhere.
name: nfs-server-provisioner
version: 0.2.0
version: 0.2.1
maintainers:
- name: kiall
email: [email protected]
Expand Down
1 change: 1 addition & 0 deletions stable/nfs-server-provisioner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ their default values.
| `storageClass.defaultClass` | Whether to set the created StorageClass as the clusters default StorageClass | `false` |
| `storageClass.name` | The name to assign the created StorageClass | `nfs` |
| `storageClass.parameters` | Parameters for StorageClass | `mountOptions: vers=4.1` |
| `storageClass.reclaimPolicy` | ReclaimPolicy field of the class, which can be either Delete or Retain | `Delete` |
| `resources` | Resource limits for nfs-server-provisioner pod | `{}` |
| `nodeSelector` | Map of node labels for pod assignment | `{}` |
| `tolerations` | List of node taints to tolerate | `[]` |
Expand Down
1 change: 1 addition & 0 deletions stable/nfs-server-provisioner/templates/storageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ metadata:
storageclass.kubernetes.io/is-default-class: "true"
{{- end }}
provisioner: {{ template "nfs-provisioner.provisionerName" . }}
reclaimPolicy: {{ .Values.storageClass.reclaimPolicy }}
{{ end -}}
{{- with .Values.storageClass.parameters }}
parameters:
Expand Down
3 changes: 3 additions & 0 deletions stable/nfs-server-provisioner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ storageClass:
parameters:
mountOptions: vers=4.1

## ReclaimPolicy field of the class, which can be either Delete or Retain
reclaimPolicy: Delete

## For RBAC support:
rbac:
create: true
Expand Down

0 comments on commit 5aab720

Please sign in to comment.