Skip to content

Commit

Permalink
Merge pull request #116 from Wieneo/container-security-context
Browse files Browse the repository at this point in the history
Use HELM chart to configure container security contex
  • Loading branch information
k8s-ci-robot committed Jan 27, 2023
2 parents ced97dc + 1658893 commit 0fa28a3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/nfs-server-provisioner/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 4.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: 1.6.0
version: 1.7.0
maintainers:
- name: kiall
email: kiall@macinnes.ie
Expand Down
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 0fa28a3

Please sign in to comment.