Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into gianluca/ERRORT-4859-…
Browse files Browse the repository at this point in the history
…add-et-standalone-env-vars
  • Loading branch information
eloytoro committed Feb 14, 2025
2 parents a83c166 + a1a226e commit ee78f07
Show file tree
Hide file tree
Showing 39 changed files with 626 additions and 103 deletions.
4 changes: 4 additions & 0 deletions charts/datadog-crds/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

# 2.4.1

* Add DatadogGenericResources CRD.

# 2.4.0

* Update CRDs from Datadog Operator v1.12.0 tag.
Expand Down
2 changes: 1 addition & 1 deletion charts/datadog-crds/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: datadog-crds
description: Datadog Kubernetes CRDs chart
version: 2.4.0
version: 2.4.1
appVersion: "1"
keywords:
- monitoring
Expand Down
3 changes: 2 additions & 1 deletion charts/datadog-crds/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Datadog CRDs

![Version: 2.4.0](https://img.shields.io/badge/Version-2.4.0-informational?style=flat-square) ![AppVersion: 1](https://img.shields.io/badge/AppVersion-1-informational?style=flat-square)
![Version: 2.4.1](https://img.shields.io/badge/Version-2.4.1-informational?style=flat-square) ![AppVersion: 1](https://img.shields.io/badge/AppVersion-1-informational?style=flat-square)

This chart was designed to allow other "datadog" charts to share `CustomResourceDefinitions` such as the `DatadogMetric`.

Expand All @@ -25,6 +25,7 @@ But the recommended Kubernetes versions are `1.16+`.
| crds.datadogAgentProfiles | bool | `false` | Set to true to deploy the DatadogAgentProfiles CRD |
| crds.datadogAgents | bool | `false` | Set to true to deploy the DatadogAgents CRD |
| crds.datadogDashboards | bool | `false` | Set to true to deploy the DatadogDashboards CRD |
| crds.datadogGenericResources | bool | `false` | Set to true to deploy the DatadogGenericResources CRD |
| crds.datadogMetrics | bool | `false` | Set to true to deploy the DatadogMetrics CRD |
| crds.datadogMonitors | bool | `false` | Set to true to deploy the DatadogMonitors CRD |
| crds.datadogPodAutoscalers | bool | `false` | Set to true to deploy the DatadogPodAutoscalers CRD |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
{{- if and .Values.crds.datadogGenericResources (semverCompare ">1.21-0" .Capabilities.KubeVersion.GitVersion ) }}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.16.3
name: datadoggenericresources.datadoghq.com
labels:
helm.sh/chart: '{{ include "datadog-crds.chart" . }}'
app.kubernetes.io/managed-by: '{{ .Release.Service }}'
app.kubernetes.io/name: '{{ include "datadog-crds.name" . }}'
app.kubernetes.io/instance: '{{ .Release.Name }}'
spec:
group: datadoghq.com
names:
kind: DatadogGenericResource
listKind: DatadogGenericResourceList
plural: datadoggenericresources
shortNames:
- ddgr
singular: datadoggenericresource
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .status.id
name: id
type: string
- jsonPath: .status.syncStatus
name: sync status
type: string
- jsonPath: .metadata.creationTimestamp
name: age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: DatadogGenericResource is the Schema for the DatadogGenericResources API
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: DatadogGenericResourceSpec defines the desired state of DatadogGenericResource
properties:
jsonSpec:
description: JsonSpec is the specification of the API object
type: string
type:
description: Type is the type of the API object
enum:
- notebook
- synthetics_api_test
- synthetics_browser_test
type: string
required:
- jsonSpec
- type
type: object
status:
description: DatadogGenericResourceStatus defines the observed state of DatadogGenericResource
properties:
conditions:
description: Conditions represents the latest available observations of the state of a DatadogGenericResource.
items:
description: Condition contains details for one aspect of the current state of this API Resource.
properties:
lastTransitionTime:
description: |-
lastTransitionTime is the last time the condition transitioned from one status to another.
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
format: date-time
type: string
message:
description: |-
message is a human readable message indicating details about the transition.
This may be an empty string.
maxLength: 32768
type: string
observedGeneration:
description: |-
observedGeneration represents the .metadata.generation that the condition was set based upon.
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
with respect to the current state of the instance.
format: int64
minimum: 0
type: integer
reason:
description: |-
reason contains a programmatic identifier indicating the reason for the condition's last transition.
Producers of specific condition types may define expected values and meanings for this field,
and whether the values are considered a guaranteed API.
The value should be a CamelCase string.
This field may not be empty.
maxLength: 1024
minLength: 1
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
type: string
status:
description: status of the condition, one of True, False, Unknown.
enum:
- "True"
- "False"
- Unknown
type: string
type:
description: type of condition in CamelCase or in foo.example.com/CamelCase.
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
required:
- lastTransitionTime
- message
- reason
- status
- type
type: object
type: array
x-kubernetes-list-map-keys:
- type
x-kubernetes-list-type: map
created:
description: Created is the time the object was created.
format: date-time
type: string
creator:
description: Creator is the identity of the creator.
type: string
currentHash:
description: |-
CurrentHash tracks the hash of the current DatadogGenericResourceSpec to know
if the JsonSpec has changed and needs an update.
type: string
id:
description: Id is the object unique identifier generated in Datadog.
type: string
lastForceSyncTime:
description: LastForceSyncTime is the last time the API object was last force synced with the custom resource
format: date-time
type: string
syncStatus:
description: SyncStatus shows the health of syncing the object state to Datadog.
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
{{- end }}
1 change: 1 addition & 0 deletions charts/datadog-crds/update-crds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@ download_crd "$DATADOG_OPERATOR_REPO" "$DATADOG_OPERATOR_TAG" datadogslos datado
download_crd "$DATADOG_OPERATOR_REPO" "$DATADOG_OPERATOR_TAG" datadogagentprofiles datadogAgentProfiles v1
download_crd "$DATADOG_OPERATOR_REPO" "$DATADOG_OPERATOR_TAG" datadogpodautoscalers datadogPodAutoscalers v1
download_crd "$DATADOG_OPERATOR_REPO" "$DATADOG_OPERATOR_TAG" datadogdashboards datadogDashboards v1
download_crd "$DATADOG_OPERATOR_REPO" "$DATADOG_OPERATOR_TAG" datadoggenericresources datadogGenericResources v1
2 changes: 2 additions & 0 deletions charts/datadog-crds/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ crds:
datadogPodAutoscalers: false
# crds.datadogDashboards -- Set to true to deploy the DatadogDashboards CRD
datadogDashboards: false
# crds.datadogGenericResources -- Set to true to deploy the DatadogGenericResources CRD
datadogGenericResources: false

# nameOverride -- Override name of app
nameOverride: ""
Expand Down
9 changes: 9 additions & 0 deletions charts/datadog-operator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 2.7.0

* Update Datadog Operator version to 1.12.1.

## 2.6.0

* Update Datadog Operator version to 1.12.0.
* Add DatadogGenericResource configuration.

## 2.5.1

* Expose CRD-specific namespace watch configuration added in Operator 1.8.0 release.
Expand Down
6 changes: 3 additions & 3 deletions charts/datadog-operator/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: datadog-crds
repository: https://helm.datadoghq.com
version: 2.3.0
digest: sha256:67db7e15aa50bde3e2e62273b71402d2e4302c71f13201c3646ee5865e236106
generated: "2024-12-18T14:19:32.327237+01:00"
version: 2.4.1
digest: sha256:aad0385741a8458b9061a7117318d93f834e3314e5f794411b4001a534a9d6ee
generated: "2025-02-07T14:26:48.62608-05:00"
6 changes: 3 additions & 3 deletions charts/datadog-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: datadog-operator
version: 2.5.2
appVersion: 1.11.1
version: 2.7.0
appVersion: 1.12.1
description: Datadog Operator
keywords:
- monitoring
Expand All @@ -17,7 +17,7 @@ maintainers:
email: support@datadoghq.com
dependencies:
- name: datadog-crds
version: "=2.3.0"
version: "=2.4.1"
alias: datadogCRDs
repository: https://helm.datadoghq.com
condition: installCRDs
Expand Down
6 changes: 4 additions & 2 deletions charts/datadog-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Datadog Operator

![Version: 2.5.2](https://img.shields.io/badge/Version-2.5.2-informational?style=flat-square) ![AppVersion: 1.11.1](https://img.shields.io/badge/AppVersion-1.11.1-informational?style=flat-square)
![Version: 2.7.0](https://img.shields.io/badge/Version-2.7.0-informational?style=flat-square) ![AppVersion: 1.12.1](https://img.shields.io/badge/AppVersion-1.12.1-informational?style=flat-square)

## Values

Expand All @@ -19,11 +19,13 @@
| datadogAgentProfile.enabled | bool | `false` | If true, enables DatadogAgentProfile controller (beta). Requires v1.5.0+ |
| datadogCRDs.crds.datadogAgents | bool | `true` | Set to true to deploy the DatadogAgents CRD |
| datadogCRDs.crds.datadogDashboards | bool | `false` | Set to true to deploy the DatadogDashboard CRD |
| datadogCRDs.crds.datadogGenericResources | bool | `false` | Set to true to deploy the DatadogGenericResource CRD |
| datadogCRDs.crds.datadogMetrics | bool | `true` | Set to true to deploy the DatadogMetrics CRD |
| datadogCRDs.crds.datadogMonitors | bool | `true` | Set to true to deploy the DatadogMonitors CRD |
| datadogCRDs.crds.datadogPodAutoscalers | bool | `true` | Set to true to deploy the DatadogPodAutoscalers CRD |
| datadogCRDs.crds.datadogSLOs | bool | `false` | Set to true to deploy the DatadogSLO CRD |
| datadogDashboard.enabled | bool | `false` | Enables the Datadog Dashboard controller |
| datadogGenericResource.enabled | bool | `false` | Enables the Datadog Generic Resource controller |
| datadogMonitor.enabled | bool | `false` | Enables the Datadog Monitor controller |
| datadogSLO.enabled | bool | `false` | Enables the Datadog SLO controller |
| dd_url | string | `nil` | The host of the Datadog intake server to send Agent data to, only set this option if you need the Agent to send data to a custom URL |
Expand All @@ -33,7 +35,7 @@
| image.doNotCheckTag | bool | `false` | Permit skipping operator image tag compatibility with the chart. |
| image.pullPolicy | string | `"IfNotPresent"` | Define the pullPolicy for Datadog Operator image |
| image.repository | string | `"gcr.io/datadoghq/operator"` | Repository to use for Datadog Operator image |
| image.tag | string | `"1.11.1"` | Define the Datadog Operator version to use |
| image.tag | string | `"1.12.1"` | 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+ |
Expand Down
2 changes: 1 addition & 1 deletion charts/datadog-operator/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ Check operator image tag version.
{{- if not .Values.image.doNotCheckTag -}}
{{- .Values.image.tag -}}
{{- else -}}
{{ "1.11.1" }}
{{ "1.12.1" }}
{{- end -}}
{{- end -}}
3 changes: 3 additions & 0 deletions charts/datadog-operator/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ rules:
resources:
- datadogagents
- datadogagents/finalizers
- datadoggenericresources
- datadoggenericresources/finalizers
- datadogmonitors
- datadogmonitors/finalizers
- datadogslos
Expand All @@ -243,6 +245,7 @@ rules:
- datadoghq.com
resources:
- datadogagents/status
- datadoggenericresources/status
- datadogmonitors/status
- datadogslos/status
verbs:
Expand Down
3 changes: 3 additions & 0 deletions charts/datadog-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ spec:
{{- if (semverCompare ">=1.9.0-0" $version) }}
- "-datadogDashboardEnabled={{ .Values.datadogDashboard.enabled }}"
{{- end }}
{{- if (semverCompare ">=1.12.0" $version) }}
- "-datadogGenericResourceEnabled={{ .Values.datadogGenericResource.enabled }}"
{{- end }}
{{- if (semverCompare ">=1.7.0" $version) }}
- "-remoteConfigEnabled={{ .Values.remoteConfiguration.enabled }}"
{{- end }}
Expand Down
7 changes: 6 additions & 1 deletion charts/datadog-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ image:
# image.repository -- Repository to use for Datadog Operator image
repository: gcr.io/datadoghq/operator
# image.tag -- Define the Datadog Operator version to use
tag: 1.11.1
tag: 1.12.1
# image.pullPolicy -- Define the pullPolicy for Datadog Operator image
pullPolicy: IfNotPresent
# image.doNotCheckTag -- Permit skipping operator image tag compatibility with the chart.
Expand Down Expand Up @@ -87,6 +87,9 @@ datadogAgent:
datadogDashboard:
# datadogDashboard.enabled -- Enables the Datadog Dashboard controller
enabled: false
datadogGenericResource:
# datadogGenericResource.enabled -- Enables the Datadog Generic Resource controller
enabled: false
datadogMonitor:
# datadogMonitor.enabled -- Enables the Datadog Monitor controller
enabled: false
Expand Down Expand Up @@ -147,6 +150,8 @@ datadogCRDs:
datadogSLOs: false
# datadogCRDs.crds.datadogDashboards -- Set to true to deploy the DatadogDashboard CRD
datadogDashboards: false
# datadogCRDs.crds.datadogGenericResources -- Set to true to deploy the DatadogGenericResource CRD
datadogGenericResources: false

# podAnnotations -- Allows setting additional annotations for Datadog Operator PODs
podAnnotations: {}
Expand Down
10 changes: 9 additions & 1 deletion charts/datadog/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@

* Add `datadog.apm.errorTracking.mode` setting to set the Error Tracking mode.

## 3.90.4

* Fix RBAC rendering and map merge when `datadog.kubernetesResourcesAnnotationsAsTags` and/or `datadog.kubernetesResourcesLabelsAsTags` are used.

## 3.90.3

* Defaults `registry` to `gcr.io/datadoghq` when setting `datadog.site: us3.datadoghq.com` and deploying on GKE Autopilot (`providers.gke.autopilot: true`).

## 3.90.2

* Adds env vars `DD_AGENT_IPC_PORT` and `DD_AGENT_IPC_CONFIG_REFRESH_INTERVAL` when Otel Agent is enabled and adds flag `--sync-delay=30s` to otel agent.
Expand Down Expand Up @@ -46,7 +54,7 @@

## 3.87.0

* Launch `otel-agent` with the `--core-config` switch pointing to the main agent configuration. Note that this affects the OTel Agent beta images, early beta image releases with version tag `<7.59.0-v.1.2.0` will experience issues and should remain on older helm chart versions for their deployments. For regular users not deploying the `otel-agent` beta images, this should be a NOOP.
* Launch `otel-agent` with the `--core-config` switch pointing to the main agent configuration. Note that this affects the OTel Agent beta images, early beta image releases with version tag `<7.59.0-v.1.2.0` will experience issues and should remain on older helm chart versions for their deployments. For regular users not deploying the `otel-agent` beta images, this should be a NOOP.

## 3.86.0

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.91.0](https://img.shields.io/badge/Version-3.90.2-informational?style=flat-square) ![AppVersion: 7](https://img.shields.io/badge/AppVersion-7-informational?style=flat-square)
![Version: 3.91.0](https://img.shields.io/badge/Version-3.91.0-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
2 changes: 1 addition & 1 deletion charts/datadog/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ eu.gcr.io/datadoghq
public.ecr.aws/datadog
{{- else if eq .datadog.site "ap1.datadoghq.com" -}}
asia.gcr.io/datadoghq
{{- else if eq .datadog.site "us3.datadoghq.com" -}}
{{- else if and (eq .datadog.site "us3.datadoghq.com") (not .providers.gke.autopilot) -}}
datadoghq.azurecr.io
{{- else -}}
gcr.io/datadoghq
Expand Down
Loading

0 comments on commit ee78f07

Please sign in to comment.