elastic / elastic-integration-corpus-generator-tool

Command line tool used for generating events corpus dynamically given a specific integration
Other
21 stars 12 forks source link

Updating k8s pod and container templates with no host ips and realistic hostnames #111

Closed gizas closed 9 months ago

gizas commented 11 months ago

TSDB nightly tests demand a more realistic set of data generated. As part of this enhancement we update kubernetes pod and container templates with following:

How to test:

  1. Checkout this PR
  2. Produce pod and container samples:
./elastic-integration-corpus-generator-tool generate-with-template ./assets/templates/kubernetes.pod/gotext.tpl ./assets/templates/kubernetes.pod/fields.yml -c ./assets/templates/kubernetes.pod/configs.yml -y gotext -t 2

./assets/templates/kubernetes.container/gotext.tpl ./assets/templates/kubernetes.container/fields.yml -c ./assets/templates/kubernetes.container/configs.yml -y gotext -t 2

Check that host.ips and host.mac fields are removed Check the node names created and have the same value as hostnames.

Screenshot

Screenshot 2023-10-06 at 1 09 03 PM
aspacca commented 11 months ago

@gizas could you please move the files of each folder inside the schema-b subfolder? thanks :)

gizas commented 11 months ago

@gizas could you please move the files of each folder inside the schema-b subfolder? thanks :)

Done @aspacca

ruflin commented 9 months ago

I assume eventually we will move these files over to the k8s package?

gizas commented 9 months ago

I assume eventually we will move these files over to the k8s package?

This is the purpose of 8443 and 8444

gizas commented 9 months ago

@aspacca and @martijnvg I think this can also be merged now as it has been tested in various places and different PRs. Please any approvals to merge?