-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:elastic/elastic-agent into test/log…
…-error
- Loading branch information
Showing
24 changed files
with
437 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.20.9 | ||
1.20.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ARG GO_VERSION=1.20.9 | ||
ARG GO_VERSION=1.20.10 | ||
FROM circleci/golang:${GO_VERSION} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// begin 8.10.4 relnotes | ||
|
||
[[release-notes-8.10.4]] | ||
== 8.10.4 | ||
|
||
Review important information about the 8.10.4 release. | ||
|
||
|
||
|
||
[discrete] | ||
[[breaking-changes-8.10.4]] | ||
=== Breaking changes | ||
|
||
Breaking changes can prevent your application from optimal operation and | ||
performance. Before you upgrade, review the breaking changes, then mitigate the | ||
impact to your application. | ||
|
||
elastic-agent:: | ||
|
||
[discrete] | ||
[[breaking-3591]] | ||
.`elastic-agent-autodiscover` library has been updated to version 0.6.4, disabling metadata For `kubernetes.deployment` and `kubernetes.cronjob` fields. | ||
[%collapsible] | ||
==== | ||
*Details* + | ||
The `elastic-agent-autodiscover` Kubernetes library by default comes with `add_resource_metadata.deployment=false` and `add_resource_metadata.cronjob=false`. | ||
*Impact* + | ||
Pods that will be created from deployments or cronjobs will not have the extra metadata field for `kubernetes.deployment` or `kubernetes.cronjob`, respectively. This change was made to avoid the memory impact of keeping the feature enabled in big Kubernetes clusters. | ||
For more information, refer to {agent-pull}3591[#3591]. | ||
==== | ||
|
||
|
||
|
||
|
||
|
||
[discrete] | ||
[[new-features-8.10.4]] | ||
=== New features | ||
|
||
The 8.10.4 release adds the following new and notable features. | ||
|
||
|
||
elastic-agent:: | ||
|
||
* Secondary Fallback For Package Signature Verification. {elastic-agent-pull}https://github.com/elastic/elastic-agent/pull/3453[#https://github.com/elastic/elastic-agent/pull/3453] {elastic-agent-issue}https://github.com/elastic/elastic-agent/issues/3264[#https://github.com/elastic/elastic-agent/issues/3264] | ||
+ | ||
Ability to upgrade securely in air-gapped environment where fleet server is the only reachable URI. | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
// end 8.10.4 relnotes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: 8.10.4 | ||
entries: | ||
- kind: feature | ||
summary: Secondary fallback for package signature verification | ||
description: Ability to upgrade securely in air-gapped environment where fleet server is the only reachable URI. | ||
component: elastic-agent | ||
pr: | ||
- https://github.com/elastic/elastic-agent/pull/3453 | ||
issue: | ||
- https://github.com/elastic/elastic-agent/issues/3264 | ||
timestamp: 1695289867 | ||
file: | ||
name: 1695289867-Secondary-fallback-for-package-signature-verification.yaml | ||
checksum: 8f8c39d9eef2f5b6922353bcab9c4ee1b74b1378 | ||
- kind: breaking-change | ||
summary: Elastic-agent-autodiscover to v0.6.4. Disables metadata for deployment and cronjob | ||
description: Elastic-agent-autodiscover library by default comes with add_resource_metadata.deployment=false and add_resource_metadata.cronjob=false. Pods that will be created from deployments or cronjobs will not have the extra metadata field for kubernetes.deployment or kubernetes.cronjob respectively. | ||
component: elastic-agent | ||
pr: | ||
- https://github.com/elastic/elastic-agent/pull/3591 | ||
issue: [] | ||
timestamp: 1697102363 | ||
file: | ||
name: 1697102363-updating_agentautodiscovery_810.yaml | ||
checksum: fe9015185dc4d3fe85f9c2ebf9f47e64e26fc67d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
changelog/fragments/1693403216-Surface-errors-during-Agent's-enroll.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# 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: Surface errors during Agent's enroll process, failing if any happens. | ||
|
||
# Long description; in case the summary is not enough to describe the change | ||
# this field accommodate a description without length limits. | ||
# NOTE: This field will be rendered only for breaking-change and known-issue kinds at the moment. | ||
#description: | ||
|
||
# Affected component; a word indicating the component this changeset affects. | ||
component: install/enroll | ||
|
||
# PR URL; 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: https://github.com/elastic/elastic-agent/pull/3207 | ||
|
||
# Issue URL; 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: https://github.com/owner/repo/1234 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
internal/pkg/agent/application/upgrade/artifact/download/snapshot/downloader_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
// or more contributor license agreements. Licensed under the Elastic License; | ||
// you may not use this file except in compliance with the Elastic License. | ||
|
||
package snapshot | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
|
||
"github.com/elastic/elastic-agent/internal/pkg/agent/application/upgrade/artifact" | ||
"github.com/elastic/elastic-agent/pkg/version" | ||
) | ||
|
||
func TestNonDefaultSourceURI(t *testing.T) { | ||
version, err := version.ParseVersion("8.12.0-SNAPSHOT") | ||
require.NoError(t, err) | ||
|
||
config := artifact.Config{ | ||
SourceURI: "localhost:1234", | ||
} | ||
sourceURI, err := snapshotURI(version, &config) | ||
require.NoError(t, err) | ||
require.Equal(t, config.SourceURI, sourceURI) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.