This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
chore: use preconfigured policy for fleet-server's default policy #2111
Merged
mdelapenya
merged 3 commits into
elastic:main
from
mdelapenya:2039-remove-default-policies
Feb 8, 2022
Merged
chore: use preconfigured policy for fleet-server's default policy #2111
mdelapenya
merged 3 commits into
elastic:main
from
mdelapenya:2039-remove-default-policies
Feb 8, 2022
Conversation
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
mdelapenya
added
Team:Automation
Label for the Observability productivity team
Team:Fleet
Label for the Fleet team
backport-v8.0.0
Automated backport with mergify
labels
Feb 8, 2022
We'd probably need to merge this one and merge the latest automated bump |
juliaElastic
approved these changes
Feb 8, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
adam-stokes
approved these changes
Feb 8, 2022
Let's merge this one, backport to 8.0 and, if needed, backport to 7.17 and 7.16 |
mergify bot
pushed a commit
that referenced
this pull request
Feb 8, 2022
) (cherry picked from commit 5ed1aff) # Conflicts: # e2e/_suites/fleet/fleet.go
💔 Tests Failed
Expand to view the summary
Build stats
Test stats 🧪
Test errorsExpand to view the tests failures> Show only the first 10 test failures
|
mdelapenya
added a commit
to mdelapenya/e2e-testing
that referenced
this pull request
Feb 10, 2022
…for fleet-server's default policy (elastic#2116)" This reverts commit 9b00e41.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
backport-v8.0.0
Automated backport with mergify
Team:Automation
Label for the Observability productivity team
Team:Fleet
Label for the Fleet team
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR adds preconfigured policies for Fleet Server in all kibana.config.yml files used in the tests (the default and the one for the pre-configured policies scenario)
Because we are setting the fleet-server policy from the config, we are now hardcoding the policy name and ID in the bootstrap process of fleet-server (that happens right after the stack starts), not getting it from Kibana API for a default policy.
We are also adding a deprecation comment in the GetDefaultPolicy method, as it's not used anymore. We could simply remove it, but I prefer doing it in a separate PR.
Why is it important?
Fleet team is removing default policies
Checklist
make unit-test
), and they are passing locallymake notice
in the proper directory)Author's Checklist
How to test this PR locally
Because the current stack version is not updated, we need to set a more recent one (at least 4 days ago, where a bug was fixed on Kibana side elastic/kibana#124363):
$ TAGS="blah" TIMEOUT_FACTOR=3 LOG_LEVEL=TRACE DEVELOPER_MODE=true ELASTIC_APM_ACTIVE=false STACK_VERSION=8.1.0-98e72485-SNAPSHOT BEAT_VERSION=8.1.0-98e72485-SNAPSHOT PROVIDER=docker make -C e2e/_suites/fleet functional-test^C
The
blah
tag is a non-existing one to avoid launching any scenario, but instead simply bootstrapping the stack, which happens in the before suite hook. The result would be the 3 containers for the stack (es, kbn and fleet-server) without log errors, and after checking the Kibana UI, verify that fleet-server is enrolled.Related issues