Add support for SELinux label modification (#9778)

* Add support for SELinux label modification in case the
default SPC_T one does not work on a system

Signed-off-by: Boris Kurktchiev <boris@diamanti.com>

* resolve PR comments

Signed-off-by: Boris Kurktchiev <boris@diamanti.com>

* resolve the PR comments properly...

Signed-off-by: Boris Kurktchiev <boris@diamanti.com>

* resolve comments

Signed-off-by: Boris Kurktchiev <boris@diamanti.com>
This commit is contained in:
Boris Kurktchiev
2019-01-08 06:08:23 -08:00
committed by Kubernetes Prow Robot
parent 7bdf816bed
commit 0c101b4abc
5 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: datadog
version: 1.14.0
version: 1.15.0
appVersion: 6.6.0
description: DataDog Agent
keywords:
+1
View File
@@ -91,6 +91,7 @@ The following table lists the configurable parameters of the Datadog chart and t
| `datadog.resources.limits.cpu` | CPU resource limits | `200m` |
| `datadog.resources.requests.memory` | Memory resource requests | `256Mi` |
| `datadog.resources.limits.memory` | Memory resource limits | `256Mi` |
| `datadog.securityContext` | Allows you to overwrite the default securityContext applied to the container | `nil` |
| `datadog.livenessProbe` | Overrides the default liveness probe | exec /probe.sh |
| `daemonset.podAnnotations` | Annotations to add to the DaemonSet's Pods | `nil` |
| `daemonset.tolerations` | List of node taints to tolerate (requires Kubernetes >= 1.6) | `nil` |
+4
View File
@@ -23,6 +23,10 @@ spec:
{{ toYaml .Values.daemonset.podAnnotations | indent 8 }}
{{- end }}
spec:
{{- if .Values.datadog.securityContext }}
securityContext:
{{ toYaml .Values.datadog.securityContext | indent 8 }}
{{- end }}
{{- if .Values.daemonset.useHostNetwork }}
hostNetwork: {{ .Values.daemonset.useHostNetwork }}
dnsPolicy: ClusterFirstWithHostNet
+4
View File
@@ -22,6 +22,10 @@ spec:
checksum/confd-config: {{ tpl (toYaml .Values.datadog.confd) . | sha256sum }}
checksum/checksd-config: {{ tpl (toYaml .Values.datadog.checksd) . | sha256sum }}
spec:
{{- if .Values.datadog.securityContext }}
securityContext:
{{ toYaml .Values.datadog.securityContext | indent 8 }}
{{- end }}
{{- if .Values.image.pullSecrets }}
imagePullSecrets:
{{ toYaml .Values.image.pullSecrets | indent 8 }}
+6
View File
@@ -129,6 +129,12 @@ datadog:
##
# apiKey:
## You can modify the security context used to run the containers by
## modifying the label type below:
# securityContext:
# seLinuxOptions:
# seLinuxLabel: "spc_t"
## Use existing Secret which stores API key instead of creating a new one
# apiKeyExistingSecret: