Skip to content

Commit

Permalink
[stable/datadog] Allow overriding cluster-agent command (helm#22913)
Browse files Browse the repository at this point in the history
Signed-off-by: Stanislav Petrashov <[email protected]>
Signed-off-by: camelusluo <[email protected]>
  • Loading branch information
spetrashov authored and camelusluo committed Jul 6, 2020
1 parent 7533f23 commit e693c48
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions stable/datadog/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion stable/datadog/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: datadog
version: 2.3.13
version: 2.3.14
appVersion: "7"
description: Datadog Agent
keywords:
Expand Down
1 change: 1 addition & 0 deletions stable/datadog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ helm install --name <RELEASE_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` |
Expand Down
3 changes: 3 additions & 0 deletions stable/datadog/templates/cluster-agent-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 5 additions & 0 deletions stable/datadog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,11 @@ clusterAgent:
pullSecrets:
# - name: "<REG_SECRET>"

## @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
Expand Down

0 comments on commit e693c48

Please sign in to comment.