-
Notifications
You must be signed in to change notification settings - Fork 498
[FLINK-36332] Missed webhook okhttp reference. #906
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
Conversation
tinaselenge
left a comment
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 :)
Activation issueI think there is a misunderstand about the way that Maven profiles are activated. Maven profile can be activated by system properties, not maven properties. The two concepts are separate. So if the intent is that build activates You can show this against main I think com.squareup.okhttp3:logging-interceptor dependencyI notice that logging-interceptor is included as a dependency even if a client other than okhttp is selected. I think logging-interceptor should probably be excluded. Build pulls in okhttp3 modules at different versionI notice mockwebserver is being pulled in at 3.12.12 and 4.12.0. Whilst this is a test dependency but this could lead to surprising behaviour. I think a dependencyManagement should be applied: |
|
Thanks @k-wall
Grr that is annoying distinction between properties that I missed. I'd been testing by toggling the -D flag when building with maven. I'll have a look at the |
``` mvn help:all-profiles | grep http Profile Id: depend-on-okhttp4 (Active: true , Source: pom) ``` ``` mvn help:all-profiles -Dfabric8.httpclient.impl=jdk -P \!depend-on-okhttp4 | grep http Profile Id: depend-on-okhttp4 (Active: false , Source: pom) ```
d66e74e to
eede213
Compare
|
I've added eede213 to address the issues highlighted by @k-wall mvn help:effective-pom -pl :flink-kubernetes-operator -Doutput=/tmp/default-pom.xml
mvn help:effective-pom -pl :flink-kubernetes-operator -P\!depend-on-okhttp4 -Dfabric8.httpclient.impl=jdk -Doutput=/tmp/jdk-pom.xml
diff /tmp/*-pom.xml
4c4
< <!-- Generated by Maven Help Plugin on 2024-10-23T13:21:57+13:00 -->
---
> <!-- Generated by Maven Help Plugin on 2024-10-23T13:23:54+13:00 -->
551c551
< <artifactId>kubernetes-httpclient-okhttp</artifactId>
---
> <artifactId>kubernetes-httpclient-jdk</artifactId>
693,698d692
< </dependency>
< <dependency>
< <groupId>com.squareup.okhttp3</groupId>
< <artifactId>okhttp</artifactId>
< <version>4.12.0</version>
< <scope>compile</scope>
|
|
Thanks @SamBarker. However when running |
|
Just testing out an idea locally. I hope to have a PR soon. Edit: I expressed an idea SamBarker#9 |
operator-api has always had the dependency on jackson-annotations but was picking it up transitively.
ebd16a1 to
7fb8d7d
Compare
|
What's the status of this? Could you guys @SamBarker @k-wall sort out the issues that you have found? |
@k-wall's fix is merged into this PR and OkHTTP is fully excluded and thus I think it's ready to merge.
Possibly. On main the operator builds without okHttp on the class path (which was the intention) however the webhook still pulls OkHttp in as a transitive dependency. I heed to check what that means for the actual image. |
|
@gyfora Should I open a pr to apply this change to the |
|
@SamBarker if you would like to backport it for a potential bug fix release, then please open a separate PR for |
What is the purpose of the change
There is still a stray reference to OkHTTP via the webhook.
Brief change log
(for example:)
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
CustomResourceDescriptors: noDocumentation
I'd also like to back port this to release-1.10 if possible.