Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update event logger configuration via Fleet #1

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
db2d247
Bump actions/checkout from 3 to 4 (#4806)
dependabot[bot] Jun 6, 2024
b008273
Support package version update on any release branch (#4843)
rdner Jun 6, 2024
b5414f3
Partially revert CI triggering improvements (#4866)
alexsapran Jun 6, 2024
65bf998
buildkite: allow running builds for github-actions[bot] (#4867)
v1v Jun 6, 2024
ec7b882
Bump github.com/elastic/elastic-agent-autodiscover from 0.6.14 to 0.7…
dependabot[bot] Jun 6, 2024
6f707b5
github-actions: set git config user/email (#4865)
v1v Jun 6, 2024
6a02d8b
Add otelcol shortcut to `elastic-agent otel` (#4816)
nchaulet Jun 6, 2024
2a7f93a
Create a version update branch after the mage target is run (#4872)
rdner Jun 6, 2024
bc648a0
Bump github.com/elastic/go-docappender/v2 from 2.1.2 to 2.1.3 (#4840)
dependabot[bot] Jun 6, 2024
1e1e249
Skip flaky proxy URL tests (#4869)
pchila Jun 6, 2024
b009d7c
Bump github.com/elastic/elastic-agent-client/v7 from 7.10.0 to 7.11.0…
dependabot[bot] Jun 6, 2024
8741929
Bump github.com/elastic/elastic-agent-system-metrics from 0.10.1 to 0…
dependabot[bot] Jun 6, 2024
36fd2a1
[main][Automation] Update versions (#4876)
github-actions[bot] Jun 7, 2024
e94d13a
Bump updatecli/updatecli-action from 2.58.0 to 2.59.0 (#4820)
dependabot[bot] Jun 7, 2024
ca3d1f2
Bump github.com/elastic/elastic-transport-go/v8 from 8.5.0 to 8.6.0 (…
dependabot[bot] Jun 7, 2024
17880c6
Bump the otel-dependencies group across 1 directory with 49 updates (…
dependabot[bot] Jun 7, 2024
e2b816b
Wait on the watcher at startup instead of just releasing resources as…
cmacknz Jun 7, 2024
8ca8355
[main][Automation] Update versions (#4886)
github-actions[bot] Jun 10, 2024
452afdf
Disable controller code for otel mode (#4862)
michalpristas Jun 10, 2024
efd9ee6
Agent/beats grpc comms over domain socket/named pipe (#4249)
aleksmaus Jun 10, 2024
e8fefd7
Bump github.com/elastic/go-elasticsearch/v8 from 8.13.1 to 8.14.0 (#4…
dependabot[bot] Jun 10, 2024
87a8930
[Automation] Bump Golang version to 1.21.11 (#4855)
github-actions[bot] Jun 10, 2024
c7b3882
Log raw events to a separate log file (#4549)
belimawr Jun 11, 2024
2e09c33
Add k8sattributesprocessor component (#4893)
ChrsMark Jun 11, 2024
4da14b8
Add Ubuntu 24.04 to integration testing. (#4898)
blakerouse Jun 11, 2024
f88fd4f
Bump github.com/elastic/go-docappender/v2 from 2.1.3 to 2.1.4 (#4900)
dependabot[bot] Jun 12, 2024
c45842a
Bump github.com/elastic/elastic-agent-libs from 0.9.11 to 0.9.12 (#4901)
dependabot[bot] Jun 12, 2024
4f0d26b
Add `unprivileged` and `privileged` subcommand to Elastic Agent (#4621)
blakerouse Jun 12, 2024
d2d88ca
Apply mTLS config from policy (#4770)
pchila Jun 12, 2024
3df9f8b
Fix issue with log_writer panic on line with all spaces (#4910)
blakerouse Jun 12, 2024
6c20730
[windows] if `elastic-agent run` fails, log error to Application Even…
leehinman Jun 12, 2024
249d0b6
Add `IsStandalone()` to agent info, report management mode to gRPC (#…
fearful-symmetry Jun 12, 2024
5927401
[main][Automation] Update versions (#4917)
github-actions[bot] Jun 13, 2024
fd8d1ee
[CI] Monorepo diff plugin for integration tests (#4906)
pazone Jun 13, 2024
a206cf7
Fix log level value reported by Agent to Fleet (#4838)
pchila Jun 13, 2024
7f6478b
Unhide `--unprivileged` and mark it as beta. (#4914)
blakerouse Jun 13, 2024
6e55d65
Repoint kardianos/service to fork elastic/kardianos-service (#4859)
ycombinator Jun 13, 2024
1f3ddcd
Increase removal timeout when uninstall (#4921)
rdner Jun 13, 2024
840676d
Bump github.com/elastic/gosigar from 0.14.2 to 0.14.3 (#4916)
dependabot[bot] Jun 13, 2024
e8962b0
Revert "Repoint kardianos/service to fork elastic/kardianos-service (…
ycombinator Jun 13, 2024
2b2e8d0
Revert "Fix log level value reported by Agent to Fleet (#4838)" (#4938)
rdner Jun 14, 2024
c929f79
Allow agent to monitor endpoint (#4789)
fearful-symmetry Jun 16, 2024
a5a4a3b
Add Resource Detection processor to OTel mode (#4811)
andrzej-stencel Jun 17, 2024
d79b4ef
[CI] Disabled Github triggers for extended testing (#4943)
pazone Jun 17, 2024
bf9d488
Disable proxy url tests on windows until issue 4913 is solved (#4945)
pchila Jun 17, 2024
baf715e
refactor: drop golang.org/x/exp dependency (#4940)
kruskall Jun 17, 2024
df76af7
simplify packaging pre-requisites (#4912)
codefromthecrypt Jun 18, 2024
4294e55
Bump updatecli/updatecli-action from 2.59.0 to 2.61.0 (#4948)
dependabot[bot] Jun 18, 2024
a510b6c
Bump github.com/elastic/go-docappender/v2 from 2.1.2 to 2.1.4 (#4947)
dependabot[bot] Jun 18, 2024
1a05982
Revert "Revert "Fix log level value reported by Agent to Fleet (#4838…
pchila Jun 18, 2024
d557ebd
Update pull-requests.json (#4949)
ev1yehor Jun 18, 2024
33598b6
Add conn param and conn-skip flag to diagnostics command (#4946)
michel-laterman Jun 18, 2024
ce6da4e
Set correct org and team tags to integration tests resources (#4954)
pchila Jun 19, 2024
4ccdd09
Bump the otel-dependencies group with 35 updates (#4951)
dependabot[bot] Jun 19, 2024
6b78791
Added k8s components to otel distribution (#4908)
michalpristas Jun 20, 2024
6a45256
Introduce agent.monitoring.metrics_period (#4961)
pkoutsovasilis Jun 20, 2024
81e112d
refactor: replace custom atomic types with stdlib atomic (#4963)
kruskall Jun 20, 2024
9bf125b
Remove now unused Beat spec files (#4964)
cmacknz Jun 20, 2024
c6f4133
Allow installing a second agent on the same machine for development (…
cmacknz Jun 20, 2024
b77f435
Bump github.com/elastic/elastic-agent-system-metrics from 0.10.2 to 0…
dependabot[bot] Jun 21, 2024
8a30900
Ensure socket path is < 104 characters when STATE_PATH is set. (#4909)
belimawr Jun 21, 2024
f33b754
Update Elastic Agent docker image to use ubi 9.4 within the Ironbank …
jlind23 Jun 21, 2024
1ca6594
Add Elastic Infra Metrics processor to `otel` mode (#4968)
andrzej-stencel Jun 21, 2024
124ddef
Bump github.com/elastic/go-licenser from 0.4.1 to 0.4.2 (#4934)
dependabot[bot] Jun 21, 2024
5664fa4
Added `httpcheckreceiver`, `otlphttpexporter` and `spanmetricsconnect…
michalpristas Jun 21, 2024
2d83f6b
[CI] Integration tests matrix pipeline resource (#4957)
pazone Jun 24, 2024
00d7268
[CI] Relaxed permissions for extended testing pipeline (#4970)
pazone Jun 24, 2024
c79c509
Remove unneeded infof line (#4986)
fearful-symmetry Jun 24, 2024
306845e
Bump github.com/elastic/elastic-agent-libs from 0.9.12 to 0.9.13 (#4987)
dependabot[bot] Jun 24, 2024
92eeced
Bump github.com/elastic/elastic-agent-client/v7 from 7.11.0 to 7.12.0…
dependabot[bot] Jun 24, 2024
609b1c5
Remove unused section (#4182)
ycombinator Jun 24, 2024
6cca4a3
Bump github.com/elastic/opentelemetry-lib from 0.3.0 to 0.4.0 (#4992)
dependabot[bot] Jun 24, 2024
23e4f79
Bump github.com/elastic/elastic-agent-client/v7 from 7.12.0 to 7.13.0…
dependabot[bot] Jun 24, 2024
ce5d51c
Bump github.com/elastic/opentelemetry-collector-components/processor/…
dependabot[bot] Jun 25, 2024
727eb6a
Make `mage integration:auth` work again (#4996)
ycombinator Jun 25, 2024
b4af28b
[CI] Integration tests matrix pipeline (#4959)
pazone Jun 25, 2024
1837e00
[main][Automation] Update versions (#4936)
github-actions[bot] Jun 25, 2024
eca8da7
Adding kustomize templates for k8s onboarding (#4754)
gizas Jun 26, 2024
bd1aba8
[Kubernetes Provider] Fix namespace filter on pod and service watcher…
constanca-m Jun 26, 2024
4a78e5e
[main][Automation] Update versions (#5004)
github-actions[bot] Jun 26, 2024
b4877f5
refactor the state store to use JSON (#4441)
AndersonQ Jun 27, 2024
17137fb
[Heartbeat] Upgrade node to latest LTS v18.20.3 (#5010)
emilioalvap Jun 27, 2024
9879afa
report privileged mode to gRPC (#4991)
fearful-symmetry Jun 27, 2024
21781d7
Add http status code check in testFleetConfig (#4905)
pchila Jun 28, 2024
9861bf1
[otel] Add basic configuration samples (#5002)
michalpristas Jun 28, 2024
1d7b865
"install -f" uses exec to uninstall an existing agent (#4965)
michel-laterman Jun 28, 2024
6a0f7c1
add process dump after failed install (#4942)
pchila Jul 1, 2024
4d912e1
Update K8s version to 1.30 (#5008)
MichaelKatsoulis Jul 1, 2024
09a2a83
Updated ES Exporter to point to hash (#5022)
michalpristas Jul 1, 2024
1622730
Add retry to DownloadPackage (#5017)
blakerouse Jul 1, 2024
8921f63
Bump the otel-dependencies group with 37 updates (#5028)
dependabot[bot] Jul 2, 2024
5c44e02
docs: fix typos and repetition in test framework dev guide (#5024)
andrzej-stencel Jul 2, 2024
c46a379
Write `container-paths.yml` into the `STATE_PATH` (#4995)
blakerouse Jul 2, 2024
0e7a211
[Ind Agent] Update packaging to properly package from manifest if giv…
dwhyrock Jul 2, 2024
f858169
Fix connection info socket path that affects DEB/RPM installs (#5031)
aleksmaus Jul 2, 2024
8aa3477
Fix indefinite memory and CPU consumption when waiting fleet to be re…
AndersonQ Jul 2, 2024
4b7c054
Update to golang 1.22. (#5036)
blakerouse Jul 2, 2024
3b7e584
Add ability to escape variable expansion in policy (#5035)
blakerouse Jul 2, 2024
026e3f5
Bump github.com/elastic/opentelemetry-collector-components/processor/…
dependabot[bot] Jul 3, 2024
11cca4b
Bump the otel-dependencies group with 28 updates (#5041)
dependabot[bot] Jul 3, 2024
6328d4b
Updated config files, removed redundant ones (#5030)
michalpristas Jul 3, 2024
db40ac2
Conditional runtime server for otel mode (#5018)
michalpristas Jul 3, 2024
a1fc480
improve the enroll sub command help (#5048)
AndersonQ Jul 3, 2024
8e35021
Remove artifacts from deprecated Elastic Endpoint in K8s project (#4081)
norrietaylor Jul 4, 2024
2ac8064
[Release] add-backport-next (#5057)
elastic-vault-github-plugin-prod[bot] Jul 4, 2024
b3fa3b8
Bump github.com/elastic/go-docappender/v2 from 2.1.4 to 2.2.0 (#5054)
dependabot[bot] Jul 4, 2024
1063e80
Updated es infra processor and dependabot rules to include further up…
michalpristas Jul 4, 2024
61b4d7f
[Automation] Bump Golang version to 1.22.5 (#5065)
github-actions[bot] Jul 4, 2024
7476517
[main][Automation] Update versions (#5067)
github-actions[bot] Jul 5, 2024
e46bc35
Fix wrong binary for setting capabilities (#5070)
rdner Jul 5, 2024
51edd17
Remove use of artifacts-api.elastic.co and its client (#5050)
rdner Jul 5, 2024
cf031f9
Update event logger output via Fleet
belimawr Jun 7, 2024
a5095d7
fix typo
belimawr Jun 11, 2024
6b05ff6
remove blank lines
belimawr Jun 13, 2024
70a675b
Fix typo on env var and add tests
belimawr Jun 13, 2024
5d61e04
clean up tests
belimawr Jun 25, 2024
8ae48cb
Add changelog
belimawr Jun 25, 2024
89e268c
fix lint warning
belimawr Jul 1, 2024
4b6b0f7
Add tests for changing the events log output via Fleet
belimawr Jul 5, 2024
e71a6a4
Improve names and code documentation
belimawr Jul 5, 2024
9ee0ac7
move functions around
belimawr Jul 5, 2024
ac85520
Set capabilities in the builder Docker image instead of the final (#5…
rdner Jul 6, 2024
803b362
Add GH vault plugin bot to allowed list (#5069)
ev1yehor Jul 8, 2024
9b9102f
Bump github.com/elastic/opentelemetry-collector-components/processor/…
dependabot[bot] Jul 8, 2024
b754c97
Updated elasticinframetricsprocessor to 0.7.0 (#5080)
michalpristas Jul 8, 2024
097787f
Inject `HTTPS_PROXY/HTTP_PROXY` env var into endpoint elasticsearch o…
michel-laterman Jul 8, 2024
79b0de9
Force enrol on TestEventLogOutputConfiguredViaFleet
belimawr Jul 8, 2024
f36fbed
Fix lint issue
belimawr Jul 8, 2024
b558c43
[main][Automation] Update versions (#5085)
github-actions[bot] Jul 9, 2024
1789278
Update make check-ci command to support kustomize manifest updates (#…
gizas Jul 9, 2024
f49e1d8
Bump the version on main to 8.16.0 (#5056)
elastic-vault-github-plugin-prod[bot] Jul 9, 2024
d19603b
feat: upgrade go agent to v2 (#4939)
kruskall Jul 9, 2024
8163043
refactor: bump elastic/e2e-testing and completely remove go agent v1 …
kruskall Jul 9, 2024
ed1ea78
Merge branch 'main' into changing-logging-config-via-fleet
pierrehilbert Jul 10, 2024
e93b003
Update go.mod
pierrehilbert Jul 10, 2024
c9c3b54
Update go.sum
pierrehilbert Jul 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 5 additions & 5 deletions .agent-versions.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"testVersions": [
"8.14.0-SNAPSHOT",
"8.13.5-SNAPSHOT",
"8.15.0-SNAPSHOT",
"8.14.3-SNAPSHOT",
"8.14.2",
"8.13.4",
"8.12.2",
"7.17.22-SNAPSHOT",
"7.17.21"
"7.17.23-SNAPSHOT",
"7.17.22"
]
}
3 changes: 2 additions & 1 deletion .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ if [[ "$BUILDKITE_PIPELINE_SLUG" == "elastic-agent-package" ]]; then
fi
fi

if [[ "$BUILDKITE_PIPELINE_SLUG" == "elastic-agent-extended-testing" && "$BUILDKITE_STEP_KEY" == *"integration-tests"* ]]; then
if [[ "$BUILDKITE_STEP_KEY" == *"integration-tests"* ]]; then
echo "Setting credentials"
# Set GCP credentials
export GOOGLE_APPLICATION_GCP_SECRET=$(retry 5 vault kv get -format=json -field=data ${CI_GCP_OBS_PATH})
echo "${GOOGLE_APPLICATION_GCP_SECRET}" > ./gcp.json
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/hooks/pre-exit
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -eo pipefail

if [[ "$BUILDKITE_PIPELINE_SLUG" == "elastic-agent-extended-testing" && "$BUILDKITE_STEP_KEY" == *"integration-tests"* ]]; then
if [[ "$BUILDKITE_STEP_KEY" == *"integration-tests"* ]]; then
if [[ -z "${WORKSPACE-""}" ]]; then
WORKSPACE=$(git rev-parse --show-toplevel)
fi
Expand Down
16 changes: 16 additions & 0 deletions .buildkite/pipeline.integration-test-matrix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json

env:
DOCKER_REGISTRY: "docker.elastic.co"
VAULT_PATH: "kv/ci-shared/observability-ingest/cloud/gcp"

steps:
- label: "Integration test matrix"
key: "integration-tests-matrix"
command: ".buildkite/scripts/steps/integration_tests.sh stateful integration:matrix"
artifact_paths:
- "build/TEST-**"
- "build/diagnostics/*"
agents:
provider: "gcp"
machineType: "n1-standard-8"
56 changes: 52 additions & 4 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ steps:
matrix:
setup:
k8s_version:
- "1.29.0"
- "1.28.0"
- "1.27.3"
- "1.26.6"
- "1.30.0"
- "1.29.4"
- "1.28.9"
- "1.27.13"
retry:
manual:
allowed: true
Expand Down Expand Up @@ -232,3 +232,51 @@ steps:
image: "family/core-ubuntu-2204"
env:
- GH_VERSION=2.4.0

# Trigger for pull requests
- label: "Trigger Integration tests for Pull request"
if: |
(build.pull_request.id != null && !build.env("GITHUB_PR_LABELS") =~ /skip-it/) ||
build.env("GITHUB_PR_TRIGGER_COMMENT") =~ /.*extended.*/

plugins:
- monorepo-diff#v1.0.1:
diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD"
watch:
- path:
- internal/
- dev-tools/
- pkg/
- testing/
- version/
- specs/
- .agent-versions.json
- .go-version
- .package-version
- go.mod
- go.sum
- magefile.go
- main.go

- .buildkite/integration.pipeline.yml
- .buildkite/pipeline.yml
- .buildkite/scripts/
- .buildkite/hooks/

config:
trigger: "elastic-agent-extended-testing"
build:
commit: "${BUILDKITE_COMMIT}"
branch: "${BUILDKITE_BRANCH}"
env:
- BUILDKITE_PULL_REQUEST=${BUILDKITE_PULL_REQUEST}
- BUILDKITE_PULL_REQUEST_BASE_BRANCH=${BUILDKITE_PULL_REQUEST_BASE_BRANCH}
- GITHUB_PR_LABELS=${GITHUB_PR_LABELS}

# Trigger for branches
- label: "Triggering Integration tests for branches"
if: build.pull_request.id == null
trigger: "elastic-agent-extended-testing"
build:
commit: "${BUILDKITE_COMMIT}"
branch: "${BUILDKITE_BRANCH}"
29 changes: 6 additions & 23 deletions .buildkite/pull-requests.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,23 @@
"pipelineSlug": "elastic-agent",
"allow_org_users": true,
"allowed_repo_permissions": ["admin", "write"],
"allowed_list": ["dependabot[bot]", "mergify[bot]"],
"allowed_list": ["dependabot[bot]", "mergify[bot]", "github-actions[bot]", "elastic-vault-github-plugin-prod[bot]"],
"set_commit_status": true,
"build_on_commit": true,
"build_on_comment": true,
"trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:this|it))|^/test$",
"always_trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:this|it))|^/test$",
"trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:this|it|extended))|^/test\\W*(?:extended|)",
"always_trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:this|it|extended))|^/test\\W*(?:extended|)",
"skip_ci_labels": [ "skip-ci" ],
"skip_target_branches": [ ],
"skip_ci_on_only_changed": [ "^.ci/", "^.github/", "^changelog", "^docs/", "\\.md$", "^docker-compose.yml", "^.pre-commit-config.yaml", "skaffold.yaml", "^Dockerfile.skaffold", "^Dockerfile"],
"always_require_ci_on_changed": [ ]
},
{
"enabled": true,
"build_drafts": false,
"pipelineSlug": "elastic-agent-extended-testing",
"allow_org_users": true,
"allowed_repo_permissions": ["admin", "write"],
"allowed_list": ["dependabot[bot]", "mergify[bot]"],
"set_commit_status": true,
"build_on_commit": true,
"build_on_comment": true,
"trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:extended))|^/test extended$",
"always_trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:extended))|^/test extended$",
"skip_ci_labels": [ "skip-ci", "skip-it" ],
"skip_target_branches": [ ],
"skip_ci_on_only_changed": [ "^.ci/", "^.github/", "^changelog", "^docs/", "\\.md$", "^sonar-project.properties", "^docker-compose.yml", "^.pre-commit-config.yaml", "skaffold.yaml", "^Dockerfile.skaffold", "^Dockerfile"],
"skip_ci_on_only_changed": [ "^.ci/", "^changelog", "^docs/", "\\.md$", "^docker-compose.yml", "^.pre-commit-config.yaml", "skaffold.yaml", "^Dockerfile.skaffold", "^Dockerfile"],
"always_require_ci_on_changed": [ ]
},
{
"enabled": true,
"pipelineSlug": "elastic-agent-package",
"allow_org_users": true,
"allowed_repo_permissions": ["admin", "write"],
"allowed_list": [],
"allowed_list": ["dependabot[bot]", "mergify[bot]", "elastic-vault-github-plugin-prod[bot]"],
"set_commit_status": false,
"build_on_commit": false,
"build_on_comment": true,
Expand All @@ -54,7 +37,7 @@
"pipelineSlug": "elastic-agent-binary-dra",
"allow_org_users": true,
"allowed_repo_permissions": ["admin", "write"],
"allowed_list": [],
"allowed_list": ["dependabot[bot]", "mergify[bot]", "elastic-vault-github-plugin-prod[bot]"],
"set_commit_status": false,
"build_on_commit": false,
"build_on_comment": true,
Expand Down
5 changes: 4 additions & 1 deletion .buildkite/scripts/steps/sync-k8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ make ci-clone-kibana-repository
cp Makefile ./kibana
cd kibana
echo "--- Create Kibana PR"
make ci-create-kubernetes-templates-pull-request
make ci-create-kubernetes-templates-pull-request

echo "--- [File Update] Kustomize-Tempates"
GENERATEKUSTOMIZE=true make ci-create-kustomize
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ updates:
- dependency-name: "github.com/elastic/*"
- dependency-name: "go.opentelemetry.io/collector/*"
- dependency-name: "github.com/open-telemetry/opentelemetry-collector-contrib/*"
- dependency-name: "github.com/elastic/opentelemetry-collector-components/*"
reviewers:
- "elastic/elastic-agent-control-plane"
open-pull-requests-limit: 10
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/bump-agent-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ else
echo "Another PR for $GITHUB_REF_NAME is in review, skipping..."
exit 0
fi
# the mage target above requires to be on a release branch
# so, the new branch should not be created before the target is run
git checkout -b update-agent-versions-$GITHUB_RUN_ID
git add .agent-versions.json .package-version

nl=$'\n' # otherwise the new line character is not recognized properly
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/bump-agent-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ jobs:
with:
go-version: 1.21

- name: Set up branch
run: git checkout -b update-agent-versions-$GITHUB_RUN_ID
- name: Set git config
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"

- name: Install mage
uses: magefile/mage-action@v3
Expand Down Expand Up @@ -83,4 +85,3 @@ jobs:
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_MESSAGE: "Update for Elastic Agent versions has been created: ${{ steps.update.outputs.pr }}"

2 changes: 1 addition & 1 deletion .github/workflows/bump-golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v4

- name: Install Updatecli in the runner
uses: updatecli/updatecli-action@fa41baa922561b436c449de1a0bd1f5bd768248c # v0.76.1
uses: updatecli/updatecli-action@eb158f6fd9e425b940a6750d6318f98e050ac390 # v0.76.1

- name: Run Updatecli in Apply mode
run: updatecli apply --config .github/updatecli-bump-golang.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fragment-in-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
if: "!contains(github.event.pull_request.labels.*.name, 'skip-changelog') && !contains(github.event.pull_request.labels.*.name, 'backport')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: .go-version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: lint
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/post-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.21.10
1.22.5
8 changes: 4 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ linters-settings:

gosimple:
# Select the Go version to target. The default is '1.13'.
go: "1.21.10"
go: "1.22.5"

nakedret:
# make an issue if func has more lines of code than this setting and it has naked returns; default is 30
Expand All @@ -136,17 +136,17 @@ linters-settings:

staticcheck:
# Select the Go version to target. The default is '1.13'.
go: "1.21.10"
go: "1.22.5"
checks: ["all"]

stylecheck:
# Select the Go version to target. The default is '1.13'.
go: "1.21.10"
go: "1.22.5"
checks: ["all"]

unused:
# Select the Go version to target. The default is '1.13'.
go: "1.21.10"
go: "1.22.5"

gosec:
excludes:
Expand Down
13 changes: 13 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -319,3 +319,16 @@ pull_request_rules:
labels:
- "backport"
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"
- name: backport patches to 8.15 branch
conditions:
- merged
- label=backport-v8.15.0
actions:
backport:
assignees:
- "{{ author }}"
branches:
- "8.15"
labels:
- "backport"
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG GO_VERSION=1.21.10
ARG GO_VERSION=1.22.5
FROM circleci/golang:${GO_VERSION}


Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.skaffold
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG GO_VERSION=1.21.10
ARG GO_VERSION=1.22.5
ARG crossbuild_image="docker.elastic.co/beats-dev/golang-crossbuild"
ARG AGENT_VERSION=8.9.0-SNAPSHOT
ARG AGENT_IMAGE="docker.elastic.co/beats/elastic-agent"
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ notice:
check-ci:
@mage -v check
@$(MAKE) notice
@GENERATEKUSTOMIZE=true $(MAKE) -C deploy/kubernetes generate-k8s
@$(MAKE) -C deploy/kubernetes generate-k8s
@$(MAKE) check-no-changes

Expand Down
Loading