Skip to content

Commit 2132028

Browse files
authored
release(chart): changes for OpenEBS v3.1.0 release (#131)
This commit does the following changes: - Update chart and app version - Add FilePermissions values parameter for the StorageClass Signed-off-by: Niladri Halder <niladri.halder@mayadata.io>
1 parent d0cdbb5 commit 2132028

File tree

5 files changed

+40
-6
lines changed

5 files changed

+40
-6
lines changed

deploy/helm/charts/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ description: Helm chart for OpenEBS Dynamic NFS PV. For instructions to install
44
type: application
55
# This is the chart version. This version number should be incremented each time you make changes
66
# to the chart and its templates, including the app version.
7-
version: 0.8.0
7+
version: 0.9.0
88
# This is the version number of the application being deployed. This version number should be
99
# incremented each time you make changes to the application.
10-
appVersion: 0.8.0
10+
appVersion: 0.9.0
1111
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/openebs/icon/color/openebs-icon-color.png
1212
home: http://www.openebs.io/
1313
keywords:

deploy/helm/charts/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ helm install openebs-nfs openebs-nfs/nfs-provisioner --namespace openebs --creat
117117
| `nfsProvisioner.healthCheck.periodSeconds` | How often to perform the liveness probe | `60` |
118118
| `nfsProvisioner.image.registry` | Registry for NFS Provisioner image | `""` |
119119
| `nfsProvisioner.image.repository` | Image repository for NFS Provisioner | `openebs/provisioner-nfs` |
120-
| `nfsProvisioner.image.tag` | Image tag for NFS Provisioner | `0.8.0` |
120+
| `nfsProvisioner.image.tag` | Image tag for NFS Provisioner | `0.9.0` |
121121
| `nfsProvisioner.image.pullPolicy` | Image pull policy for NFS Provisioner image | `IfNotPresent` |
122122
| `nfsProvisioner.annotations` | Annotations for NFS Provisioner metadata | `""` |
123123
| `nfsProvisioner.nodeSelector` | Nodeselector for NFS Provisioner pod | `""` |
124124
| `nfsProvisioner.nfsServerAlpineImage.registry` | Registry for nfs-server-alpine | `""` |
125125
| `nfsProvisioner.nfsServerAlpineImage.repository` | Image repository for nfs-server-alpine | `openebs/nfs-server-alpine` |
126-
| `nfsProvisioner.nfsServerAlpineImage.tag` | Image tag for nfs-server-alpine | `0.8.0` |
126+
| `nfsProvisioner.nfsServerAlpineImage.tag` | Image tag for nfs-server-alpine | `0.9.0` |
127127
| `nfsProvisioner.resources` | Resource request and limit for the container | `true` |
128128
| `nfsProvisioner.securityContext` | Security context for container | `""` |
129129
| `nfsProvisioner.tolerations` | NFS Provisioner pod toleration values | `""` |
@@ -136,7 +136,10 @@ helm install openebs-nfs openebs-nfs/nfs-provisioner --namespace openebs --creat
136136
| `nfsStorageClass.reclaimPolicy` | ReclaimPolicy for NFS PVs | `"Delete"` |
137137
| `nfsStorageClass.leaseTime` | Renewal period(in seconds) for NFS client state | `90` |
138138
| `nfsStorageClass.graceTime` | Recovery period(in seconds) to reclaim locks for NFS client | `90` |
139-
| `nfsStorageClass.nfsServerResources` | Resource requests and limits of NFS Server | `""` |
139+
| `nfsStorageClass.nfsServerResources` | Resource requests and limits of NFS Server | `""` |
140+
| `nfsStorageClass.filePermissions.UID` | Set user owner of the shared directory | `""` |
141+
| `nfsStorageClass.filePermissions.GID` | Set group owner of the shared directory | `""` |
142+
| `nfsStorageClass.filePermissions.mode` | Set file mode of the shared directory | `""` |
140143
| `rbac.create` | Enable RBAC Resources | `true` |
141144
| `rbac.pspEnabled` | Create pod security policy resources | `false` |
142145
| `nfsServer.imagePullSecret` | Image pull secret name to be used by NFS Server pods | `""` |

deploy/helm/charts/templates/kernel-nfs-storageclass.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ metadata:
3737
{{ toYaml .Values.nfsStorageClass.nfsServerResources.limits | indent 10 }}
3838
{{- end }}
3939
{{- end }}
40+
{{- if .Values.nfsStorageClass.filePermissions }}
41+
- name: FilePermissions
42+
data:
43+
{{- if .Values.nfsStorageClass.filePermissions.UID }}
44+
UID: {{ .Values.nfsStorageClass.filePermissions.UID | quote }}
45+
{{- end }}
46+
{{- if .Values.nfsStorageClass.filePermissions.GID }}
47+
GID: {{ .Values.nfsStorageClass.filePermissions.GID | quote }}
48+
{{- end }}
49+
{{- if .Values.nfsStorageClass.filePermissions.mode }}
50+
mode: {{ .Values.nfsStorageClass.filePermissions.mode | quote }}
51+
{{- end }}
52+
{{- end }}
4053
{{- if .Values.nfsStorageClass.isDefaultClass }}
4154
storageclass.kubernetes.io/is-default-class: "true"
4255
{{- end }}

deploy/helm/charts/values.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,25 @@ nfsStorageClass:
104104
# graceTime defines the recovery period(in seconds) to reclaim locks
105105
# setting graceTime and leaseTime lower will reduce the io pause time during nfs server restart
106106
graceTime:
107+
# filePermissions defines the file ownership and mode specifications
108+
# for the NFS server's shared filesystem volume.
109+
# File permission changes are applied recursively if the root of the
110+
# volume's filesystem does not match the specified value.
111+
# For more information: https://github.com/openebs/dynamic-nfs-provisioner/blob/develop/docs/tutorial/file-permissions.md
112+
filePermissions: {}
113+
# The UID value is used to set the user-owner of NFS shared directory. Only valid
114+
# UIDs are accepted.
115+
# The ownership change is carried out recursively down the directory tree.
116+
# UID: ""
117+
# The GID value is used to set the group-owner of NFS shared directory. Only valid
118+
# GIDs are accepted.
119+
# The ownership change is carried out recursively down the directory tree.
120+
# GID: ""
121+
# The mode value is used to set the file mode of NFS shared directory. Both octals (e.g. 0744)
122+
# and incremental/decremental (e.g. "u+r", "o+rw") values are accepted.
123+
# The file mode change is carried out recursively down the directory tree.
124+
# mode: ""
125+
107126
# nfsServerResources defines the NFS server resource requests and limits
108127
# Usually, below request and limits are good enough for NFS Server to work
109128
# seamlessly(IOs will be taken care by kerner space process i.e nfsd).

deploy/kubectl/openebs-nfs-provisioner.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ spec:
142142
# while creating nfs volume
143143
- name: OPENEBS_IO_NFS_SERVER_IMG
144144
value: openebs/nfs-server-alpine:ci
145-
# OPENEBS_IO_NFS_HOOK_CONFIGMAP defines configmap to use for hook
146145
# LEADER_ELECTION_ENABLED is used to enable/disable leader election. By default
147146
# leader election is enabled.
148147
#- name: LEADER_ELECTION_ENABLED

0 commit comments

Comments
 (0)