From 0ae358959ba82fbc98db8a8afd70598d73cd4915 Mon Sep 17 00:00:00 2001 From: Michal Pristas Date: Thu, 2 Jul 2020 15:36:54 +0200 Subject: [PATCH] [Ingest Manager] Make Agent beta and Constraints experimental (#19586) * make agent beta * make constraints experimental --- .../elastic-agent/docs/elastic-agent_configuration_example.yml | 2 ++ .../pkg/agent/application/filters/constraints_filter.go | 1 + x-pack/elastic-agent/pkg/agent/warn/warn.go | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/x-pack/elastic-agent/docs/elastic-agent_configuration_example.yml b/x-pack/elastic-agent/docs/elastic-agent_configuration_example.yml index 5673f4e724e1..261862e7e7f2 100644 --- a/x-pack/elastic-agent/docs/elastic-agent_configuration_example.yml +++ b/x-pack/elastic-agent/docs/elastic-agent_configuration_example.yml @@ -110,6 +110,7 @@ inputs: name: epm/nginx version: 1.7.0 dataset.namespace: prod + # constraints are still Experimental and should not be used in production. constraints?: # Contraints look are not final - os.platform: { in: "windows" } @@ -129,6 +130,7 @@ inputs: name: epm/nginx version: 1.7.0 dataset.namespace: prod + # constraints are still Experimental and should not be used in production. constraints?: # Contraints look are not final - os.platform: { in: "windows" } diff --git a/x-pack/elastic-agent/pkg/agent/application/filters/constraints_filter.go b/x-pack/elastic-agent/pkg/agent/application/filters/constraints_filter.go index c891cefb056f..d9abd6c7aa31 100644 --- a/x-pack/elastic-agent/pkg/agent/application/filters/constraints_filter.go +++ b/x-pack/elastic-agent/pkg/agent/application/filters/constraints_filter.go @@ -28,6 +28,7 @@ var ( ) // ConstraintFilter filters ast based on included constraints. +// constraints are still Experimental and should not be used in production. func ConstraintFilter(log *logger.Logger, ast *transpiler.AST) error { // get datasources inputsNode, found := transpiler.Lookup(ast, inputsKey) diff --git a/x-pack/elastic-agent/pkg/agent/warn/warn.go b/x-pack/elastic-agent/pkg/agent/warn/warn.go index c3b97079aa11..03d746992f6e 100644 --- a/x-pack/elastic-agent/pkg/agent/warn/warn.go +++ b/x-pack/elastic-agent/pkg/agent/warn/warn.go @@ -11,7 +11,7 @@ import ( "github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/core/logger" ) -const message = "The Elastic Agent is currently in Experimental and should not be used in production" +const message = "The Elastic Agent is currently in BETA and should not be used in production" // LogNotGA warns the users in the log that the Elastic Agent is not GA. func LogNotGA(log *logger.Logger) {