-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Revert BackwardCompatibilityInterceptor's behavior of changing /apis to /oapi URLs #2490
Revert BackwardCompatibilityInterceptor's behavior of changing /apis to /oapi URLs #2490
Conversation
You're "reverting" too much, some of the fixes provided after (like the one for createOrReplace #2467) are reverted too. |
I reverted BackwardCompatibilityInterceptor to it's 4.10.3 state. I think #2467 was also caused by my change in #2375 . I haven't reverted tests for #2467 I added(they're passing with this change): kubernetes-client/kubernetes-itests/src/test/java/io/fabric8/openshift/DeploymentConfigIT.java Lines 93 to 97 in 323be1c
kubernetes-client/kubernetes-itests/src/test/java/io/fabric8/openshift/RouteIT.java Lines 99 to 107 in 323be1c
|
I'm not so sure about that. The thing is that with the "new" If you don't keep this check in the interceptor: if (!response.isSuccessful() && response.code() == HttpURLConnection.HTTP_NOT_FOUND) The interceptor will "kick in" whenever a resource needs to be replaced (too). Regarding tests not failing, I'm guessing the tests you implemented in #2467 fix did not include an OpenShift resource specific replace case scenario. |
I think you're right. Right now BackwardsCompatibiityInterceptor(what is here in this PR) seems to be only converting |
f18e889
to
e5d2aca
Compare
c2c1ad4
to
98532d0
Compare
…to /oapi URLs This commit reverts 293ab9d which was added in order to fix fabric8io#2373. This behavior was causing problems with Strimzi's Kubernetes Client upgrade: strimzi/strimzi-kafka-operator#3553 . On bisecting the failing test, I found this commit as culprit. Handling OpenShift old /oapi requests seem to be handled in OpenShiftOperation where we check `config.isOpenshiftApiGroupsEnabled()` to modify OperationContext. However, fabric8io#2373 can be fixed by adding apiVersion in OpenShiftOperation.
98532d0
to
a9caeb1
Compare
SonarCloud Quality Gate failed. 0 Bugs 17.6% Coverage The version of Java (1.8.0_265) you have used to run this analysis is deprecated and we will stop accepting it from October 2020. Please update to at least Java 11. |
[merge] |
@rohanKanojia please could you tell me when there might be a release with this change in? |
Hi @tombentley |
Awesome, thanks! |
Hi @tombentley |
Revert #2373
This commit reverts 293ab9d which was added in order
to fix #2373. This behavior was causing problems with Strimzi's Kubernetes Client
upgrade: strimzi/strimzi-kafka-operator#3553 . On bisecting
the failing test, I found this commit as culprit. Git bisect log:
Handling OpenShift old /oapi requests seem to be handled in OpenShiftOperation where we check
config.isOpenshiftApiGroupsEnabled()
to modify OperationContext.#2373 can be fixed by adding apiVersion in OpenShiftOperation.
Description
Type of change
test, version modification, documentation, etc.)
Checklist