mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
committed by
Kubernetes Prow Robot
parent
844d4f95c6
commit
d3fbfb1108
@@ -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
|
||||
|
||||
@@ -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` |
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
@@ -60,6 +60,8 @@ tolerations: []
|
||||
|
||||
affinity: {}
|
||||
|
||||
securityContext: {}
|
||||
|
||||
# configuration for liveness probe
|
||||
livenessProbe:
|
||||
delay: 5
|
||||
|
||||
Reference in New Issue
Block a user