Skip to content

Fix elastic-agent-service Docker container entrypoint#5892

Merged
cmacknz merged 4 commits intoelastic:mainfrom
cmacknz:fix-elastic-agent-service-container-entrypoint
Oct 30, 2024
Merged

Fix elastic-agent-service Docker container entrypoint#5892
cmacknz merged 4 commits intoelastic:mainfrom
cmacknz:fix-elastic-agent-service-container-entrypoint

Conversation

@cmacknz
Copy link
Member

@cmacknz cmacknz commented Oct 30, 2024

The elastic-agent-service container followed the template for the elastic-agent-cloud container. This isn't quite correct, because while the service container will run exclusively in cloud it is otherwise meant to be used as a standard Elastic Agent docker container with the standard entrypoint.

The image will be deployed in cloud, but the runtime requirements are
that of the standard Docker image.
@cmacknz cmacknz added Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team skip-changelog backport-8.x Automated backport to the 8.x branch with mergify backport-8.16 Automated backport with mergify labels Oct 30, 2024
@cmacknz cmacknz self-assigned this Oct 30, 2024
@cmacknz cmacknz requested a review from a team as a code owner October 30, 2024 17:35
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@cmacknz
Copy link
Member Author

cmacknz commented Oct 30, 2024

Added both original reviewers from #5349 which introduced this image since Blake is currently out.

Copy link
Contributor

@pkoutsovasilis pkoutsovasilis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the original PR I did review the changes that affected the existing k8s integration tests. Full disclosure, I am not entirely sure why the the command and args had to change for the TestKubernetesAgentService but from what I can tell there are not needed. Thus LGTM 🙂

Copy link
Member

@pchila pchila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cmacknz cmacknz enabled auto-merge (squash) October 30, 2024 20:32
@elastic-sonarqube
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@cmacknz cmacknz merged commit 0cdfef5 into elastic:main Oct 30, 2024
mergify bot pushed a commit that referenced this pull request Oct 30, 2024
* Stop treating the service image like cloud.

The image will be deployed in cloud, but the runtime requirements are
that of the standard Docker image.

* Remove elastic-agent-service command customization.

* Remove unnecessary 'or'

(cherry picked from commit 0cdfef5)
mergify bot pushed a commit that referenced this pull request Oct 30, 2024
* Stop treating the service image like cloud.

The image will be deployed in cloud, but the runtime requirements are
that of the standard Docker image.

* Remove elastic-agent-service command customization.

* Remove unnecessary 'or'

(cherry picked from commit 0cdfef5)
pierrehilbert pushed a commit that referenced this pull request Oct 31, 2024
* Stop treating the service image like cloud.

The image will be deployed in cloud, but the runtime requirements are
that of the standard Docker image.

* Remove elastic-agent-service command customization.

* Remove unnecessary 'or'

(cherry picked from commit 0cdfef5)

Co-authored-by: Craig MacKenzie <craig.mackenzie@elastic.co>
@cmacknz cmacknz deleted the fix-elastic-agent-service-container-entrypoint branch October 31, 2024 13:18
cmacknz added a commit that referenced this pull request Oct 31, 2024
* Stop treating the service image like cloud.

The image will be deployed in cloud, but the runtime requirements are
that of the standard Docker image.

* Remove elastic-agent-service command customization.

* Remove unnecessary 'or'

(cherry picked from commit 0cdfef5)

Co-authored-by: Craig MacKenzie <craig.mackenzie@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-8.x Automated backport to the 8.x branch with mergify backport-8.16 Automated backport with mergify skip-changelog Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants