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

Remove OpenshiftBaseXXXImage classes #37349

Merged
merged 2 commits into from Dec 7, 2023

Conversation

iocanel
Copy link
Contributor

@iocanel iocanel commented Nov 28, 2023

Resolves: #36577

@quarkus-bot

This comment has been minimized.

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

@@ -146,24 +146,14 @@ public void openshiftRequirementsJvm(ContainerImageOpenshiftConfig openshiftConf
boolean hasCustomJvmArguments = config.jvmArguments.isPresent();

builderImageProducer.produce(new BaseImageInfoBuildItem(baseJvmImage));
Optional<OpenshiftBaseJavaImage> baseImage = OpenshiftBaseJavaImage.findMatching(baseJvmImage);
Copy link
Member

Choose a reason for hiding this comment

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

I'm surprised the tests are passing as I had test failures when I removed the images but good if they pass.

Copy link
Member

Choose a reason for hiding this comment

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

Yes so I can confirm the tests are not passing and will require some adjustments:

In integration-tests/kubernetes/quarkus-standard-way, you will have this failure:

[ERROR] Failures: 
[ERROR]   OpenshiftWithS2iTest.assertGeneratedResources:74 
[List check single element] (1 failure)
-- failure 1 --
[List check single element] (1 failure)
-- failure 1 --
Expecting any element of:
  [EnvVar(name=KUBERNETES_NAMESPACE, value=null, valueFrom=EnvVarSource(configMapKeyRef=null, fieldRef=ObjectFieldSelector(apiVersion=null, fieldPath=metadata.namespace, additionalProperties={}), resourceFieldRef=null, secretKeyRef=null, additionalProperties={}), additionalProperties={}),
    EnvVar(name=JAVA_APP_JAR, value=/deployments/quarkus-run.jar, valueFrom=null, additionalProperties={})]
to satisfy the given assertions requirements but none did:

Copy link
Member

Choose a reason for hiding this comment

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

@famod this is interesting as for GIB is concerned. GIB didn't run the integration-tests/kubernetes/quarkus-standard-way module because there is no explicit dependency in the POM. We cannot really add the dependencies to the POM because they are actually conditional and used specifically in some of the tests. I'm not completely sure how we could create a dependency there?

Copy link
Member

Choose a reason for hiding this comment

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

@gsmet I''ll have a look when I'm back from Switzerland, not before sunday.

Copy link
Member

Choose a reason for hiding this comment

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

@iocanel I fixed the test in a follow-up commit I just pushed but... I'm wondering if we shouldn't push the JAVA_OPTS another way? (Or maybe they are already pushed another way?) Setting the log manager is important.

I will let you finalize this.

@gsmet
Copy link
Member

gsmet commented Nov 28, 2023

The container-image-s2i extension is deprecated in favor of container-image-openshift and we IMHO, we should just drop it.

OK, I can live with keeping it as is then, pending a discussion to drop the extension.

We just need to fix the integration-tests/kubernetes/quarkus-standard-way tests then and I think we should be good to go.

Thanks!

iocanel and others added 2 commits December 4, 2023 13:56
JAVA_OPTS are not automatically added anymore.
But TBH, I wonder if it's the right move to not have these JAVA_OPTS as
we need to set the logger anyway.
@gsmet gsmet force-pushed the remove-base-openshift-images branch from f91fd5d to f6f8626 Compare December 4, 2023 13:08
@gsmet
Copy link
Member

gsmet commented Dec 4, 2023

The container-image-s2i extension is deprecated in favor of container-image-openshift and we IMHO, we should just drop it.

I will drop the container-image-s2i extension in a separate PR but shouldn't we sort out https://github.com/quarkusio/quarkus/blob/main/extensions/container-image/container-image-openshift/deployment/src/main/java/io/quarkus/container/image/openshift/deployment/S2iBaseJavaImage.java in this PR?

@quarkus-bot
Copy link

quarkus-bot bot commented Dec 4, 2023

✔️ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

@gsmet gsmet merged commit 018e8e4 into quarkusio:main Dec 7, 2023
21 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.7 - main milestone Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should we update S2iBaseJavaImage and OpenshiftBaseJavaImage?
3 participants