Elastic Agent already packages different components for different platforms (os/cpu architecture pairs) but as shown in PR #4584 we have the need to include different components depending also on the package format.
The goal of this issue is to modify the packaging process so we can describe what exactly a given package should contain or exclude and exert better control over the packaging process overall.
Once this issue is implemented the hack introduced in PR #4584 should be replaced with a proper solution that leverages the package specs/component manifests.
Elastic Agent already packages different components for different platforms (os/cpu architecture pairs) but as shown in PR #4584 we have the need to include different components depending also on the package format.
The goal of this issue is to modify the packaging process so we can describe what exactly a given package should contain or exclude and exert better control over the packaging process overall.
Once this issue is implemented the hack introduced in PR #4584 should be replaced with a proper solution that leverages the package specs/component manifests.