Skip to content

Commit

Permalink
release(chart): changes for OpenEBS v3.1.0 release (#131)
Browse files Browse the repository at this point in the history
This commit does the following changes:
- Update chart and app version
- Add FilePermissions values parameter for the StorageClass

Signed-off-by: Niladri Halder <[email protected]>
  • Loading branch information
niladrih authored Jan 11, 2022
1 parent d0cdbb5 commit 2132028
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 6 deletions.
4 changes: 2 additions & 2 deletions deploy/helm/charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ description: Helm chart for OpenEBS Dynamic NFS PV. For instructions to install
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.8.0
version: 0.9.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 0.8.0
appVersion: 0.9.0
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/openebs/icon/color/openebs-icon-color.png
home: http://www.openebs.io/
keywords:
Expand Down
9 changes: 6 additions & 3 deletions deploy/helm/charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ helm install openebs-nfs openebs-nfs/nfs-provisioner --namespace openebs --creat
| `nfsProvisioner.healthCheck.periodSeconds` | How often to perform the liveness probe | `60` |
| `nfsProvisioner.image.registry` | Registry for NFS Provisioner image | `""` |
| `nfsProvisioner.image.repository` | Image repository for NFS Provisioner | `openebs/provisioner-nfs` |
| `nfsProvisioner.image.tag` | Image tag for NFS Provisioner | `0.8.0` |
| `nfsProvisioner.image.tag` | Image tag for NFS Provisioner | `0.9.0` |
| `nfsProvisioner.image.pullPolicy` | Image pull policy for NFS Provisioner image | `IfNotPresent` |
| `nfsProvisioner.annotations` | Annotations for NFS Provisioner metadata | `""` |
| `nfsProvisioner.nodeSelector` | Nodeselector for NFS Provisioner pod | `""` |
| `nfsProvisioner.nfsServerAlpineImage.registry` | Registry for nfs-server-alpine | `""` |
| `nfsProvisioner.nfsServerAlpineImage.repository` | Image repository for nfs-server-alpine | `openebs/nfs-server-alpine` |
| `nfsProvisioner.nfsServerAlpineImage.tag` | Image tag for nfs-server-alpine | `0.8.0` |
| `nfsProvisioner.nfsServerAlpineImage.tag` | Image tag for nfs-server-alpine | `0.9.0` |
| `nfsProvisioner.resources` | Resource request and limit for the container | `true` |
| `nfsProvisioner.securityContext` | Security context for container | `""` |
| `nfsProvisioner.tolerations` | NFS Provisioner pod toleration values | `""` |
Expand All @@ -136,7 +136,10 @@ helm install openebs-nfs openebs-nfs/nfs-provisioner --namespace openebs --creat
| `nfsStorageClass.reclaimPolicy` | ReclaimPolicy for NFS PVs | `"Delete"` |
| `nfsStorageClass.leaseTime` | Renewal period(in seconds) for NFS client state | `90` |
| `nfsStorageClass.graceTime` | Recovery period(in seconds) to reclaim locks for NFS client | `90` |
| `nfsStorageClass.nfsServerResources` | Resource requests and limits of NFS Server | `""` |
| `nfsStorageClass.nfsServerResources` | Resource requests and limits of NFS Server | `""` |
| `nfsStorageClass.filePermissions.UID` | Set user owner of the shared directory | `""` |
| `nfsStorageClass.filePermissions.GID` | Set group owner of the shared directory | `""` |
| `nfsStorageClass.filePermissions.mode` | Set file mode of the shared directory | `""` |
| `rbac.create` | Enable RBAC Resources | `true` |
| `rbac.pspEnabled` | Create pod security policy resources | `false` |
| `nfsServer.imagePullSecret` | Image pull secret name to be used by NFS Server pods | `""` |
Expand Down
13 changes: 13 additions & 0 deletions deploy/helm/charts/templates/kernel-nfs-storageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@ metadata:
{{ toYaml .Values.nfsStorageClass.nfsServerResources.limits | indent 10 }}
{{- end }}
{{- end }}
{{- if .Values.nfsStorageClass.filePermissions }}
- name: FilePermissions
data:
{{- if .Values.nfsStorageClass.filePermissions.UID }}
UID: {{ .Values.nfsStorageClass.filePermissions.UID | quote }}
{{- end }}
{{- if .Values.nfsStorageClass.filePermissions.GID }}
GID: {{ .Values.nfsStorageClass.filePermissions.GID | quote }}
{{- end }}
{{- if .Values.nfsStorageClass.filePermissions.mode }}
mode: {{ .Values.nfsStorageClass.filePermissions.mode | quote }}
{{- end }}
{{- end }}
{{- if .Values.nfsStorageClass.isDefaultClass }}
storageclass.kubernetes.io/is-default-class: "true"
{{- end }}
Expand Down
19 changes: 19 additions & 0 deletions deploy/helm/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,25 @@ nfsStorageClass:
# graceTime defines the recovery period(in seconds) to reclaim locks
# setting graceTime and leaseTime lower will reduce the io pause time during nfs server restart
graceTime:
# filePermissions defines the file ownership and mode specifications
# for the NFS server's shared filesystem volume.
# File permission changes are applied recursively if the root of the
# volume's filesystem does not match the specified value.
# For more information: https://github.com/openebs/dynamic-nfs-provisioner/blob/develop/docs/tutorial/file-permissions.md
filePermissions: {}
# The UID value is used to set the user-owner of NFS shared directory. Only valid
# UIDs are accepted.
# The ownership change is carried out recursively down the directory tree.
# UID: ""
# The GID value is used to set the group-owner of NFS shared directory. Only valid
# GIDs are accepted.
# The ownership change is carried out recursively down the directory tree.
# GID: ""
# The mode value is used to set the file mode of NFS shared directory. Both octals (e.g. 0744)
# and incremental/decremental (e.g. "u+r", "o+rw") values are accepted.
# The file mode change is carried out recursively down the directory tree.
# mode: ""

# nfsServerResources defines the NFS server resource requests and limits
# Usually, below request and limits are good enough for NFS Server to work
# seamlessly(IOs will be taken care by kerner space process i.e nfsd).
Expand Down
1 change: 0 additions & 1 deletion deploy/kubectl/openebs-nfs-provisioner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ spec:
# while creating nfs volume
- name: OPENEBS_IO_NFS_SERVER_IMG
value: openebs/nfs-server-alpine:ci
# OPENEBS_IO_NFS_HOOK_CONFIGMAP defines configmap to use for hook
# LEADER_ELECTION_ENABLED is used to enable/disable leader election. By default
# leader election is enabled.
#- name: LEADER_ELECTION_ENABLED
Expand Down

0 comments on commit 2132028

Please sign in to comment.