Skip to content

Commit

Permalink
Made security context configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Wieneo committed Jan 24, 2023
1 parent ced97dc commit 1ed47d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 3 additions & 4 deletions charts/nfs-server-provisioner/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,10 @@ spec:
- name: statd-udp
containerPort: 662
protocol: UDP
{{- with .Values.securityContext }}
securityContext:
capabilities:
add:
- DAC_READ_SEARCH
- SYS_RESOURCE
{{- toYaml . | nindent 12 }}
{{- end }}
args:
- "-provisioner={{ include "nfs-provisioner.provisionerName" . }}"
{{- range $key, $value := .Values.extraArgs }}
Expand Down
8 changes: 7 additions & 1 deletion charts/nfs-server-provisioner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ service:

persistence:
enabled: false

## Existing Persistent Volume Claim
## This should be used with persistence.enabled=true
## If defined, an existing volume claim will be used, instead
Expand Down Expand Up @@ -96,6 +96,12 @@ rbac:
##
serviceAccountName: default

securityContext:
capabilities:
add:
- DAC_READ_SEARCH
- SYS_RESOURCE

## For creating the PriorityClass automatically:
priorityClass:
## Enable creation of a PriorityClass resource for this nfs-server-provisioner instance
Expand Down

0 comments on commit 1ed47d4

Please sign in to comment.