Skip to content

Commit

Permalink
Merge branch 'main' into swang392/allow-edits-to-livenessprobe
Browse files Browse the repository at this point in the history
  • Loading branch information
swang392 authored Sep 25, 2024
2 parents 1aceb9d + 9a12ba8 commit 45a9c28
Show file tree
Hide file tree
Showing 33 changed files with 655 additions and 339 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
pull_request:
paths:
- "charts/**"
paths-ignore:
- 'test/**'

jobs:
changed:
Expand Down
17 changes: 17 additions & 0 deletions charts/datadog/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Datadog changelog

## 3.73.0

* Add Azure Container Registry, enabled automatically when targeting `us3.datadoghq.com`.

## 3.72.1

* Add configuration option for `datadog.KubernetesEvents.filteringEnabled` to only include pre-defined allowed events. Disabled by default.

## 3.72.0

* Set default `Agent` and `Cluster-Agent` version to `7.57.2`.

## 3.71.2

* Add `datadog.kubernetesResourcesLabelsAsTags` to assign Kubernetes Resources Labels as tags in the tagger
* Add `datadog.kubernetesResourcesAnnotationsAsTags` to assign Kuberenetes Resources Annotations as tags in the tagger

## 3.71.1

* Update `fips.image.tag` to `1.1.5` updating openSSL version to 3.0.15
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.71.1
version: 3.73.0
appVersion: "7"
description: Datadog Agent
keywords:
Expand Down
13 changes: 8 additions & 5 deletions charts/datadog/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Datadog

![Version: 3.71.1](https://img.shields.io/badge/Version-3.71.1-informational?style=flat-square) ![AppVersion: 7](https://img.shields.io/badge/AppVersion-7-informational?style=flat-square)
![Version: 3.73.0](https://img.shields.io/badge/Version-3.73.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 Expand Up @@ -515,7 +515,7 @@ helm install <RELEASE_NAME> \
| agents.image.pullPolicy | string | `"IfNotPresent"` | Datadog Agent image pull policy |
| agents.image.pullSecrets | list | `[]` | Datadog Agent repository pullSecret (ex: specify docker registry credentials) |
| agents.image.repository | string | `nil` | Override default registry + image.name for Agent |
| agents.image.tag | string | `"7.56.2"` | Define the Agent version to use |
| agents.image.tag | string | `"7.57.2"` | Define the Agent version to use |
| agents.image.tagSuffix | string | `""` | Suffix to append to Agent tag |
| 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. |
| agents.localService.overrideName | string | `""` | Name of the internal traffic service to target the agent running on the local node |
Expand Down Expand Up @@ -590,7 +590,7 @@ helm install <RELEASE_NAME> \
| clusterAgent.image.pullPolicy | string | `"IfNotPresent"` | Cluster Agent image pullPolicy |
| clusterAgent.image.pullSecrets | list | `[]` | Cluster Agent repository pullSecret (ex: specify docker registry credentials) |
| clusterAgent.image.repository | string | `nil` | Override default registry + image.name for Cluster Agent |
| clusterAgent.image.tag | string | `"7.56.2"` | Cluster Agent image tag to use |
| clusterAgent.image.tag | string | `"7.57.2"` | Cluster Agent image tag to use |
| clusterAgent.livenessProbe | object | Every 15s / 6 KO / 1 OK | Override default Cluster Agent liveness probe settings |
| clusterAgent.metricsProvider.aggregator | string | `"avg"` | Define the aggregator the cluster agent will use to process the metrics. The options are (avg, min, max, sum) |
| clusterAgent.metricsProvider.createReaderRbac | bool | `true` | Create `external-metrics-reader` RBAC automatically (to allow HPA to read data from Cluster Agent) |
Expand Down Expand Up @@ -642,7 +642,7 @@ helm install <RELEASE_NAME> \
| clusterChecksRunner.image.pullPolicy | string | `"IfNotPresent"` | Datadog Agent image pull policy |
| clusterChecksRunner.image.pullSecrets | list | `[]` | Datadog Agent repository pullSecret (ex: specify docker registry credentials) |
| clusterChecksRunner.image.repository | string | `nil` | Override default registry + image.name for Cluster Check Runners |
| clusterChecksRunner.image.tag | string | `"7.56.2"` | Define the Agent version to use |
| clusterChecksRunner.image.tag | string | `"7.57.2"` | Define the Agent version to use |
| clusterChecksRunner.image.tagSuffix | string | `""` | Suffix to append to Agent tag |
| clusterChecksRunner.livenessProbe | object | Every 15s / 6 KO / 1 OK | Override default agent liveness probe settings |
| clusterChecksRunner.networkPolicy.create | bool | `false` | If true, create a NetworkPolicy for the cluster checks runners. DEPRECATED. Use datadog.networkPolicy.create instead |
Expand Down Expand Up @@ -749,7 +749,10 @@ helm install <RELEASE_NAME> \
| datadog.kubelet.podLogsPath | string | /var/log/pods on Linux, C:\var\log\pods on Windows | Path (on host) where the PODs logs are located |
| datadog.kubelet.tlsVerify | string | true | Toggle kubelet TLS verification |
| datadog.kubernetesEvents.collectedEventTypes | list | `[{"kind":"Pod","reasons":["Failed","BackOff","Unhealthy","FailedScheduling","FailedMount","FailedAttachVolume"]},{"kind":"Node","reasons":["TerminatingEvictedPod","NodeNotReady","Rebooted","HostPortConflict"]},{"kind":"CronJob","reasons":["SawCompletedJob"]}]` | Event types to be collected. This requires datadog.kubernetesEvents.unbundleEvents to be set to true. |
| datadog.kubernetesEvents.filteringEnabled | bool | `false` | Enable this to only include events that match the pre-defined allowed events. (Requires Cluster Agent 7.57.0+). |
| datadog.kubernetesEvents.unbundleEvents | bool | `false` | Allow unbundling kubernetes events, 1:1 mapping between Kubernetes and Datadog events. (Requires Cluster Agent 7.42.0+). |
| datadog.kubernetesResourcesAnnotationsAsTags | object | `{}` | Provide a mapping of Kubernetes Resources Annotations to Datadog Tags |
| datadog.kubernetesResourcesLabelsAsTags | object | `{}` | Provide a mapping of Kubernetes Resources Labels to Datadog Tags |
| datadog.leaderElection | bool | `true` | Enables leader election mechanism for event collection |
| datadog.leaderElectionResource | string | `"configmap"` | Selects the default resource to use for leader election. Can be: * "lease" / "leases". Only supported in agent 7.47+ * "configmap" / "configmaps". "" to automatically detect which one to use. |
| datadog.leaderLeaseDuration | string | `nil` | Set the lease time for leader election in second |
Expand Down Expand Up @@ -872,7 +875,7 @@ helm install <RELEASE_NAME> \
| providers.eks.ec2.useHostnameFromFile | bool | `false` | Use hostname from EC2 filesystem instead of fetching from metadata endpoint. |
| providers.gke.autopilot | bool | `false` | Enables Datadog Agent deployment on GKE Autopilot |
| providers.gke.cos | bool | `false` | Enables Datadog Agent deployment on GKE with Container-Optimized OS (COS) |
| registry | string | `nil` | Registry to use for all Agent images (default to [gcr.io | eu.gcr.io | asia.gcr.io | public.ecr.aws/datadog] depending on datadog.site value) |
| registry | string | `nil` | Registry to use for all Agent images (default to [gcr.io | eu.gcr.io | asia.gcr.io | datadoghq.azurecr.io | public.ecr.aws/datadog] depending on datadog.site value) |
| remoteConfiguration.enabled | bool | `true` | Set to true to enable remote configuration on the Cluster Agent (if set) and the node agent. Can be overridden if `datadog.remoteConfiguration.enabled` Preferred way to enable Remote Configuration. |
| targetSystem | string | `"linux"` | Target OS for this deployment (possible values: linux, windows) |

Expand Down
1 change: 1 addition & 0 deletions charts/datadog/ci/cluster-agent-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ datadog:
clusterChecks:
enabled: true
kubernetesEvents:
filteringEnabled: true
unbundleEvents: true
clusterTagger:
collectKubernetesTags: true
Expand Down
8 changes: 8 additions & 0 deletions charts/datadog/templates/_components-common-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@
- name: DD_KUBERNETES_NAMESPACE_ANNOTATIONS_AS_TAGS
value: '{{ toJson .Values.datadog.namespaceAnnotationsAsTags }}'
{{- end }}
{{- if .Values.datadog.kubernetesResourcesLabelsAsTags }}
- name: DD_KUBERNETES_RESOURCES_LABELS_AS_TAGS
value: '{{ toJson .Values.datadog.kubernetesResourcesLabelsAsTags }}'
{{- end}}
{{- if .Values.datadog.kubernetesResourcesAnnotationsAsTags }}
- name: DD_KUBERNETES_RESOURCES_ANNOTATIONS_AS_TAGS
value: '{{ toJson .Values.datadog.kubernetesResourcesAnnotationsAsTags }}'
{{- end}}
- name: KUBERNETES
value: "yes"
{{- if .Values.datadog.site }}
Expand Down
2 changes: 2 additions & 0 deletions charts/datadog/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ 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" -}}
datadoghq.azurecr.io
{{- else -}}
gcr.io/datadoghq
{{- end -}}
Expand Down
7 changes: 5 additions & 2 deletions charts/datadog/templates/_kubernetes_apiserver_config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{{- define "kubernetes_apiserver-config" -}}
{{- if and .Values.datadog.collectEvents .Values.datadog.kubernetesEvents.unbundleEvents -}}
{{- if .Values.datadog.collectEvents -}}
kubernetes_apiserver.yaml: |-
init_config:
instances:
- unbundle_events: {{ .Values.datadog.kubernetesEvents.unbundleEvents }}
- filtering_enabled: {{ .Values.datadog.kubernetesEvents.filteringEnabled }}
unbundle_events: {{ .Values.datadog.kubernetesEvents.unbundleEvents }}
{{- if .Values.datadog.kubernetesEvents.unbundleEvents }}
collected_event_types:
{{ .Values.datadog.kubernetesEvents.collectedEventTypes | toYaml | nindent 8 }}
{{- end -}}
{{- end -}}
{{- end -}}
2 changes: 1 addition & 1 deletion charts/datadog/templates/cluster-agent-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ spec:
- key: helm.yaml
path: helm.yaml
{{- end }}
{{- if and .Values.datadog.collectEvents .Values.datadog.kubernetesEvents.unbundleEvents }}
{{- if .Values.datadog.collectEvents }}
- key: kubernetes_apiserver.yaml
path: kubernetes_apiserver.yaml
{{- end }}
Expand Down
33 changes: 29 additions & 4 deletions charts/datadog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ targetSystem: "linux"
commonLabels: {}
# team_name: dev

# registry -- Registry to use for all Agent images (default to [gcr.io | eu.gcr.io | asia.gcr.io | public.ecr.aws/datadog] depending on datadog.site value)
# registry -- Registry to use for all Agent images (default to [gcr.io | eu.gcr.io | asia.gcr.io | datadoghq.azurecr.io | public.ecr.aws/datadog] depending on datadog.site value)

## Currently we offer Datadog Agent images on:
## GCR US - use gcr.io/datadoghq
## GCR Europe - use eu.gcr.io/datadoghq
## GCR Asia - use asia.gcr.io/datadoghq
## Azure - use datadoghq.azurecr.io
## AWS - use public.ecr.aws/datadog
## DockerHub - use docker.io/datadog
registry: # gcr.io/datadoghq
Expand Down Expand Up @@ -254,6 +255,28 @@ datadog:
# env: environment
# <KUBERNETES_NAMESPACE_ANNOTATIONS>: <DATADOG_TAG_KEY>

# datadog.kubernetesResourcesLabelsAsTags -- Provide a mapping of Kubernetes Resources Labels to Datadog Tags
kubernetesResourcesLabelsAsTags: {}
# deployments.apps:
# x-team: team-from-label
# pods:
# x-ref: reference
# namespaces:
# kubernetes.io/metadata.name: name-as-tag
# <RESOURCE_TYPE>:
# <KUBERNETES_RESOURCE_LABEL>: <DATADOG_TAG_KEY>

# datadog.kubernetesResourcesAnnotationsAsTags -- Provide a mapping of Kubernetes Resources Annotations to Datadog Tags
kubernetesResourcesAnnotationsAsTags: {}
# deployments.apps:
# x-team: team-from-annotation
# pods:
# x-ann: annotation-reference
# namespaces:
# stale-annotation: annotation-as-tag
# <RESOURCE_TYPE>:
# <KUBERNETES_RESOURCE_ANNOTATION>: <DATADOG_TAG_KEY>

originDetectionUnified:
# datadog.originDetectionUnified.enabled -- Enabled enables unified mechanism for origin detection. Default: false. (Requires Agent 7.54.0+).
enabled: false
Expand Down Expand Up @@ -369,6 +392,8 @@ datadog:

# Configure Kubernetes events collection
kubernetesEvents:
# datadog.kubernetesEvents.filteringEnabled -- Enable this to only include events that match the pre-defined allowed events. (Requires Cluster Agent 7.57.0+).
filteringEnabled: false
# datadog.kubernetesEvents.unbundleEvents -- Allow unbundling kubernetes events, 1:1 mapping between Kubernetes and Datadog events. (Requires Cluster Agent 7.42.0+).
unbundleEvents: false
# datadog.kubernetesEvents.collectedEventTypes -- Event types to be collected. This requires datadog.kubernetesEvents.unbundleEvents to be set to true.
Expand Down Expand Up @@ -975,7 +1000,7 @@ clusterAgent:
name: cluster-agent

# clusterAgent.image.tag -- Cluster Agent image tag to use
tag: 7.56.2
tag: 7.57.2

# clusterAgent.image.digest -- Cluster Agent image digest to use, takes precedence over tag if specified
digest: ""
Expand Down Expand Up @@ -1468,7 +1493,7 @@ agents:
name: agent

# agents.image.tag -- Define the Agent version to use
tag: 7.56.2
tag: 7.57.2

# agents.image.digest -- Define Agent image digest to use, takes precedence over tag if specified
digest: ""
Expand Down Expand Up @@ -1974,7 +1999,7 @@ clusterChecksRunner:
name: agent

# clusterChecksRunner.image.tag -- Define the Agent version to use
tag: 7.56.2
tag: 7.57.2

# clusterChecksRunner.image.digest -- Define Agent image digest to use, takes precedence over tag if specified
digest: ""
Expand Down
23 changes: 22 additions & 1 deletion charts/private-action-runner/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
# Datadog changelog

## 0.14.0

* Add support for `kubernetesActions`.

## 0.13.0

* Update private action image version to `v0.1.1-beta`

## 0.12.0

* Introduced `credentialFiles` key in `values.yaml` for secret management. Deprecated the `connectionCredentials` key
* Fixed issue where specifying connection secrets under `connectionCredentials` can result in the Helm chart generating malformed JSON

## 0.11.0

* Added top level `port` configuration option, superseding `appBuilder.port`. Update the private action image to the beta image, `v0.1.0-beta`.

### 0.10.0

* Update private action image version to `v0.0.1-alpha31`.

### 0.9.1

- Added ability to configure connection credentials in `config.yaml`.
* Added ability to configure connection credentials in `config.yaml`.

### 0.9.0

Expand Down
2 changes: 1 addition & 1 deletion charts/private-action-runner/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: private-action-runner
description: A Helm chart to deploy the private action runner

type: application
version: 0.9.1
version: 0.14.0
appVersion: "1.22.0"
keywords:
- app builder
Expand Down
Loading

0 comments on commit 45a9c28

Please sign in to comment.