Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Kubernetes autodiscover suite (backport #1064)#1088

Merged
adam-stokes merged 1 commit into7.xfrom
mergify/bp/7.x/pr-1064
Apr 26, 2021
Merged

Kubernetes autodiscover suite (backport #1064)#1088
adam-stokes merged 1 commit into7.xfrom
mergify/bp/7.x/pr-1064

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Apr 26, 2021

This is an automatic backport of pull request #1064 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/

Adds a new suite to test Kubernetes autodiscover features.
Reproduces some issues with short-living containers affecting Beats before 7.13
and for what we didn't have tests coverage.

It allows to define the scenarios using the gherkin language for feature files.
Scenarios use templates that are mostly kubernetes manifests. A simple system of
options is included to allow to select configuration blocks in these templates.

It uses kubectl to interact with a kubernetes cluster. If no cluster is available, it
starts one with kind. Each scenario is executed in a different namespace, namespace
is destroyed after the scenario is run to clean all created resources.

It currently works only with loads in a single namespace, in a single node, this is
enough to test many autodiscover cases, but it could be extended in the future to cover
multi-node or multi-namespace scenarios.

Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
Co-authored-by: Adam Stokes <51892+adam-stokes@users.noreply.github.com>
(cherry picked from commit c52395d)
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #1088 opened

  • Start Time: 2021-04-26T09:48:48.792+0000

  • Duration: 21 min 53 sec

  • Commit: 5ba4dca

Test stats 🧪

Test Results
Failed 0
Passed 153
Skipped 0
Total 153

Trends 🧪

Image of Build Times

Image of Tests

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 153
Skipped 0
Total 153

@adam-stokes adam-stokes merged commit a024967 into 7.x Apr 26, 2021
@adam-stokes adam-stokes deleted the mergify/bp/7.x/pr-1064 branch April 26, 2021 14:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants