diff --git a/stable/datadog/CHANGELOG.md b/stable/datadog/CHANGELOG.md index 718f3c94a1f5..54ead74fd7a1 100644 --- a/stable/datadog/CHANGELOG.md +++ b/stable/datadog/CHANGELOG.md @@ -1,5 +1,9 @@ # Datadog changelog +## 2.3.14 + +* Allow overriding the `command` to run in the cluster-agent container + ## 2.3.13 * Use two distinct health endpoints for liveness and readiness probes. diff --git a/stable/datadog/Chart.yaml b/stable/datadog/Chart.yaml index b4e994af75fa..173eec9abc49 100644 --- a/stable/datadog/Chart.yaml +++ b/stable/datadog/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: datadog -version: 2.3.13 +version: 2.3.14 appVersion: "7" description: Datadog Agent keywords: diff --git a/stable/datadog/README.md b/stable/datadog/README.md index 7f144f2ee04c..ebe56599c484 100644 --- a/stable/datadog/README.md +++ b/stable/datadog/README.md @@ -380,6 +380,7 @@ helm install --name \ | `clusterAgent.image.tag` | The image tag to pull | `1.2.0` | | `clusterAgent.image.pullPolicy` | Image pull policy | `IfNotPresent` | | `clusterAgent.image.pullSecrets` | Image pull secrets | `nil` | +| `clusterAgent.command` | Override the default command to run in the container | `nil` | | `clusterAgent.rbac.create` | If true, create & use RBAC resources for cluster agent's pods | `true` | | `clusterAgent.rbac.serviceAccount` | existing ServiceAccount to use (ignored if rbac.create=true) for cluster agent's pods | `default` | | `clusterAgent.metricsProvider.enabled` | Enable Datadog metrics as a source for HPA scaling | `false` | diff --git a/stable/datadog/templates/cluster-agent-deployment.yaml b/stable/datadog/templates/cluster-agent-deployment.yaml index 7840e309cdb0..96f548a3433d 100644 --- a/stable/datadog/templates/cluster-agent-deployment.yaml +++ b/stable/datadog/templates/cluster-agent-deployment.yaml @@ -80,6 +80,9 @@ spec: containers: - name: cluster-agent image: "{{ .Values.clusterAgent.image.repository }}:{{ .Values.clusterAgent.image.tag }}" + {{- if .Values.clusterAgent.command }} + command: {{ .Values.clusterAgent.command }} + {{- end }} imagePullPolicy: {{ .Values.clusterAgent.image.pullPolicy }} resources: {{ toYaml .Values.clusterAgent.resources | indent 10 }} diff --git a/stable/datadog/values.yaml b/stable/datadog/values.yaml index d914c32fc582..5692ce78885e 100644 --- a/stable/datadog/values.yaml +++ b/stable/datadog/values.yaml @@ -399,6 +399,11 @@ clusterAgent: pullSecrets: # - name: "" + ## @param command - array - optional + ## Command to run in the Cluster Agent container + # + command: # [] + ## @param token - string - required ## This needs to be at least 32 characters a-zA-z ## It is a preshared key between the node agents and the cluster agent