Skip to content

Commit

Permalink
Merge branch 'main' into ali/fix-typo
Browse files Browse the repository at this point in the history
  • Loading branch information
AliDatadog authored Mar 6, 2024
2 parents 79adc0d + e5284d5 commit 9f5461b
Show file tree
Hide file tree
Showing 15 changed files with 50 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/go-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ jobs:
- v1.25.2
- v1.26.6
- v1.27.3
- v1.28.7
- v1.29.2
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
8 changes: 8 additions & 0 deletions charts/datadog-operator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.5.2

* Add deprecation warning for `DatadogAgent` `v1alpha1` CRD version.

## 1.5.1

* Add configuration for Operator flag `introspectionEnabled`: this parameter is used to enable the Introspection. It is disabled by default.

## 1.5.0

* Update Datadog Operator version to 1.4.0.
Expand Down
2 changes: 1 addition & 1 deletion charts/datadog-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: datadog-operator
version: 1.5.0
version: 1.5.1
appVersion: 1.4.0
description: Datadog Operator
keywords:
Expand Down
3 changes: 2 additions & 1 deletion charts/datadog-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Datadog Operator

![Version: 1.5.0](https://img.shields.io/badge/Version-1.5.0-informational?style=flat-square) ![AppVersion: 1.4.0](https://img.shields.io/badge/AppVersion-1.4.0-informational?style=flat-square)
![Version: 1.5.1](https://img.shields.io/badge/Version-1.5.1-informational?style=flat-square) ![AppVersion: 1.4.0](https://img.shields.io/badge/AppVersion-1.4.0-informational?style=flat-square)

## Values

Expand Down Expand Up @@ -33,6 +33,7 @@
| image.tag | string | `"1.4.0"` | Define the Datadog Operator version to use |
| imagePullSecrets | list | `[]` | Datadog Operator repository pullSecret (ex: specify docker registry credentials) |
| installCRDs | bool | `true` | Set to true to deploy the Datadog's CRDs |
| introspection.enabled | bool | `false` | If true, enables introspection feature (beta). Requires v1.4.0+ |
| logLevel | string | `"info"` | Set Datadog Operator log level (debug, info, error, panic, fatal) |
| maximumGoroutines | string | `nil` | Override default goroutines threshold for the health check failure. |
| metricsPort | int | `8383` | Port used for OpenMetrics endpoint |
Expand Down
16 changes: 16 additions & 0 deletions charts/datadog-operator/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,22 @@ The maximumGoroutines parameter isn't supported by the Operator 1.0.0-rc.12 and
Setting a value will not change the default defined in the Operator.
{{- end }}
{{- end }}

{{- if (semverCompare ">=1.0.0" .Values.image.tag) }}
{{- if .Values.datadogCRDs.migration.datadogAgents.conversionWebhook.enabled }}
##############################################################################
#### WARNING: v1alpha1 and conversion webhook deprecation. ####
##############################################################################

DatadogAgent v1alpha1 reconciliation in the Operator is deprecated since v1.2.0+ and will be removed in v1.7.0.
Once removed, the Datadog Operator cannot be configured to reconcile the v1alpha1 DatadogAgent CRD.
However, you will still be able to apply a v1alpha1 manifest with the conversion webhook enabled (using `datadogCRDs.migration.datadogAgents.conversionWebhook.enabled`).
DatadogAgent v1alpha1 and the conversion webhook will be removed in v1.8.0.
See the migration page for instructions on migrating to v2alpha1: https://docs.datadoghq.com/containers/guide/datadogoperator_migration/
{{- end }}
{{- end }}


{{- if not (and (semverCompare ">=1.0.0-0" .Values.image.tag) (eq .Values.datadogCRDs.migration.datadogAgents.version "v2alpha1")) }}
{{- fail "The Datadog Operator `1.0.0` reconciles `DatadogAgent` versions `v2alpha1`. Using an old version of the Datadog Operator (< 1.0.0) with the new version of the DatadogAgent Customer Resource, or the Datadog Operator `1.X` with the `v1alpha1` as stored version of the DatadogAgent is not supported. If you are using a DatadogAgent `v1alpha1`, refer to the Migration Steps: https://github.com/DataDog/helm-charts/blob/main/charts/datadog-operator/README.md#migrating-to-the-version-10-of-the-datadog-operator."}}
{{- end }}
3 changes: 3 additions & 0 deletions charts/datadog-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ spec:
{{- end }}
{{- if and .Values.maximumGoroutines (semverCompare ">=1.0.0-rc.13" .Values.image.tag) }}
- "-maximumGoroutines={{ .Values.maximumGoroutines }}"
{{- end }}
{{- if (semverCompare ">=1.4.0" .Values.image.tag) }}
- "-introspectionEnabled={{ .Values.introspection.enabled }}"
{{- end }}
- "-datadogMonitorEnabled={{ .Values.datadogMonitor.enabled }}"
{{- if (semverCompare ">=1.0.0-rc.13" .Values.image.tag) }}
Expand Down
5 changes: 5 additions & 0 deletions charts/datadog-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ fullnameOverride: ""
logLevel: "info"
# maximumGoroutines -- Override default goroutines threshold for the health check failure.
maximumGoroutines:


introspection:
# introspection.enabled -- If true, enables introspection feature (beta). Requires v1.4.0+
enabled: false
# supportExtendedDaemonset -- If true, supports using ExtendedDaemonSet CRD
supportExtendedDaemonset: "false"
# operatorMetricsEnabled -- Enable forwarding of Datadog Operator metrics and events to Datadog.
Expand Down
4 changes: 4 additions & 0 deletions charts/datadog/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Datadog changelog

## 3.57.3

* Exclude agent, cluster agent and agent clusterchecks pods from injection from the admission controller.

## 3.57.2

* Add `networkpolicies` default permission for the cluster agent.
Expand Down
2 changes: 1 addition & 1 deletion charts/datadog/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: datadog
version: 3.57.2
version: 3.57.3
appVersion: "7"
description: Datadog Agent
keywords:
Expand Down
2 changes: 1 addition & 1 deletion charts/datadog/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Datadog

![Version: 3.57.2](https://img.shields.io/badge/Version-3.57.2-informational?style=flat-square) ![AppVersion: 7](https://img.shields.io/badge/AppVersion-7-informational?style=flat-square)
![Version: 3.57.3](https://img.shields.io/badge/Version-3.57.3-informational?style=flat-square) ![AppVersion: 7](https://img.shields.io/badge/AppVersion-7-informational?style=flat-square)

[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/).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
labels:
{{ include "datadog.template-labels" . | indent 8 }}
app.kubernetes.io/component: clusterchecks-agent
admission.datadoghq.com/enabled: "false"
app: {{ template "datadog.fullname" . }}-clusterchecks
{{- if .Values.clusterChecksRunner.additionalLabels }}
{{ toYaml .Values.clusterChecksRunner.additionalLabels | indent 8 }}
Expand Down
1 change: 1 addition & 0 deletions charts/datadog/templates/cluster-agent-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ spec:
labels:
{{ include "datadog.template-labels" . | indent 8 }}
app.kubernetes.io/component: cluster-agent
admission.datadoghq.com/enabled: "false"
app: {{ template "datadog.fullname" . }}-cluster-agent
{{- if .Values.clusterAgent.podLabels }}
{{ toYaml .Values.clusterAgent.podLabels | indent 8 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/datadog/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ metadata:
labels:
{{ include "datadog.labels" . | indent 4 }}
app.kubernetes.io/component: agent
admission.datadoghq.com/enabled: "false"
{{- if .Values.agents.additionalLabels }}
{{ toYaml .Values.agents.additionalLabels | indent 4 }}
{{- end }}
Expand All @@ -30,6 +29,7 @@ spec:
labels:
{{ include "datadog.template-labels" . | indent 8 }}
app.kubernetes.io/component: agent
admission.datadoghq.com/enabled: "false"
app: {{ template "datadog.fullname" . }}
{{- if .Values.agents.podLabels }}
{{ toYaml .Values.agents.podLabels | indent 8 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
namespace: datadog-agent
labels:
app.kubernetes.io/name: datadog-operator
helm.sh/chart: datadog-operator-1.5.0
helm.sh/chart: datadog-operator-1.5.1
app.kubernetes.io/instance: datadog-operator
app.kubernetes.io/version: "1.4.0"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -53,6 +53,7 @@ spec:
- "-loglevel=info"
- "-operatorMetricsEnabled=true"
- "-webhookEnabled=false"
- "-introspectionEnabled=false"
- "-datadogMonitorEnabled=false"
- "-datadogAgentEnabled=true"
- "-datadogSLOEnabled=false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
namespace: datadog-agent
labels:
app.kubernetes.io/name: datadog-operator
helm.sh/chart: datadog-operator-1.5.0
helm.sh/chart: datadog-operator-1.5.1
app.kubernetes.io/instance: datadog-operator
app.kubernetes.io/version: "1.4.0"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -53,6 +53,7 @@ spec:
- "-loglevel=info"
- "-operatorMetricsEnabled=true"
- "-webhookEnabled=true"
- "-introspectionEnabled=false"
- "-datadogMonitorEnabled=false"
- "-datadogAgentEnabled=true"
- "-datadogSLOEnabled=false"
Expand Down

0 comments on commit 9f5461b

Please sign in to comment.