Skip to content

Commit 0269ee1

Browse files
authored
Merge branch 'main' into mackjmr/add-ipc-env-vars
2 parents 9d48e2a + be4dc2b commit 0269ee1

130 files changed

Lines changed: 11322 additions & 1547 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"image": "mcr.microsoft.com/devcontainers/go:dev-1.22",
2+
"image": "mcr.microsoft.com/devcontainers/go:dev-1.23",
33
"features": {
44
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
55
},

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ README.md @DataDog/documentation @DataDog/container-ecosystems
1919
/internal/controller/datadogagent/feature/clusterchecks/* @DataDog/container-platform
2020
/internal/controller/datadogagent/feature/kubernetesstatecore/* @DataDog/container-integrations
2121
/internal/controller/datadogagent/feature/helmcheck/* @DataDog/container-integrations
22+
23+
24+
/api/datadoghq/v1alpha2/datadogpodautoscaler_types.go @DataDog/container-autoscaling
25+
/api/datadoghq/v1alpha1/datadogpodautoscaler_types.go @DataDog/container-autoscaling

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "monthly"
12+
groups:
13+
gh-actions-packages:
14+
patterns:
15+
- "*"

.github/workflows/build.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Build
22
env:
3-
GO_VERSION: 1.22.7
3+
GO_VERSION: 1.23.5
44
on:
55
push:
66
# Permission forced by repo-level setting; only elevate on job-level
@@ -15,20 +15,20 @@ jobs:
1515
contents: write
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1919
with:
2020
fetch-depth: 0
2121
- name: gcc install
2222
run: sudo apt-get update; sudo apt install gcc-aarch64-linux-gnu
2323
- name: Get tag
24-
uses: little-core-labs/get-git-tag@v3.0.2
24+
uses: little-core-labs/get-git-tag@2c292ff564c1a61b989e29f0410d131317f89b03 # v3.0.2
2525
id: tag
2626
- name: Set up Go
27-
uses: actions/setup-go@v3
27+
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
2828
with:
2929
go-version: ${{ env.GO_VERSION }}
3030
- name: Run GoReleaser
31-
uses: goreleaser/goreleaser-action@v3
31+
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757 # v3.2.0
3232
with:
3333
version: 2.4.1
3434
args: build --skip=validate --config .goreleaser-for-linux.yaml
@@ -38,18 +38,18 @@ jobs:
3838
# https://github.com/marketplace/actions/goreleaser-action
3939
contents: write
4040
steps:
41-
- uses: actions/checkout@v3
41+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
4242
with:
4343
fetch-depth: 0
4444
- name: Get tag
45-
uses: little-core-labs/get-git-tag@v3.0.2
45+
uses: little-core-labs/get-git-tag@2c292ff564c1a61b989e29f0410d131317f89b03 # v3.0.2
4646
id: tag
4747
- name: Set up Go
48-
uses: actions/setup-go@v3
48+
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
4949
with:
5050
go-version: ${{ env.GO_VERSION }}
5151
- name: Build
52-
uses: goreleaser/goreleaser-action@v3
52+
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757 # v3.2.0
5353
with:
5454
args: build --skip=validate --config .goreleaser-for-darwin.yaml
5555
build-windows-binary:
@@ -58,17 +58,17 @@ jobs:
5858
# https://github.com/marketplace/actions/goreleaser-action
5959
contents: write
6060
steps:
61-
- uses: actions/checkout@v3
61+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
6262
with:
6363
fetch-depth: 0
6464
- name: Get tag
65-
uses: little-core-labs/get-git-tag@v3.0.2
65+
uses: little-core-labs/get-git-tag@2c292ff564c1a61b989e29f0410d131317f89b03 # v3.0.2
6666
id: tag
6767
- name: Set up Go
68-
uses: actions/setup-go@v3
68+
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
6969
with:
7070
go-version: ${{ env.GO_VERSION }}
7171
- name: Build
72-
uses: goreleaser/goreleaser-action@v3
72+
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757 # v3.2.0
7373
with:
7474
args: build --skip=validate --config .goreleaser-for-windows.yaml

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ jobs:
2727

2828
steps:
2929
- name: Checkout repository
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
3131

3232
# Initializes the CodeQL tools for scanning.
3333
- name: Initialize CodeQL
34-
uses: github/codeql-action/init@v2
34+
uses: github/codeql-action/init@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1
3535
with:
3636
languages: ${{ matrix.language }}
3737
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -41,7 +41,7 @@ jobs:
4141

4242
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
4343
- name: Autobuild
44-
uses: github/codeql-action/autobuild@v2
44+
uses: github/codeql-action/autobuild@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1
4545

4646
- name: Perform CodeQL Analysis
47-
uses: github/codeql-action/analyze@v2
47+
uses: github/codeql-action/analyze@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@ permissions:
66
# packages: read
77
env:
88
PROJECTNAME: "datadog-operator"
9-
GO_VERSION: 1.22.7
9+
GO_VERSION: 1.23.5
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Set up Go
15-
uses: actions/setup-go@v1
15+
uses: actions/setup-go@0caeaed6fd66a828038c2da3c0f662a42862658f # v1.1.3
1616
with:
1717
go-version: ${{ env.GO_VERSION }}
1818
id: go
1919
- name: install required packages
20-
uses: mstksg/get-package@v1
20+
uses: mstksg/get-package@4eda30bb5c6ac62c0f3921dd5884b6ef8fc89ab2 # v1.0.0
2121
with:
2222
apt-get: mercurial jq build-essential
2323
- name: Check out code into the Go module directory
24-
uses: actions/checkout@v1
24+
uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0
2525
- name: install tools
2626
run: |
2727
make install-tools
@@ -31,7 +31,7 @@ jobs:
3131
- name: run unit tests and E2E tests (fake cluster)
3232
run: |
3333
make test
34-
- uses: codecov/codecov-action@v2
34+
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
3535
with:
3636
token: ${{ secrets.CODECOV_TOKEN }}
3737
files: cover.out,cover_integration_v1.out,cover_integration_v2.out

.github/workflows/pr-linter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
pull-requests: read
1414
steps:
1515
- name: Check out code into the Go module directory
16-
uses: actions/checkout@v1
16+
uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0
1717
- name: Verify Pull Request Labels
18-
uses: jesusvasquez333/verify-pr-label-action@v1.4.0
18+
uses: jesusvasquez333/verify-pr-label-action@657d111bbbe13e22bbd55870f1813c699bde1401 # v1.4.0
1919
with:
2020
github-token: '${{ secrets.GITHUB_TOKEN }}'
2121
valid-labels: 'bug, enhancement, refactoring, documentation, tooling, dependencies'

.github/workflows/release.yaml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,47 +11,47 @@ permissions:
1111
contents: read
1212
# packages: read
1313
env:
14-
GO_VERSION: 1.22.7
14+
GO_VERSION: 1.23.5
1515
jobs:
1616
build-linux-binary:
1717
if: startsWith(github.ref, 'refs/tags/v')
1818
runs-on: ubuntu-latest
1919
permissions:
2020
# https://github.com/marketplace/actions/goreleaser-action
2121
contents: write
22-
# actions/upload-artifact@v3
22+
# actions/upload-artifact
2323
actions: write
2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2727
with:
2828
fetch-depth: 0
2929
- name: gcc install
3030
run: sudo apt-get update; sudo apt install gcc-aarch64-linux-gnu
3131
- name: Get tag
32-
uses: little-core-labs/get-git-tag@v3.0.2
32+
uses: little-core-labs/get-git-tag@2c292ff564c1a61b989e29f0410d131317f89b03 # v3.0.2
3333
id: tag
3434
- name: Set up Go
35-
uses: actions/setup-go@v3
35+
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
3636
with:
3737
go-version: ${{ env.GO_VERSION }}
3838
- name: Get Latest Release
3939
id: latest_version
40-
uses: pozetroninc/github-action-get-latest-release@master
40+
uses: pozetroninc/github-action-get-latest-release@53d33d213ee71c72360e3c829caf7cee94ec21e2 # master
4141
with:
4242
owner: ${{ github.repository_owner }}
4343
repo: datadog-operator
4444
excludes: prerelease, draft
4545
token: ${{ secrets.GITHUB_TOKEN }}
4646
- name: Run GoReleaser
47-
uses: goreleaser/goreleaser-action@v3
47+
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757 # v3.2.0
4848
with:
4949
version: 2.4.1
5050
args: release --skip=publish --config .goreleaser-for-linux.yaml
5151
env:
5252
GORELEASER_PREVIOUS_TAG: ${{steps.latest_version.outputs.release}}
5353
- name: Upload
54-
uses: actions/upload-artifact@v3
54+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
5555
with:
5656
name: kubectl-datadog-linux
5757
path: |
@@ -64,35 +64,35 @@ jobs:
6464
permissions:
6565
# https://github.com/marketplace/actions/goreleaser-action
6666
contents: write
67-
# actions/upload-artifact@v3
67+
# actions/upload-artifact
6868
actions: write
6969
steps:
70-
- uses: actions/checkout@v3
70+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
7171
with:
7272
fetch-depth: 0
7373
- name: Get tag
74-
uses: little-core-labs/get-git-tag@v3.0.2
74+
uses: little-core-labs/get-git-tag@2c292ff564c1a61b989e29f0410d131317f89b03 # v3.0.2
7575
id: tag
7676
- name: Set up Go
77-
uses: actions/setup-go@v3
77+
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
7878
with:
7979
go-version: ${{ env.GO_VERSION }}
8080
- name: Get Latest Release
8181
id: latest_version
82-
uses: pozetroninc/github-action-get-latest-release@master
82+
uses: pozetroninc/github-action-get-latest-release@53d33d213ee71c72360e3c829caf7cee94ec21e2 # master
8383
with:
8484
owner: ${{ github.repository_owner }}
8585
repo: datadog-operator
8686
excludes: prerelease, draft
8787
token: ${{ secrets.GITHUB_TOKEN }}
8888
- name: Build
89-
uses: goreleaser/goreleaser-action@v3
89+
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757 # v3.2.0
9090
with:
9191
args: release --skip=publish --config .goreleaser-for-darwin.yaml
9292
env:
9393
GORELEASER_PREVIOUS_TAG: ${{steps.latest_version.outputs.release}}
9494
- name: Upload
95-
uses: actions/upload-artifact@v3
95+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
9696
with:
9797
name: kubectl-datadog-darwin
9898
path: |
@@ -104,35 +104,35 @@ jobs:
104104
permissions:
105105
# https://github.com/marketplace/actions/goreleaser-action
106106
contents: write
107-
# actions/upload-artifact@v3
107+
# actions/upload-artifact
108108
actions: write
109109
steps:
110-
- uses: actions/checkout@v3
110+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
111111
with:
112112
fetch-depth: 0
113113
- name: Get tag
114-
uses: little-core-labs/get-git-tag@v3.0.2
114+
uses: little-core-labs/get-git-tag@2c292ff564c1a61b989e29f0410d131317f89b03 # v3.0.2
115115
id: tag
116116
- name: Set up Go
117-
uses: actions/setup-go@v3
117+
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
118118
with:
119119
go-version: ${{ env.GO_VERSION }}
120120
- name: Get Latest Release
121121
id: latest_version
122-
uses: pozetroninc/github-action-get-latest-release@master
122+
uses: pozetroninc/github-action-get-latest-release@53d33d213ee71c72360e3c829caf7cee94ec21e2 # master
123123
with:
124124
owner: ${{ github.repository_owner }}
125125
repo: datadog-operator
126126
excludes: prerelease, draft
127127
token: ${{ secrets.GITHUB_TOKEN }}
128128
- name: Build
129-
uses: goreleaser/goreleaser-action@v3
129+
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757 # v3.2.0
130130
with:
131131
args: release --skip=publish --config .goreleaser-for-windows.yaml
132132
env:
133133
GORELEASER_PREVIOUS_TAG: ${{steps.latest_version.outputs.release}}
134134
- name: Upload
135-
uses: actions/upload-artifact@v3
135+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
136136
with:
137137
name: kubectl-datadog-windows
138138
path: |
@@ -146,13 +146,13 @@ jobs:
146146
# https://github.com/marketplace/actions/goreleaser-action
147147
# https://github.com/softprops/action-gh-release?tab=readme-ov-file#permissions
148148
contents: write
149-
# actions/download-artifact@v3
149+
# actions/download-artifact
150150
actions: read
151151
# rajatjindal/krew-release-bot@v0.0.43
152152
pull-requests: write
153153
steps:
154154
- name: Checkout
155-
uses: actions/checkout@v3
155+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
156156
with:
157157
fetch-depth: 0
158158
- name: Make directories
@@ -161,22 +161,22 @@ jobs:
161161
mkdir -p ./dist/darwin
162162
mkdir -p ./dist/windows
163163
- name: Download linux binaries
164-
uses: actions/download-artifact@v3
164+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
165165
with:
166166
name: kubectl-datadog-linux
167167
path: ./tmp-build/linux
168168
- name: Download darwin binaries
169-
uses: actions/download-artifact@v3
169+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
170170
with:
171171
name: kubectl-datadog-darwin
172172
path: ./tmp-build/darwin
173173
- name: Download windows binaries
174-
uses: actions/download-artifact@v3
174+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
175175
with:
176176
name: kubectl-datadog-windows
177177
path: ./tmp-build/windows
178178
- name: Get tag
179-
uses: little-core-labs/get-git-tag@v3.0.2
179+
uses: little-core-labs/get-git-tag@2c292ff564c1a61b989e29f0410d131317f89b03 # v3.0.2
180180
id: tag
181181
- name: Prepare ./dist folder
182182
run: |
@@ -191,7 +191,7 @@ jobs:
191191
- name: Generate Plugin manifest
192192
run: ./hack/release/generate-plugin-manifest.sh ${{steps.tag.outputs.tag}}
193193
- name: Release
194-
uses: softprops/action-gh-release@v1
194+
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1.0.0
195195
with:
196196
body_path: dist/CHANGELOG.md
197197
prerelease: ${{ contains(github.ref, '-rc.') }}
@@ -204,7 +204,7 @@ jobs:
204204
COMMIT_TAG: ${{steps.tag.outputs.tag}}
205205
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
206206
- name: Update new plugin version in krew-index
207-
uses: rajatjindal/krew-release-bot@v0.0.43
207+
uses: rajatjindal/krew-release-bot@92da038bbf995803124a8e50ebd438b2f37bbbb0 # v0.0.43
208208
continue-on-error: true
209209
with:
210210
krew_template_file: dist/datadog-plugin.yaml

0 commit comments

Comments
 (0)