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

[v2] Merge v2 feature branch into main #1701

Merged
merged 37 commits into from
Nov 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
837db32
[v2] Add v2 component specification and validation. (#502)
blakerouse Jun 3, 2022
3b9a723
Add component spec command to validate component specifications. (#510)
blakerouse Jun 3, 2022
7b2ec07
Merge branch 'main' into feature-arch-v2
blakerouse Jun 14, 2022
7bb4acd
[v2] Calculate the expected runtime components from policy (#550)
blakerouse Jun 15, 2022
2679c82
Initial Flat Structure (#544)
michalpristas Jun 21, 2022
7f6b42a
Generate checksum file for components (#604)
michalpristas Jun 24, 2022
8812fc9
V2 Runtime Component Manager (#645)
blakerouse Jul 13, 2022
5acdc40
[v2] Use the v2 components runtime as the core of the Elastic Agent (…
blakerouse Jul 26, 2022
e141de5
[v2] Delete unused code from refactor (#777)
blakerouse Jul 26, 2022
ff667df
[v2] Delete more unused code from v2 transition (#790)
blakerouse Jul 27, 2022
9b68ea4
[v2] Merge July 27th main into v2 feature branch (#789)
blakerouse Jul 28, 2022
2cc2338
[v2] Fix inspect command (#805)
blakerouse Aug 2, 2022
2705093
Expand check-in payload for V2 (#916)
aleksmaus Aug 16, 2022
d56e3f5
[v2] Update protocol to use new UnitExpectedConfig. (#850)
blakerouse Aug 18, 2022
9bba975
Fix action dispatching that was using ActionType instead of InputType…
aleksmaus Aug 24, 2022
43ad01d
Fix bootstrapping a Fleet Server with v2. (#1010)
blakerouse Aug 29, 2022
dee2403
Query just related files on build (#1045)
michalpristas Aug 30, 2022
712b300
Update main to 8.5.0 (#793) (#1050)
mergify[bot] Aug 30, 2022
5f1e54f
Create archive directory if it doesn't exist. (#1058)
cmacknz Aug 31, 2022
6ff50ac
fixed docker build (#1105)
michalpristas Sep 7, 2022
f95c9ed
V2 command work dir (#1061)
blakerouse Sep 7, 2022
5051218
[v2] Move queue management to dispatcher (#1109)
michel-laterman Sep 15, 2022
e91e3ce
Fix [V2]: Elastic Agent Install is broken. (#1331)
aleksmaus Sep 29, 2022
e6a038e
Fix agent shutdown on SIGINT (#1258)
aleksmaus Sep 29, 2022
9d1cea3
[v2] Re-enable diagnostics for Elastic Agent and all components (#1140)
blakerouse Sep 29, 2022
90523cc
Check and create downloads dir before using (#1410)
michalpristas Oct 5, 2022
bfc490a
[v2] Add upgrade action retry (#1219)
michel-laterman Oct 14, 2022
ec83c2c
V1 metrics monitoring for V2 (#1487)
michalpristas Oct 19, 2022
0602091
[v2] Merge main on Oct. 18 (#1557)
blakerouse Oct 20, 2022
9420497
Add input name alias for cloudbeat integrations (#1596)
fearful-symmetry Oct 24, 2022
96e071e
Change the stater to include a local flag. (#1308)
michel-laterman Oct 24, 2022
fc3eba3
Service runtime V2 (#1529)
aleksmaus Oct 25, 2022
bd36958
Sync components with state during container start (#1653)
michalpristas Nov 3, 2022
73b3d2e
[V2] Enable support for shippers (#1527)
blakerouse Nov 8, 2022
38c41a9
[v2] Merge main into feature-arch-v2 as of Nov 8 (#1694)
blakerouse Nov 9, 2022
8a36b4e
Merge remote-tracking branch 'upstream/main' into feature-arch-v2
blakerouse Nov 9, 2022
0ef04a9
Remove the files that were originally be removed.
blakerouse Nov 9, 2022
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
  •  
  •  
  •  
14 changes: 4 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ go_env.properties
mage_output_file.go
elastic_agent
fleet.yml
fleet.enc
fleet.enc.lock

# Editor swap files
*.swp
Expand Down Expand Up @@ -52,13 +54,5 @@ elastic-agent.yml.*
fleet.yml
fleet.yml.lock
fleet.yml.old
internal/pkg/agent/operation/tests/scripts/short--1.0.yml
internal/pkg/agent/operation/tests/scripts/configurable-1.0-darwin-x86/configurable
internal/pkg/agent/operation/tests/scripts/servicable-1.0-darwin-x86/configurable
internal/pkg/agent/operation/tests/scripts/configurable-1.0-darwin-x86_64/configurable
internal/pkg/agent/operation/tests/scripts/serviceable-1.0-darwin-x86_64/serviceable
internal/pkg/agent/application/fleet.yml
internal/pkg/agent/transpiler/tests/exec-1.0-darwin-x86_64/exec

# VSCode
/.vscode
pkg/component/fake/component/component
pkg/component/fake/shipper/shipper
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.18.8
ARG GO_VERSION=1.18.7
FROM circleci/golang:${GO_VERSION}


Expand Down
445 changes: 344 additions & 101 deletions NOTICE.txt

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,28 @@ Prerequisites:
- installed [mage](https://github.com/magefile/mage)
- [Docker](https://docs.docker.com/get-docker/)
- [X-pack](https://github.com/elastic/beats/tree/main/x-pack) to pre-exist in the parent folder of the local Git repository checkout
- [elastic-agent-changelog-tool](https://github.com/elastic/elastic-agent-changelog-tool) to add changelog fragments for changelog generation
If you are on a Mac with M1 chip, don't forget to export some docker variable to be able to build for AMD
```
export DOCKER_BUILDKIT=0
export COMPOSE_DOCKER_CLI_BUILD=0
export DOCKER_DEFAULT_PLATFORM=linux/amd64
```

If you are on a Mac with M1 chip, don't forget to export some docker variable to be able to build for AMD
```
export DOCKER_BUILDKIT=0
export COMPOSE_DOCKER_CLI_BUILD=0
export DOCKER_DEFAULT_PLATFORM=linux/amd64
```

If you are on a Mac with M1 chip, don't forget to export some docker variable to be able to build for AMD
```
export DOCKER_BUILDKIT=0
export COMPOSE_DOCKER_CLI_BUILD=0
export DOCKER_DEFAULT_PLATFORM=linux/amd64
```

If you are on a Mac with M1 chip, don't forget to export some docker variable to be able to build for AMD
```
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: bug-fix
summary: Fix a panic caused by a race condition when installing the Elastic Agent.
pr: https://github.com/elastic/elastic-agent/pull/823
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: breaking-change
summary: Upgrade to Go 1.18. Certificates signed with SHA-1 are now rejected. See the Go 1.18 https//tip.golang.org/doc/go1.18#sha1[release notes] for details.
pr: https://github.com/elastic/elastic-agent/pull/832
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: feature
summary: Add `lumberjack` input type to the Filebeat spec.
pr: https://github.com/elastic/elastic-agent/pull/959
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: feature
summary: Add support for hints' based autodiscovery in kubernetes provider.
pr: https://github.com/elastic/elastic-agent/pull/698
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: bug-fix
summary: Fix unintended reset of source URI when downloading components
pr: https://github.com/elastic/elastic-agent/pull/1252
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
kind: bug-fix
summary: Create separate status reporter for local only events so that degraded fleet-checkins no longer affect health on successful fleet-checkins.
issue: https://github.com/elastic/elastic-agent/issues/1157
pr: https://github.com/elastic/elastic-agent/pull/1285
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: feature
summary: Improve logging during upgrades.
pr: https://github.com/elastic/elastic-agent/pull/1287
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: bug-fix
summary: Add success log message after previous checkin failures
pr: https://github.com/elastic/elastic-agent/pull/1327
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Kind can be one of:
# - breaking-change: a change to previously-documented behavior
# - deprecation: functionality that is being removed in a later release
# - bug-fix: fixes a problem in a previous version
# - enhancement: extends functionality but does not break or fix existing behavior
# - feature: new functionality
# - known-issue: problems that we are aware of in a given version
# - security: impacts on the security of a product or a user’s deployment.
# - upgrade: important information for someone upgrading from a prior version
# - other: does not fit into any of the other categories
kind: bug-fix

# Change summary; a 80ish characters long description of the change.
summary: Fix docker provider add_fields processors

# Long description; in case the summary is not enough to describe the change
# this field accommodate a description without length limits.
#description:

# Affected component; a word indicating the component this changeset affects.
component: providers

# PR number; optional; the PR number that added the changeset.
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added.
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number.
# Please provide it if you are adding a fragment for a different PR.
#pr: 1234

# Issue number; optional; the GitHub issue related to this changeset (either closes or is part of).
# If not present is automatically filled by the tooling with the issue linked to the PR number.
#issue: 1234
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
kind: enhancement
summary: Improve logging of Fleet check-in errors.
description: Improve logging of Fleet check-in errors and only report the local state as degraded after two consecutive failed check-ins.
pr: 1477
issue: 1154
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Kind can be one of:
# - breaking-change: a change to previously-documented behavior
# - deprecation: functionality that is being removed in a later release
# - bug-fix: fixes a problem in a previous version
# - enhancement: extends functionality but does not break or fix existing behavior
# - feature: new functionality
# - known-issue: problems that we are aware of in a given version
# - security: impacts on the security of a product or a user’s deployment.
# - upgrade: important information for someone upgrading from a prior version
# - other: does not fit into any of the other categories
kind: bug-fix

# Change summary; a 80ish characters long description of the change.
summary: Fix admin permission check on localized windows

# Long description; in case the summary is not enough to describe the change
# this field accommodate a description without length limits.
#description:

# Affected component; a word indicating the component this changeset affects.
component:

# PR number; optional; the PR number that added the changeset.
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added.
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number.
# Please provide it if you are adding a fragment for a different PR.
pr: 1552

# Issue number; optional; the GitHub issue related to this changeset (either closes or is part of).
# If not present is automatically filled by the tooling with the issue linked to the PR number.
issue: 857
5 changes: 5 additions & 0 deletions changelog/fragments/1666095433-service_runtime_v2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
kind: feature
summary: Service runtime for V2
description: Service runtime for V2, tailored specifically for Endpoint service.
pr: 1529
issue: 1069
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Kind can be one of:
# - breaking-change: a change to previously-documented behavior
# - deprecation: functionality that is being removed in a later release
# - bug-fix: fixes a problem in a previous version
# - enhancement: extends functionality but does not break or fix existing behavior
# - feature: new functionality
# - known-issue: problems that we are aware of in a given version
# - security: impacts on the security of a product or a user’s deployment.
# - upgrade: important information for someone upgrading from a prior version
# - other: does not fit into any of the other categories
kind: feature

# Change summary; a 80ish characters long description of the change.
summary: Add experimental support for running the elastic-agent-shipper

# Long description; in case the summary is not enough to describe the change
# this field accommodate a description without length limits.
#description:

# Affected component; a word indicating the component this changeset affects.
component:

# PR number; optional; the PR number that added the changeset.
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added.
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number.
# Please provide it if you are adding a fragment for a different PR.
pr: 1527

# Issue number; optional; the GitHub issue related to this changeset (either closes or is part of).
# If not present is automatically filled by the tooling with the issue linked to the PR number.
issue: 219
Loading