-
Notifications
You must be signed in to change notification settings - Fork 726
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
Conversation
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
There was a problem hiding this 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,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Co-authored-by: Michael Morello <[email protected]>
fyi I can't merge this :( |
I enabled auto-merge, this should be merged automatically once the tests are ✅ |
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