Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(apm-server): use default image for ubi #8374

Merged
merged 6 commits into from
Jan 8, 2025

Conversation

kruskall
Copy link
Member

in 9.x ubi is the default and there's no -ubi image

use a switch so other images can be added in a flexible way

Related to elastic/apm-server#13872

in 9.x ubi is the default and there's no -ubi image

use a switch so other images can be added in a flexible way
@botelastic botelastic bot added the triage label Dec 23, 2024
@kruskall kruskall requested a review from thbkrkr December 23, 2024 19:44
Copy link
Contributor

@barkbay barkbay left a comment

Choose a reason for hiding this comment

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

Let's maybe add some unit tests?

diff --git a/pkg/controller/common/container/container_test.go b/pkg/controller/common/container/container_test.go
index e2c088326..3a1e969de 100644
--- a/pkg/controller/common/container/container_test.go
+++ b/pkg/controller/common/container/container_test.go
@@ -28,6 +28,20 @@ func TestImageRepository(t *testing.T) {
                        version: "7.5.2",
                        want:    testRegistry + "/apm/apm-server:7.5.2",
                },
+               {
+                       name:    "APM server UBI image before 9.x",
+                       image:   APMServerImage,
+                       version: "8.99.99",
+                       suffix:  "-ubi",
+                       want:    testRegistry + "/apm/apm-server-ubi:8.99.99",
+               },
+               {
+                       name:    "APM server UBI image since 9.x",
+                       image:   APMServerImage,
+                       version: "9.0.0",
+                       suffix:  "-ubi",
+                       want:    testRegistry + "/apm/apm-server:9.0.0",
+               },
                {
                        name:    "Kibana image",
                        image:   KibanaImage,

@thbkrkr thbkrkr added >enhancement Enhancement of existing functionality v3.0.0 (next) labels Jan 7, 2025
@botelastic botelastic bot removed the triage label Jan 7, 2025
@kruskall kruskall requested a review from barkbay January 7, 2025 14:42
Copy link
Contributor

@barkbay barkbay left a comment

Choose a reason for hiding this comment

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

LGTM!

pkg/controller/common/container/container.go Outdated Show resolved Hide resolved
@kruskall
Copy link
Member Author

kruskall commented Jan 8, 2025

You’re not authorized to merge this pull request.

fyi I can't merge this :(

@barkbay barkbay enabled auto-merge (squash) January 8, 2025 06:25
@barkbay
Copy link
Contributor

barkbay commented Jan 8, 2025

fyi I can't merge this :(

I enabled auto-merge, this should be merged automatically once the tests are ✅

@barkbay barkbay merged commit 9cc8ab7 into elastic:main Jan 8, 2025
5 checks passed
@kruskall kruskall deleted the feat/apm-server-9-default-ubi branch January 8, 2025 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement Enhancement of existing functionality v3.0.0 (next)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants