Skip to content

Commit

Permalink
Update Datadog Operator version and disable APM, IAST, SCA, and CSPM …
Browse files Browse the repository at this point in the history
…by default (#16)
  • Loading branch information
brettcurtis authored Nov 15, 2024
1 parent 42a6e4b commit 5f6a7ef
Show file tree
Hide file tree
Showing 4 changed files with 149 additions and 15 deletions.
48 changes: 48 additions & 0 deletions regional/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Terraform Documentation

A child module automatically inherits its parent's default (un-aliased) provider configurations. The provider versions below are informational only and do **not** need to align with the provider configurations from its parent.

<!-- BEGIN_TF_DOCS -->
## Requirements

No requirements.

## Providers

| Name | Version |
|------|---------|
| <a name="provider_helm"></a> [helm](#provider\_helm) | 2.16.1 |
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | 2.33.0 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| <a name="module_helpers"></a> [helpers](#module\_helpers) | github.com/osinfra-io/terraform-core-helpers//child | v0.1.2 |

## Resources

| Name | Type |
|------|------|
| [helm_release.datadog_operator](https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release) | resource |
| [kubernetes_secret_v1.datadog_operator_secret](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/secret_v1) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_agent_namespace"></a> [agent\_namespace](#input\_agent\_namespace) | Namespace for the Datadog Agent | `string` | `"datadog"` | no |
| <a name="input_api_key"></a> [api\_key](#input\_api\_key) | Datadog API key | `string` | n/a | yes |
| <a name="input_app_key"></a> [app\_key](#input\_app\_key) | Datadog APP key | `string` | n/a | yes |
| <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 |
| <a name="input_limits_cpu"></a> [limits\_cpu](#input\_limits\_cpu) | CPU limits for the Datadog Operator | `string` | `"200m"` | no |
| <a name="input_limits_memory"></a> [limits\_memory](#input\_limits\_memory) | Memory limits for the Datadog Operator | `string` | `"64Mi"` | no |
| <a name="input_operator_version"></a> [operator\_version](#input\_operator\_version) | The version of the Datadog Operator to install | `string` | `"2.3.0"` | no |
| <a name="input_requests_cpu"></a> [requests\_cpu](#input\_requests\_cpu) | CPU requests for the Datadog Operator | `string` | `"100m"` | no |
| <a name="input_requests_memory"></a> [requests\_memory](#input\_requests\_memory) | Memory requests for the Datadog Operator | `string` | `"32Mi"` | no |
| <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 |

## Outputs

No outputs.
<!-- END_TF_DOCS -->
74 changes: 74 additions & 0 deletions regional/manifests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Terraform Documentation

A child module automatically inherits its parent's default (un-aliased) provider configurations. The provider versions below are informational only and do **not** need to align with the provider configurations from its parent.

<!-- BEGIN_TF_DOCS -->
## Requirements

No requirements.

## Providers

| Name | Version |
|------|---------|
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | 2.33.0 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| <a name="module_helpers"></a> [helpers](#module\_helpers) | github.com/osinfra-io/terraform-core-helpers//child | v0.1.2 |

## Resources

| Name | Type |
|------|------|
| [kubernetes_manifest.agent](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/manifest) | resource |
| [kubernetes_manifest.kubernetes_monitor_templates](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/manifest) | resource |
| [kubernetes_priority_class_v1.datadog](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/priority_class_v1) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_api_key"></a> [api\_key](#input\_api\_key) | Datadog API key | `string` | n/a | yes |
| <a name="input_app_key"></a> [app\_key](#input\_app\_key) | Datadog APP key | `string` | n/a | yes |
| <a name="input_cluster_agent_env_vars"></a> [cluster\_agent\_env\_vars](#input\_cluster\_agent\_env\_vars) | Environment variables for the cluster agent | <pre>list(object({<br/> name = string<br/> value = string<br/> }))</pre> | `[]` | no |
| <a name="input_cluster_agent_limits_cpu"></a> [cluster\_agent\_limits\_cpu](#input\_cluster\_agent\_limits\_cpu) | CPU limits for the Datadog cluster agent | `string` | `"200m"` | no |
| <a name="input_cluster_agent_limits_memory"></a> [cluster\_agent\_limits\_memory](#input\_cluster\_agent\_limits\_memory) | Memory limits for the Datadog cluster agent | `string` | `"256Mi"` | no |
| <a name="input_cluster_agent_requests_cpu"></a> [cluster\_agent\_requests\_cpu](#input\_cluster\_agent\_requests\_cpu) | CPU requests for the Datadog cluster agent | `string` | `"100m"` | no |
| <a name="input_cluster_agent_requests_memory"></a> [cluster\_agent\_requests\_memory](#input\_cluster\_agent\_requests\_memory) | Memory requests for the Datadog cluster agent | `string` | `"128Mi"` | no |
| <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 |
| <a name="input_enable_apm"></a> [enable\_apm](#input\_enable\_apm) | Enable Application Performance Monitoring (APM)<br/> Cost: $36.00 per host monthly | `bool` | `false` | no |
| <a name="input_enable_apm_instrumentation"></a> [enable\_apm\_instrumentation](#input\_enable\_apm\_instrumentation) | Enable Application Performance Monitoring (APM) Single-Step instrumentation | `bool` | `false` | no |
| <a name="input_enable_asm_iast"></a> [enable\_asm\_iast](#input\_enable\_asm\_iast) | Enable Interactive Application Security Testing (IAST) | `bool` | `false` | no |
| <a name="input_enable_asm_sca"></a> [enable\_asm\_sca](#input\_enable\_asm\_sca) | Enable Software Composition Analysis (SCA) | `bool` | `false` | no |
| <a name="input_enable_asm_threats"></a> [enable\_asm\_threats](#input\_enable\_asm\_threats) | Enable ASM App & API Protection<br/> Cost: $36.00 per host monthly | `bool` | `false` | no |
| <a name="input_enable_container_collect_all"></a> [enable\_container\_collect\_all](#input\_enable\_container\_collect\_all) | Enable log collection for all containers | `bool` | `true` | no |
| <a name="input_enable_cspm"></a> [enable\_cspm](#input\_enable\_cspm) | Enable Cloud Security Posture Management (CSPM)<br/> Cost: $12.00 per host monthly | `bool` | `false` | no |
| <a name="input_enable_cws"></a> [enable\_cws](#input\_enable\_cws) | Enable Cloud Workload Security (CWS)<br/> Cost: $36.00 per host monthly | `bool` | `false` | no |
| <a name="input_enable_cws_network_detection"></a> [enable\_cws\_network\_detection](#input\_enable\_cws\_network\_detection) | Enable Cloud Workload Security (CWS) network detections | `bool` | `false` | no |
| <a name="input_enable_external_metrics_server"></a> [enable\_external\_metrics\_server](#input\_enable\_external\_metrics\_server) | Enable the External Metrics Server | `bool` | `true` | no |
| <a name="input_enable_jmx"></a> [enable\_jmx](#input\_enable\_jmx) | Whether the Agent image should support JMX | `bool` | `false` | no |
| <a name="input_enable_log_collection"></a> [enable\_log\_collection](#input\_enable\_log\_collection) | Enable log collection | `bool` | `true` | no |
| <a name="input_enable_npm"></a> [enable\_npm](#input\_enable\_npm) | Enable Network Performance Monitoring (NPM) | `bool` | `true` | no |
| <a name="input_enable_sbom"></a> [enable\_sbom](#input\_enable\_sbom) | Enable Software Bill of Materials (SBOM) | `bool` | `true` | no |
| <a name="input_enable_usm"></a> [enable\_usm](#input\_enable\_usm) | Enable Universal Service Monitoring (USM) | `bool` | `true` | no |
| <a name="input_node_agent_env_dd_container_exclude"></a> [node\_agent\_env\_dd\_container\_exclude](#input\_node\_agent\_env\_dd\_container\_exclude) | Environment variable for the Datadog node agent to exclude containers | `string` | `""` | no |
| <a name="input_node_agent_env_dd_ignore_auto_conf"></a> [node\_agent\_env\_dd\_ignore\_auto\_conf](#input\_node\_agent\_env\_dd\_ignore\_auto\_conf) | Environment variable for the Datadog node agent to ignore auto configuration | `string` | `""` | no |
| <a name="input_node_agent_image"></a> [node\_agent\_image](#input\_node\_agent\_image) | Image for the Datadog node agent, relative to datadog | `string` | `"agent"` | no |
| <a name="input_node_agent_limits_cpu"></a> [node\_agent\_limits\_cpu](#input\_node\_agent\_limits\_cpu) | CPU limits for the Datadog Node Agent | `string` | `"200m"` | no |
| <a name="input_node_agent_limits_memory"></a> [node\_agent\_limits\_memory](#input\_node\_agent\_limits\_memory) | Memory limits for the Datadog Node Agent | `string` | `"256Mi"` | no |
| <a name="input_node_agent_log_level"></a> [node\_agent\_log\_level](#input\_node\_agent\_log\_level) | Node Agent log level | `string` | `"info"` | no |
| <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 |
| <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 |
| <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 |
| <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 |
| <a name="input_registry"></a> [registry](#input\_registry) | Docker registry for the Datadog container images | `string` | n/a | yes |
| <a name="input_team"></a> [team](#input\_team) | Team name to be used as a tag in Datadog | `string` | n/a | yes |
| <a name="input_trace_agent_env_dd_apm_filter_tags_regex_reject"></a> [trace\_agent\_env\_dd\_apm\_filter\_tags\_regex\_reject](#input\_trace\_agent\_env\_dd\_apm\_filter\_tags\_regex\_reject) | Environment variable values for the Datadog trace agent to regex reject APM tags | `string` | `""` | no |

## Outputs

No outputs.
<!-- END_TF_DOCS -->
40 changes: 26 additions & 14 deletions regional/manifests/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,12 @@ variable "cluster_prefix" {
}

variable "enable_apm" {
description = "Enable Application Performance Monitoring (APM)"
description = <<EOF
Enable Application Performance Monitoring (APM)
Cost: $36.00 per host monthly
EOF
type = bool
default = true
default = false
}

variable "enable_apm_instrumentation" {
Expand All @@ -64,21 +67,24 @@ variable "enable_apm_instrumentation" {
}

variable "enable_asm_iast" {
description = "Enabled enables Interactive Application Security Testing (IAST)"
description = "Enable Interactive Application Security Testing (IAST)"
type = bool
default = true
default = false
}

variable "enable_asm_sca" {
description = "Enable Software Composition Analysis (SCA)"
type = bool
default = true
default = false
}

variable "enable_asm_threats" {
description = "Enabled enables ASM App & API Protection"
description = <<EOF
Enable ASM App & API Protection
Cost: $36.00 per host monthly
EOF
type = bool
default = true
default = false
}

variable "enable_container_collect_all" {
Expand All @@ -88,21 +94,27 @@ variable "enable_container_collect_all" {
}

variable "enable_cspm" {
description = "Enable Cloud Security Posture Management (CSPM)"
description = <<EOF
Enable Cloud Security Posture Management (CSPM)
Cost: $12.00 per host monthly
EOF
type = bool
default = true
default = false
}

variable "enable_cws" {
description = "Enable Cloud Workload Security (CWS)"
description = <<EOF
Enable Cloud Workload Security (CWS)
Cost: $36.00 per host monthly
EOF
type = bool
default = true
default = false
}

variable "enable_cws_network_detection" {
description = "Enable Cloud Workload Security (CWS) network detections"
type = bool
default = true
default = false
}

variable "enable_external_metrics_server" {
Expand All @@ -112,7 +124,7 @@ variable "enable_external_metrics_server" {
}

variable "enable_jmx" {
description = "Whether the Agent image should support JMX - to be used if the Name field does not correspond to a full image string"
description = "Whether the Agent image should support JMX"
type = bool
default = false
}
Expand Down Expand Up @@ -192,7 +204,7 @@ variable "node_agent_requests_memory" {
variable "node_agent_tag" {
description = "Tag for the Datadog node agent image"
type = string
default = "7.58.1"
default = "7.59.0"
}

variable "node_agent_tolerations" {
Expand Down
2 changes: 1 addition & 1 deletion regional/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ variable "limits_memory" {
variable "operator_version" {
description = "The version of the Datadog Operator to install"
type = string
default = "2.2.0"
default = "2.3.0"
}

variable "requests_cpu" {
Expand Down

0 comments on commit 5f6a7ef

Please sign in to comment.