Skip to content

Commit d1a485f

Browse files
authored
Update DPA CRD version alongside Agent/Cluster Agent version 7.64. Auto add DPA to orchestrator collection (#1767)
1 parent 601890e commit d1a485f

26 files changed

+148
-133
lines changed

charts/datadog/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Datadog changelog
22

3+
## 3.110.3
4+
5+
* Update `datadog-crds` dependency to `2.5.1` and auto-activate datadogpodautoscalers collection in orchestrator.
6+
37
## 3.110.2
48

59
* Fix bug preventing using the `datadog.apm.errorTrackingStandalone.enabled` configuration.

charts/datadog/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
apiVersion: v1
33
name: datadog
4-
version: 3.110.2
4+
version: 3.110.3
55
appVersion: "7"
66
description: Datadog Agent
77
keywords:

charts/datadog/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Datadog
22

3-
![Version: 3.110.2](https://img.shields.io/badge/Version-3.110.2-informational?style=flat-square) ![AppVersion: 7](https://img.shields.io/badge/AppVersion-7-informational?style=flat-square)
3+
![Version: 3.110.3](https://img.shields.io/badge/Version-3.110.3-informational?style=flat-square) ![AppVersion: 7](https://img.shields.io/badge/AppVersion-7-informational?style=flat-square)
44

55
[Datadog](https://www.datadoghq.com/) is a hosted infrastructure monitoring platform. This chart adds the Datadog Agent to all nodes in your cluster via a DaemonSet. It also optionally depends on the [kube-state-metrics chart](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-state-metrics). For more information about monitoring Kubernetes with Datadog, please refer to the [Datadog documentation website](https://docs.datadoghq.com/agent/basic_agent_usage/kubernetes/).
66

@@ -28,7 +28,7 @@ Kubernetes 1.10+ or OpenShift 3.10+, note that:
2828

2929
| Repository | Name | Version |
3030
|------------|------|---------|
31-
| https://helm.datadoghq.com | datadog-crds | 1.7.2 |
31+
| https://helm.datadoghq.com | datadog-crds | 2.5.1 |
3232
| https://prometheus-community.github.io/helm-charts | kube-state-metrics | 2.13.2 |
3333

3434
## Quick start
@@ -526,7 +526,7 @@ helm install <RELEASE_NAME> \
526526
| agents.image.pullPolicy | string | `"IfNotPresent"` | Datadog Agent image pull policy |
527527
| agents.image.pullSecrets | list | `[]` | Datadog Agent repository pullSecret (ex: specify docker registry credentials) |
528528
| agents.image.repository | string | `nil` | Override default registry + image.name for Agent |
529-
| agents.image.tag | string | `"7.63.3"` | Define the Agent version to use |
529+
| agents.image.tag | string | `"7.64.1"` | Define the Agent version to use |
530530
| agents.image.tagSuffix | string | `""` | Suffix to append to Agent tag |
531531
| agents.localService.forceLocalServiceEnabled | bool | `false` | Force the creation of the internal traffic policy service to target the agent running on the local node. By default, the internal traffic service is created only on Kubernetes 1.22+ where the feature became beta and enabled by default. This option allows to force the creation of the internal traffic service on kubernetes 1.21 where the feature was alpha and required a feature gate to be explicitly enabled. |
532532
| agents.localService.overrideName | string | `""` | Name of the internal traffic service to target the agent running on the local node |
@@ -610,7 +610,7 @@ helm install <RELEASE_NAME> \
610610
| clusterAgent.image.pullPolicy | string | `"IfNotPresent"` | Cluster Agent image pullPolicy |
611611
| clusterAgent.image.pullSecrets | list | `[]` | Cluster Agent repository pullSecret (ex: specify docker registry credentials) |
612612
| clusterAgent.image.repository | string | `nil` | Override default registry + image.name for Cluster Agent |
613-
| clusterAgent.image.tag | string | `"7.63.3"` | Cluster Agent image tag to use |
613+
| clusterAgent.image.tag | string | `"7.64.1"` | Cluster Agent image tag to use |
614614
| clusterAgent.kubernetesApiserverCheck.disableUseComponentStatus | bool | `false` | Set this to true to disable use_component_status for the kube_apiserver integration. |
615615
| clusterAgent.livenessProbe | object | Every 15s / 6 KO / 1 OK | Override default Cluster Agent liveness probe settings |
616616
| clusterAgent.metricsProvider.aggregator | string | `"avg"` | Define the aggregator the cluster agent will use to process the metrics. The options are (avg, min, max, sum) |
@@ -666,7 +666,7 @@ helm install <RELEASE_NAME> \
666666
| clusterChecksRunner.image.pullPolicy | string | `"IfNotPresent"` | Datadog Agent image pull policy |
667667
| clusterChecksRunner.image.pullSecrets | list | `[]` | Datadog Agent repository pullSecret (ex: specify docker registry credentials) |
668668
| clusterChecksRunner.image.repository | string | `nil` | Override default registry + image.name for Cluster Check Runners |
669-
| clusterChecksRunner.image.tag | string | `"7.63.3"` | Define the Agent version to use |
669+
| clusterChecksRunner.image.tag | string | `"7.64.1"` | Define the Agent version to use |
670670
| clusterChecksRunner.image.tagSuffix | string | `""` | Suffix to append to Agent tag |
671671
| clusterChecksRunner.livenessProbe | object | Every 15s / 6 KO / 1 OK | Override default agent liveness probe settings |
672672
| clusterChecksRunner.networkPolicy.create | bool | `false` | If true, create a NetworkPolicy for the cluster checks runners. DEPRECATED. Use datadog.networkPolicy.create instead |

charts/datadog/ci/autoscaling-values.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
datadog:
22
apiKey: "00000000000000000000000000000000"
33
appKey: "0000000000000000000000000000000000000000"
4-
orchestratorExplorer:
5-
customResources:
6-
- datadoghq.com/v1alpha1/datadogpodautoscalers
74
autoscaling:
85
workload:
96
enabled: true

charts/datadog/requirements.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
dependencies:
22
- name: datadog-crds
33
repository: https://helm.datadoghq.com
4-
version: 1.7.2
4+
version: 2.5.1
55
- name: kube-state-metrics
66
repository: https://prometheus-community.github.io/helm-charts
77
version: 2.13.2
8-
digest: sha256:ffe3215351a645d08a42bdb49ea28563f77f63372f4ed926e5bae5b5dc1511c6
9-
generated: "2024-08-02T09:23:56.854712+02:00"
8+
digest: sha256:c7e8021305c6cfadc26022a18d2374d5854ce95b7d4d9bd72eeecda140761229
9+
generated: "2025-03-24T15:15:23.958775+01:00"

charts/datadog/requirements.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
- name: datadog-crds
3-
version: 1.7.2
3+
version: 2.5.1
44
repository: https://helm.datadoghq.com
55
condition: datadog.autoscaling.workload.enabled,clusterAgent.metricsProvider.useDatadogMetrics
66
tags:

charts/datadog/templates/_helpers.tpl

+22-3
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ true
104104
{{- $clusterName := tpl .Values.datadog.clusterName . -}}
105105
{{- $length := len $clusterName -}}
106106
{{- if (gt $length 80)}}
107-
{{- fail "Your `clusterName` isnt valid it has to be below 81 chars." -}}
107+
{{- fail "Your `clusterName` isn't valid it has to be below 81 chars." -}}
108108
{{- end}}
109109
{{- if not (regexMatch "^([a-z]([a-z0-9\\-]*[a-z0-9])?\\.)*([a-z]([a-z0-9\\-]*[a-z0-9])?)$" $clusterName) -}}
110-
{{- fail "Your `clusterName` isnt valid. It must be dot-separated tokens where a token start with a lowercase letter followed by lowercase letters, numbers, or hyphens, can only end with a with [a-z0-9] and has to be below 80 chars." -}}
110+
{{- fail "Your `clusterName` isn't valid. It must be dot-separated tokens where a token start with a lowercase letter followed by lowercase letters, numbers, or hyphens, can only end with a with [a-z0-9] and has to be below 80 chars." -}}
111111
{{- end -}}
112112
{{- end -}}
113113

@@ -830,6 +830,7 @@ false
830830
{{- end -}}
831831
{{- end -}}
832832

833+
{{/*
833834
Returns env vars correctly quoted and valueFrom respected
834835
*/}}
835836
{{- define "additional-env-entries" -}}
@@ -987,11 +988,29 @@ false
987988
{{- end -}}
988989
{{- end -}}
989990

991+
{{/*
992+
Return orchestratorExplorer customResources list with conditional addition of datadogpodautoscalers.
993+
*/}}
994+
{{- define "orchestratorExplorer-custom-resources" -}}
995+
{{- $customResources := .Values.datadog.orchestratorExplorer.customResources | default list -}}
996+
{{- if (((.Values.datadog.autoscaling).workload).enabled) -}}
997+
{{- $customResources = append $customResources "datadoghq.com/v1alpha2/datadogpodautoscalers" -}}
998+
{{- end -}}
999+
{{- $filteredResources := list -}}
1000+
{{- range $cr := $customResources -}}
1001+
{{- if ne $cr "datadoghq.com/v1alpha1/datadogpodautoscalers" -}}
1002+
{{- $filteredResources = append $filteredResources $cr -}}
1003+
{{- end -}}
1004+
{{- end -}}
1005+
{{- $filteredResources | uniq | toYaml -}}
1006+
{{- end -}}
1007+
9901008
{{/*
9911009
Create RBACs for custom resources
9921010
*/}}
9931011
{{- define "orchestratorExplorer-config-crs" -}}
994-
{{- range $cr := .Values.datadog.orchestratorExplorer.customResources }}
1012+
{{- $resources := (include "orchestratorExplorer-custom-resources" . | fromYamlArray) -}}
1013+
{{- range $cr := $resources }}
9951014
- apiGroups:
9961015
- {{ (splitList "/" $cr) | first | quote }}
9971016
resources:

charts/datadog/templates/_orchestrator_explorer_config.yaml

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{{- define "orchestratorExplorer-add-crd-collection-config" -}}
2-
32
{{- $useCRDConfig := true -}}
43

54
{{/*
@@ -24,24 +23,20 @@ If custom config is provided in `clusterAgent.advancedConfd`, then we don't add
2423
If customResources is empty, then we don't add crd collection config.
2524
*/}}
2625
{{- if eq $useCRDConfig true -}}
27-
{{- if eq (len $.Values.datadog.orchestratorExplorer.customResources) 0 }}
26+
{{- if eq (len (include "orchestratorExplorer-custom-resources" . | fromYamlArray)) 0 }}
2827
{{- $useCRDConfig = false -}}
2928
{{- end -}}
3029
{{- end -}}
3130

3231
{{- $useCRDConfig -}}
33-
3432
{{- end -}}
3533

36-
3734
{{- define "orchestratorExplorer-config" -}}
38-
3935
{{- if eq (include "orchestratorExplorer-add-crd-collection-config" .) "true" -}}
4036
orchestrator.yaml: |-
4137
init_config:
4238
instances:
4339
- crd_collectors:
44-
{{- toYaml $.Values.datadog.orchestratorExplorer.customResources | nindent 8 -}}
45-
{{- end -}}
46-
40+
{{- (include "orchestratorExplorer-custom-resources" .) | nindent 8 -}}
41+
{{- end }}
4742
{{- end -}}

charts/datadog/values.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ clusterAgent:
11151115
name: cluster-agent
11161116

11171117
# clusterAgent.image.tag -- Cluster Agent image tag to use
1118-
tag: 7.63.3
1118+
tag: 7.64.1
11191119

11201120
# clusterAgent.image.digest -- Cluster Agent image digest to use, takes precedence over tag if specified
11211121
digest: ""
@@ -1647,7 +1647,7 @@ agents:
16471647
name: agent
16481648

16491649
# agents.image.tag -- Define the Agent version to use
1650-
tag: 7.63.3
1650+
tag: 7.64.1
16511651

16521652
# agents.image.digest -- Define Agent image digest to use, takes precedence over tag if specified
16531653
digest: ""
@@ -2163,7 +2163,7 @@ clusterChecksRunner:
21632163
name: agent
21642164

21652165
# clusterChecksRunner.image.tag -- Define the Agent version to use
2166-
tag: 7.63.3
2166+
tag: 7.64.1
21672167

21682168
# clusterChecksRunner.image.digest -- Define Agent image digest to use, takes precedence over tag if specified
21692169
digest: ""

test/datadog/baseline/manifests/agent-clusterchecks-deployment_default.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ spec:
853853
value: "true"
854854
- name: DD_KUBERNETES_KUBELET_PODRESOURCES_SOCKET
855855
value: /var/lib/kubelet/pod-resources/kubelet.sock
856-
image: gcr.io/datadoghq/agent:7.63.3
856+
image: gcr.io/datadoghq/agent:7.64.1
857857
imagePullPolicy: IfNotPresent
858858
livenessProbe:
859859
failureThreshold: 6
@@ -990,7 +990,7 @@ spec:
990990
configMapKeyRef:
991991
key: install_type
992992
name: datadog-kpi-telemetry-configmap
993-
image: gcr.io/datadoghq/agent:7.63.3
993+
image: gcr.io/datadoghq/agent:7.64.1
994994
imagePullPolicy: IfNotPresent
995995
livenessProbe:
996996
initialDelaySeconds: 15
@@ -1039,7 +1039,7 @@ spec:
10391039
command:
10401040
- bash
10411041
- -c
1042-
image: gcr.io/datadoghq/agent:7.63.3
1042+
image: gcr.io/datadoghq/agent:7.64.1
10431043
imagePullPolicy: IfNotPresent
10441044
name: init-volume
10451045
resources: {}
@@ -1074,7 +1074,7 @@ spec:
10741074
fieldPath: status.hostIP
10751075
- name: DD_OTLP_CONFIG_LOGS_ENABLED
10761076
value: "false"
1077-
image: gcr.io/datadoghq/agent:7.63.3
1077+
image: gcr.io/datadoghq/agent:7.64.1
10781078
imagePullPolicy: IfNotPresent
10791079
name: init-config
10801080
resources: {}
@@ -1240,7 +1240,7 @@ spec:
12401240
valueFrom:
12411241
fieldRef:
12421242
fieldPath: spec.nodeName
1243-
image: gcr.io/datadoghq/agent:7.63.3
1243+
image: gcr.io/datadoghq/agent:7.64.1
12441244
imagePullPolicy: IfNotPresent
12451245
livenessProbe:
12461246
failureThreshold: 6
@@ -1289,7 +1289,7 @@ spec:
12891289
command:
12901290
- bash
12911291
- -c
1292-
image: gcr.io/datadoghq/agent:7.63.3
1292+
image: gcr.io/datadoghq/agent:7.64.1
12931293
imagePullPolicy: IfNotPresent
12941294
name: init-volume
12951295
resources: {}
@@ -1302,7 +1302,7 @@ spec:
13021302
command:
13031303
- bash
13041304
- -c
1305-
image: gcr.io/datadoghq/agent:7.63.3
1305+
image: gcr.io/datadoghq/agent:7.64.1
13061306
imagePullPolicy: IfNotPresent
13071307
name: init-config
13081308
resources: {}
@@ -1474,7 +1474,7 @@ spec:
14741474
configMapKeyRef:
14751475
key: install_type
14761476
name: datadog-kpi-telemetry-configmap
1477-
image: gcr.io/datadoghq/cluster-agent:7.63.3
1477+
image: gcr.io/datadoghq/cluster-agent:7.64.1
14781478
imagePullPolicy: IfNotPresent
14791479
livenessProbe:
14801480
failureThreshold: 6
@@ -1547,7 +1547,7 @@ spec:
15471547
command:
15481548
- cp
15491549
- -r
1550-
image: gcr.io/datadoghq/cluster-agent:7.63.3
1550+
image: gcr.io/datadoghq/cluster-agent:7.64.1
15511551
imagePullPolicy: IfNotPresent
15521552
name: init-volume
15531553
volumeMounts:

test/datadog/baseline/manifests/cluster-agent-deployment_default.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ spec:
869869
configMapKeyRef:
870870
key: install_type
871871
name: datadog-kpi-telemetry-configmap
872-
image: gcr.io/datadoghq/cluster-agent:7.63.3
872+
image: gcr.io/datadoghq/cluster-agent:7.64.1
873873
imagePullPolicy: IfNotPresent
874874
livenessProbe:
875875
failureThreshold: 6
@@ -942,7 +942,7 @@ spec:
942942
command:
943943
- cp
944944
- -r
945-
image: gcr.io/datadoghq/cluster-agent:7.63.3
945+
image: gcr.io/datadoghq/cluster-agent:7.64.1
946946
imagePullPolicy: IfNotPresent
947947
name: init-volume
948948
volumeMounts:

test/datadog/baseline/manifests/cluster-agent-deployment_default_advanced_AC_injection.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ spec:
883883
configMapKeyRef:
884884
key: install_type
885885
name: datadog-kpi-telemetry-configmap
886-
image: gcr.io/datadoghq/cluster-agent:7.63.3
886+
image: gcr.io/datadoghq/cluster-agent:7.64.1
887887
imagePullPolicy: IfNotPresent
888888
livenessProbe:
889889
failureThreshold: 6
@@ -956,7 +956,7 @@ spec:
956956
command:
957957
- cp
958958
- -r
959-
image: gcr.io/datadoghq/cluster-agent:7.63.3
959+
image: gcr.io/datadoghq/cluster-agent:7.64.1
960960
imagePullPolicy: IfNotPresent
961961
name: init-volume
962962
volumeMounts:

test/datadog/baseline/manifests/cluster-agent-deployment_default_minimal_AC_injection.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ spec:
816816
- name: DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_IMAGE_NAME
817817
value: agent
818818
- name: DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_IMAGE_TAG
819-
value: 7.63.3
819+
value: 7.64.1
820820
- name: DD_REMOTE_CONFIGURATION_ENABLED
821821
value: "false"
822822
- name: DD_CLUSTER_CHECKS_ENABLED
@@ -879,7 +879,7 @@ spec:
879879
configMapKeyRef:
880880
key: install_type
881881
name: datadog-kpi-telemetry-configmap
882-
image: gcr.io/datadoghq/cluster-agent:7.63.3
882+
image: gcr.io/datadoghq/cluster-agent:7.64.1
883883
imagePullPolicy: IfNotPresent
884884
livenessProbe:
885885
failureThreshold: 6
@@ -952,7 +952,7 @@ spec:
952952
command:
953953
- cp
954954
- -r
955-
image: gcr.io/datadoghq/cluster-agent:7.63.3
955+
image: gcr.io/datadoghq/cluster-agent:7.64.1
956956
imagePullPolicy: IfNotPresent
957957
name: init-volume
958958
volumeMounts:

0 commit comments

Comments
 (0)