[stable/karma] support securityContext to run as non-root (#15723)

Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>
This commit is contained in:
David J. M. Karlsen
2019-07-20 00:32:55 -07:00
committed by Kubernetes Prow Robot
parent 844d4f95c6
commit d3fbfb1108
4 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ home: https://github.com/prymitive/karma
sources:
- https://hub.docker.com/r/lmierzwa/karma/
- https://github.com/prymitive/karma
version: 1.1.16
version: 1.1.17
maintainers:
- name: davidkarlsen
email: david@davidkarlsen.com
+1
View File
@@ -56,6 +56,7 @@ The following table lists the configurable parameters of the karma chart and the
| `nodeSelector` | Settings for nodeselector | `{}` |
| `tolerations` | Settings for toleration | `{}` |
| `affinity` | Settings for affinity | `{}` |
| `securityContext` | Settings for security context | `{}` |
| `serviceAccount.create` | Create service-account | `true` |
| `serviceAccount.name` | Override service-account name | `` |
| `livenessProbe.delay` | Specify delay in executing probe | `5` |
+4
View File
@@ -24,6 +24,10 @@ spec:
{{- end }}
spec:
serviceAccountName: {{ template "karma.serviceAccountName" . }}
{{- if .Values.securityContext }}
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
+2
View File
@@ -60,6 +60,8 @@ tolerations: []
affinity: {}
securityContext: {}
# configuration for liveness probe
livenessProbe:
delay: 5