-
Notifications
You must be signed in to change notification settings - Fork 28
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
Improve s2i properties to use the standard ones #309
Conversation
run tests |
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.
Just a single cosmetic change
private void withBaseImageProperties(List<String> args) { | ||
// Resolve s2i property | ||
boolean isNativeTest = isNativeTest(); | ||
PropertyLookup s2iImageProperty = isNativeTest ? QUARKUS_NATIVE_S2I : QUARKUS_JVM_S2I; |
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.
Could you move on this PropertyLookup s2iImageProperty = ...
to a private String getS2iImage()
as you did in
BuildOpenShiftQuarkusApplicationManagedResource
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.
In BuildOpenShiftQuarkusApplicationManagedResource, we only need the image value, but here we need the image value + the property key, so we can't do this.
7d4c951
to
4b7c376
Compare
run tests |
4b7c376
to
4d6b282
Compare
run tests |
The properties `ts.global.s2i.quarkus.jvm.builder.image` and `ts.global.s2i.quarkus.native.builder.image` properties have been deleted in favour of the Quarkus official ones: - quarkus.s2i.base-jvm-image - quarkus.s2i.base-native-image Moreover, when using the OpenShift extension, if the user does not supply the `quarkus.openshift.base-xxx-image`, the framework will use the ones from `quarkus.s2i.base-xxx-image`.
4d6b282
to
e04adbd
Compare
run tests |
and use recommended image[2] as a base for s2i [1] quarkus-qe/quarkus-test-framework#309 [2] https://github.com/quarkusio/quarkus-images#quarkus-images-1: ``` ubi-quarkus-native-binary-s2i - S2I builder image for OpenShift taking a pre-built native executable as input ```
- Rename properties - use recommended image[2] as a base for native s2i - use the same base jvm image as in framework[3] [1] quarkus-qe/quarkus-test-framework#309 [2] https://github.com/quarkusio/quarkus-images#quarkus-images-1: ``` ubi-quarkus-native-binary-s2i - S2I builder image for OpenShift taking a pre-built native executable as input ``` [3] https://github.com/quarkus-qe/quarkus-test-framework/blob/main/quarkus-test-core/src/main/java/io/quarkus/test/services/quarkus/model/QuarkusProperties.java#L26
- Rename properties - use recommended image[2] as a base for native s2i - use the same base jvm image as in framework[3] [1] quarkus-qe/quarkus-test-framework#309 [2] https://github.com/quarkusio/quarkus-images#quarkus-images-1: ``` ubi-quarkus-native-binary-s2i - S2I builder image for OpenShift taking a pre-built native executable as input ``` [3] https://github.com/quarkus-qe/quarkus-test-framework/blob/main/quarkus-test-core/src/main/java/io/quarkus/test/services/quarkus/model/QuarkusProperties.java#L26
The properties
ts.global.s2i.quarkus.jvm.builder.image
andts.global.s2i.quarkus.native.builder.image
properties have been deleted in favour of the Quarkus official ones:Moreover, when using the OpenShift extension, if the user does not supply the
quarkus.openshift.base-xxx-image
, the framework will use the ones fromquarkus.s2i.base-xxx-image
.