Skip to content

Commit 74e1107

Browse files
authored
Fix missing appKey secret for operator subchart (#2270)
* fix missing appKey secret for operator subchart * update readme * revert apikey name change * fix app key reference in cluster-agent deployment * fix: add missing apiKey and appKey to otel-agent-gateway-hpa-dca CI values
1 parent d24fdf8 commit 74e1107

File tree

6 files changed

+16
-7
lines changed

6 files changed

+16
-7
lines changed

charts/datadog/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Datadog changelog
22

3+
## 3.157.3
4+
5+
* Fix appKey secret creation needed by datadog-operator subchart.
6+
37
## 3.157.2
48

59
* Rename endpoint configmap to properly support multiple releases and the operator subchart.

charts/datadog/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
apiVersion: v1
33
name: datadog
4-
version: 3.157.2
4+
version: 3.157.3
55
appVersion: "7"
66
description: Datadog Agent
77
keywords:

charts/datadog/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Datadog
22

3-
![Version: 3.157.2](https://img.shields.io/badge/Version-3.157.2-informational?style=flat-square) ![AppVersion: 7](https://img.shields.io/badge/AppVersion-7-informational?style=flat-square)
3+
![Version: 3.157.3](https://img.shields.io/badge/Version-3.157.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

charts/datadog/ci/otel-agent-gateway-hpa-dca-values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
targetSystem: "linux"
22
fullnameOverride: "gw-with-dca"
3+
datadog:
4+
apiKey: "00000000000000000000000000000000"
5+
appKey: "0000000000000000000000000000000000000000"
6+
kubelet:
7+
tlsVerify: false
38
agents:
49
enabled: false
510
clusterAgent:

charts/datadog/templates/cluster-agent-deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,14 @@ spec:
187187
optional: true
188188
{{- include "components-common-env" . | nindent 10 }}
189189
{{- include "language-detection-common-env" . | nindent 10 }}
190-
{{- if .Values.clusterAgent.metricsProvider.enabled }}
190+
{{- if or .Values.appKey .Values.appKeyExistingSecret }}
191191
- name: DD_APP_KEY
192192
valueFrom:
193193
secretKeyRef:
194194
name: {{ template "datadog.appKeySecretName" . }}
195195
key: app-key
196+
{{- end }}
197+
{{- if .Values.clusterAgent.metricsProvider.enabled }}
196198
- name: DD_EXTERNAL_METRICS_PROVIDER_ENABLED
197199
value: {{ .Values.clusterAgent.metricsProvider.enabled | quote }}
198200
- name: DD_EXTERNAL_METRICS_PROVIDER_PORT

charts/datadog/templates/secret-application-key.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
{{- if not .Values.datadog.appKeyExistingSecret }}
2-
{{- if and (eq (include "should-deploy-cluster-agent" .) "true") .Values.clusterAgent.metricsProvider.enabled }}
1+
{{- if and (not .Values.datadog.appKeyExistingSecret) .Values.datadog.appKey }}
32
apiVersion: v1
43
kind: Secret
54
metadata:
@@ -12,6 +11,5 @@ metadata:
1211
{{- end }}
1312
type: Opaque
1413
data:
15-
app-key: {{ default "MISSING" .Values.datadog.appKey | b64enc | quote }}
16-
{{- end }}
14+
app-key: {{ .Values.datadog.appKey | b64enc | quote }}
1715
{{- end }}

0 commit comments

Comments
 (0)