Skip to content

Commit 57f3488

Browse files
authored
Update dependencies and versions and support for inferred services (#18)
1 parent 6753154 commit 57f3488

File tree

8 files changed

+29
-10
lines changed

8 files changed

+29
-10
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ override.tf.json
2727
# Ignore plan output files
2828
plan.out
2929

30+
# Ignore checkov directories and files
31+
.external_modules
32+
3033
# Ignore Infracost directories and files
3134
.infracost
3235

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ repos:
2929
- id: terraform_docs
3030

3131
- repo: https://github.com/bridgecrewio/checkov.git
32-
rev: 3.2.296
32+
rev: 3.2.343
3333
hooks:
3434
- id: checkov
3535
verbose: true
3636
args:
37+
- --download-external-modules=true
3738
- --skip-check
3839
- "CKV_TF_1"
3940
- --quiet

regional/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ No requirements.
1111

1212
| Name | Version |
1313
|------|---------|
14-
| <a name="provider_helm"></a> [helm](#provider\_helm) | 2.16.1 |
15-
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | 2.33.0 |
14+
| <a name="provider_helm"></a> [helm](#provider\_helm) | 2.17.0 |
15+
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | 2.35.1 |
1616

1717
## Modules
1818

@@ -37,7 +37,7 @@ No requirements.
3737
| <a name="input_cluster_prefix"></a> [cluster\_prefix](#input\_cluster\_prefix) | Prefix for your cluster name, region, and zone (if applicable) will be added to the end of the cluster name | `string` | n/a | yes |
3838
| <a name="input_limits_cpu"></a> [limits\_cpu](#input\_limits\_cpu) | CPU limits for the Datadog Operator | `string` | `"200m"` | no |
3939
| <a name="input_limits_memory"></a> [limits\_memory](#input\_limits\_memory) | Memory limits for the Datadog Operator | `string` | `"64Mi"` | no |
40-
| <a name="input_operator_version"></a> [operator\_version](#input\_operator\_version) | The version of the Datadog Operator to install | `string` | `"2.3.0"` | no |
40+
| <a name="input_operator_version"></a> [operator\_version](#input\_operator\_version) | The version of the Datadog Operator to install | `string` | `"2.5.0"` | no |
4141
| <a name="input_requests_cpu"></a> [requests\_cpu](#input\_requests\_cpu) | CPU requests for the Datadog Operator | `string` | `"100m"` | no |
4242
| <a name="input_requests_memory"></a> [requests\_memory](#input\_requests\_memory) | Memory requests for the Datadog Operator | `string` | `"32Mi"` | no |
4343
| <a name="input_watch_namespaces"></a> [watch\_namespaces](#input\_watch\_namespaces) | Restricts the Operator to watch its managed resources on specific namespaces - set to [""] to watch all namespaces | `list(string)` | <pre>[<br/> "datadog"<br/>]</pre> | no |

regional/manifests/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ No requirements.
1111

1212
| Name | Version |
1313
|------|---------|
14-
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | 2.33.0 |
14+
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | 2.35.1 |
1515

1616
## Modules
1717

@@ -62,7 +62,7 @@ No requirements.
6262
| <a name="input_node_agent_log_level"></a> [node\_agent\_log\_level](#input\_node\_agent\_log\_level) | Node Agent log level | `string` | `"info"` | no |
6363
| <a name="input_node_agent_requests_cpu"></a> [node\_agent\_requests\_cpu](#input\_node\_agent\_requests\_cpu) | CPU requests for the Datadog Node Agent | `string` | `"100m"` | no |
6464
| <a name="input_node_agent_requests_memory"></a> [node\_agent\_requests\_memory](#input\_node\_agent\_requests\_memory) | Memory requests for the Datadog Node Agent | `string` | `"128Mi"` | no |
65-
| <a name="input_node_agent_tag"></a> [node\_agent\_tag](#input\_node\_agent\_tag) | Tag for the Datadog node agent image | `string` | `"7.59.0"` | no |
65+
| <a name="input_node_agent_tag"></a> [node\_agent\_tag](#input\_node\_agent\_tag) | Tag for the Datadog node agent image | `string` | `"7.60.1"` | no |
6666
| <a name="input_node_agent_tolerations"></a> [node\_agent\_tolerations](#input\_node\_agent\_tolerations) | Tolerations for the Datadog node agent | <pre>list(object({<br/> key = string<br/> operator = string<br/> value = string<br/> effect = string<br/> }))</pre> | `[]` | no |
6767
| <a name="input_registry"></a> [registry](#input\_registry) | Docker registry for the Datadog container images | `string` | n/a | yes |
6868
| <a name="input_team"></a> [team](#input\_team) | Team name to be used as a tag in Datadog | `string` | n/a | yes |

regional/manifests/locals.tf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22
# https://www.terraform.io/docs/language/values/locals.html
33

44
locals {
5+
cluster_agent_env_vars = [
6+
7+
# Datadog Inferred Services:
8+
9+
{
10+
name = "DD_APM_COMPUTE_STATS_BY_SPAN_KIND"
11+
value = "true"
12+
},
13+
{
14+
name = "DD_APM_PEER_TAGS_AGGREGATION"
15+
value = "true"
16+
}
17+
]
18+
519
cluster_name = module.helpers.zone != null ? "${var.cluster_prefix}-${module.helpers.region}-${module.helpers.zone}-${module.helpers.env}" : "${var.cluster_prefix}-${module.helpers.region}-${module.helpers.env}"
620

721
kubernetes_monitor_templates = {

regional/manifests/main.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ resource "kubernetes_manifest" "agent" {
6767

6868
sbom = {
6969
containerImage = {
70-
enabled = var.enable_sbom
70+
enabled = var.enable_sbom
71+
uncompressedLayersSupport = true
7172
}
7273

7374
enabled = var.enable_sbom
@@ -91,7 +92,7 @@ resource "kubernetes_manifest" "agent" {
9192

9293
override = {
9394
clusterAgent = {
94-
env = var.cluster_agent_env_vars
95+
env = concat(local.cluster_agent_env_vars, var.cluster_agent_env_vars)
9596

9697
labels = {
9798
"tags.datadoghq.com/env" = module.helpers.environment

regional/manifests/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ variable "node_agent_requests_memory" {
204204
variable "node_agent_tag" {
205205
description = "Tag for the Datadog node agent image"
206206
type = string
207-
default = "7.59.0"
207+
default = "7.60.1"
208208
}
209209

210210
variable "node_agent_tolerations" {

regional/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ variable "limits_memory" {
3939
variable "operator_version" {
4040
description = "The version of the Datadog Operator to install"
4141
type = string
42-
default = "2.3.0"
42+
default = "2.5.0"
4343
}
4444

4545
variable "requests_cpu" {

0 commit comments

Comments
 (0)