Skip to content

Commit

Permalink
Merge branch 'main' into mackjmr/add-ipc-env-vars
Browse files Browse the repository at this point in the history
  • Loading branch information
mackjmr committed Feb 6, 2025
2 parents 141e1e6 + 2b1aea4 commit f0e3519
Show file tree
Hide file tree
Showing 49 changed files with 478 additions and 359 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ jobs:
charts: ${{ steps.list-changed.outputs.changed }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v3.5
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5.0
with:
version: v3.6.3
- uses: actions/setup-python@v4
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
with:
python-version: 3.12
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.6.1
uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1
- name: Run chart-testing (list-changed)
id: list-changed
env:
Expand All @@ -52,14 +52,14 @@ jobs:
- changed
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
with:
python-version: 3.12
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.6.1
uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1
- name: Run chart-testing (lint)
run: ct lint --config .github/ct.yaml

Expand All @@ -69,7 +69,7 @@ jobs:
- changed
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Run helm-docs
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
- v1.31.1
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Add datadog helm repo
Expand Down Expand Up @@ -145,20 +145,20 @@ jobs:
kind: v0.22.0
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Create kind ${{ matrix.versions.k8s }} cluster with kind version ${{ matrix.versions.kind }}
uses: helm/kind-action@v1.10.0
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0
with:
version: ${{ matrix.versions.kind }}
node_image: kindest/node:${{ matrix.versions.k8s}}
config: .github/kind_config.yaml
- uses: actions/setup-python@v4
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
with:
python-version: 3.12
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.6.1
uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1
- name: Run chart-testing (install)
run: ct install --config .github/ct.yaml

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/go-test-private-action-runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
uses: actions/setup-go@0caeaed6fd66a828038c2da3c0f662a42862658f # v1.1.3
with:
go-version: 1.21
id: go
- name: Set up Helm
uses: azure/setup-helm@v3.5
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5.0
with:
version: v3.10.1
- name: Add Datadog Helm repo
run: helm repo add datadog https://helm.datadoghq.com && helm repo update
- name: Check out code into the Go module directory
uses: actions/checkout@v1
uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0
- name: run Go tests
run: |
helm dependency build ./charts/private-action-runner
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/go-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
uses: actions/setup-go@0caeaed6fd66a828038c2da3c0f662a42862658f # v1.1.3
with:
go-version: 1.21
id: go
- name: Set up Helm
uses: azure/setup-helm@v4.2.0
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0
with:
version: v3.14.0
- name: Add Datadog Helm repo
run: helm repo add datadog https://helm.datadoghq.com && helm repo update
- name: Check out code into the Go module directory
uses: actions/checkout@v1
uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0
- name: run Go tests
run: |
helm dependency build ./charts/datadog-operator
Expand Down Expand Up @@ -70,11 +70,11 @@ jobs:
kind: v0.22.0
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Create K8s ${{ matrix.versions.k8s }} cluster with kind version ${{ matrix.versions.kind }}
uses: helm/kind-action@v1.10.0
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0
with:
version: ${{ matrix.versions.kind }}
node_image: kindest/node:${{ matrix.versions.k8s }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
pull-requests: write
timeout-minutes: 5
steps:
- uses: actions/labeler@v5
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/workflows/labeler/labels.yaml
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
fetch-depth: 0
- name: Configure Git
Expand All @@ -29,7 +29,7 @@ jobs:
helm repo add datadog https://helm.datadoghq.com
helm repo add kube-state-metrics https://prometheus-community.github.io/helm-charts
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.5.0
uses: helm/chart-releaser-action@be16258da8010256c6e82849661221415f031968 # v1.5.0
env:
CR_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
CR_SKIP_EXISTING: true # Ignore chart changes when version was not updated (documentation)
4 changes: 4 additions & 0 deletions charts/datadog-operator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.5.1

* Expose CRD-specific namespace watch configuration added in Operator 1.8.0 release.

## 2.5.0

* Update Datadog Operator version to 1.11.1.
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: 2.5.0
version: 2.5.2
appVersion: 1.11.1
description: Datadog Operator
keywords:
Expand Down
8 changes: 6 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.0](https://img.shields.io/badge/Version-2.5.0-informational?style=flat-square) ![AppVersion: 1.11.1](https://img.shields.io/badge/AppVersion-1.11.1-informational?style=flat-square)
![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)

## Values

Expand Down Expand Up @@ -60,7 +60,11 @@
| tolerations | list | `[]` | Allows to schedule Datadog Operator on tainted nodes |
| volumeMounts | list | `[]` | Specify additional volumes to mount in the container |
| volumes | list | `[]` | Specify additional volumes to mount in the container |
| watchNamespaces | list | `[]` | Restricts the Operator to watch its managed resources on specific namespaces |
| watchNamespaces | list | `[]` | Restricts the Operator to watch its managed resources on specific namespaces unless CRD-specific watchNamespaces properties are set |
| watchNamespacesAgent | list | `[]` | Restricts the Operator to watch DatadogAgent resources on specific namespaces. Requires v1.8.0+ |
| watchNamespacesAgentProfile | list | `[]` | Restricts the Operator to watch DatadogAgentProfile resources on specific namespaces. Requires v1.8.0+ |
| watchNamespacesMonitor | list | `[]` | Restricts the Operator to watch DatadogMonitor resources on specific namespaces. Requires v1.8.0+ |
| watchNamespacesSLO | list | `[]` | Restricts the Operator to watch DatadogSLO resources on specific namespaces. Requires v1.8.0+ |

## How to configure which namespaces are watched by the Operator.

Expand Down
7 changes: 7 additions & 0 deletions charts/datadog-operator/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,13 @@ rules:
verbs:
- list
- watch
- apiGroups: # EKS kube_scheduler and kube_controller_manager control plane metrics
- "metrics.eks.amazonaws.com"
resources:
- kcm/metrics
- ksh/metrics
verbs:
- get
{{- if .Values.datadogAgentProfile.enabled }}
- apiGroups:
- ""
Expand Down
16 changes: 16 additions & 0 deletions charts/datadog-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,22 @@ spec:
fieldRef:
fieldPath: metadata.namespace
{{- end }}
{{- if .Values.watchNamespacesAgent }}
- name: DD_AGENT_WATCH_NAMESPACE
value: {{ .Values.watchNamespacesAgent | join "," }}
{{- end }}
{{- if .Values.watchNamespacesMonitor }}
- name: DD_MONITOR_WATCH_NAMESPACE
value: {{ .Values.watchNamespacesMonitor | join "," }}
{{- end }}
{{- if .Values.watchNamespacesSLO }}
- name: DD_SLO_WATCH_NAMESPACE
value: {{ .Values.watchNamespacesSLO | join "," }}
{{- end }}
{{- if .Values.watchNamespacesAgentProfile }}
- name: DD_AGENT_PROFILE_WATCH_NAMESPACE
value: {{ .Values.watchNamespacesAgentProfile | join "," }}
{{- end }}
- name: POD_NAME
valueFrom:
fieldRef:
Expand Down
49 changes: 49 additions & 0 deletions charts/datadog-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ podLabels: {}
collectOperatorMetrics: true

# watchNamespaces -- Restricts the Operator to watch its managed resources on specific namespaces
# unless CRD-specific watchNamespaces properties are set
watchNamespaces: []
# example: watch only two namespaces:
# watchNamespaces:
Expand All @@ -167,6 +168,54 @@ watchNamespaces: []
# watchNamespaces:
# - ""

# watchNamespacesAgent -- Restricts the Operator to watch DatadogAgent resources on specific namespaces.
# Requires v1.8.0+
watchNamespacesAgent: []
# example: watch only two namespaces:
# watchNamespacesAgent:
# - "default"
# - "datadog"
#
# to watch all namespaces
# watchNamespacesAgent:
# - ""

# watchNamespacesMonitor -- Restricts the Operator to watch DatadogMonitor resources on specific namespaces.
# Requires v1.8.0+
watchNamespacesMonitor: []
# example: watch only two namespaces:
# watchNamespacesMonitor:
# - "default"
# - "datadog"
#
# to watch all namespaces
# watchNamespacesMonitor:
# - ""

# watchNamespacesSLO -- Restricts the Operator to watch DatadogSLO resources on specific namespaces.
# Requires v1.8.0+
watchNamespacesSLO: []
# example: watch only two namespaces:
# watchNamespacesSLO:
# - "default"
# - "datadog"
#
# to watch all namespaces
# watchNamespacesSLO:
# - ""

# watchNamespacesAgentProfile -- Restricts the Operator to watch DatadogAgentProfile resources on specific namespaces.
# Requires v1.8.0+
watchNamespacesAgentProfile: []
# example: watch only two namespaces:
# watchNamespacesAgentProfile:
# - "default"
# - "datadog"
#
# to watch all namespaces
# watchNamespacesAgentProfile:
# - ""

# containerSecurityContext -- A security context defines privileges and access control settings for a container.
containerSecurityContext: {}

Expand Down
34 changes: 33 additions & 1 deletion charts/datadog/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,40 @@
# Datadog changelog

## 3.90.1

* Add rule to clusterrole to allow the node agent to query the EKS control plane metrics API

## 3.90.0

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

## 3.89.0

* Add `clusterAgent.kubernetesApiserverCheck.disableUseComponentStatus` to disable `use_component_status` option for kubernetes_apiserver check.

## 3.88.3

* Mount /var/lib/containers to generate SBOMs for CRI-O.

## 3.88.2

* Disable running process check in core Agent by default feature for GKE Autopilot, as it is not supported.

## 3.88.1

* Disable SBOM monitoring features for GKE Autopilot, as they are not supported

## 3.88.0

* 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.
* Set default `Agent` and `Cluster-Agent` version to `7.61.0`.

## 3.87.2

* Add cgroups mount in system-probe for USM, NPM and Service Discovery matching the datadog-operator.

## 3.87.1

* Add the ability to set the image tag to use for the APM Injector.

## 3.87.0

Expand Down
2 changes: 1 addition & 1 deletion charts/datadog/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
apiVersion: v1
name: datadog
version: 3.88.0
version: 3.90.1
appVersion: "7"
description: Datadog Agent
keywords:
Expand Down
Loading

0 comments on commit f0e3519

Please sign in to comment.