8000 Updated to support Kubernetes 1.16 by nicknezis · Pull Request #3426 · apache/incubator-heron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Updated to support Kubernetes 1.16 #3426

Merged
merged 11 commits into from
Jan 10, 2020

Conversation

nicknezis
Copy link
Contributor

Updating to the latest Kubernetes Java client and API.

}
} catch (IOException | ApiException e) {
final V1StatefulSet response =
client.createNamespacedStatefulSet(getNamespace(), statefulSet, null,
Copy link
Member

Choose a reason for hiding this comment

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

Should we check if the response is successful here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe the ApiException will have the status code because the ApiClient class checks the status code and throws the exception if there is an error. Is there any better logging you would suggest in the catch block when we deal with the ApiException?

Here is a link to the ApiClient.handleResponse() logic.

Copy link
Member

Choose a reason for hiding this comment

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

Nothing off the top of my head that would make it any better. It looks like the client handles printing out enough information. We can always come back and add more logging if we run into issues or someone requests it.

@nicknezis
Copy link
Contributor Author

I just realized there is now a 7.0.0 release of the Kubernetes Java client. I'm upgrading to use that version. Will also update okhttp dependency from 2.7.5 to 3.4.14. This is the version referenced in the k8s client pom.xml.

@nicknezis nicknezis force-pushed the k8s-scheduler-1.16 branch 3 times, most recently from ae5331c to c09c6a4 Compare January 7, 2020 23:52
@joshfischer1108
Copy link
Member

@nicknezis I think you were doing some additional work on this PR. Is this ready to review again or should we wait?

@nicknezis
Copy link
Contributor Author

I think it's ready to review. I'm working on making the K8s client the internal cluster config, but that can be submitted as a separate pull request.

@nicknezis nicknezis changed the title WIP: Updated to support Kubernetes 1.16 Updated to support Kubernetes 1.16 Jan 9, 2020
@joshfischer1108 joshfischer1108 merged commit e51f265 into apache:master Jan 10, 2020
sreev pushed a commit to sreev/incubator-heron that referenced this pull request Apr 9, 2020
* Updating to fix deprecated Kubernetes APIs

* Removing the old controller logic

* Formatting cleanup

* Trying to use latest k8s java client

* Updated to use the latest K8s client

* Updated tools k8s limits

* Fix for missing statefulset selector in Helm chart

* Updated to K8s client 7.0.0

* Code cleanup

* Updated gson and added gson-fire dependencies

* Updates to better handle k8s resource delete
nicknezis added a commit that referenced this pull request Sep 14, 2020 < 7BF8 /a>
* Updating to fix deprecated Kubernetes APIs

* Removing the old controller logic

* Formatting cleanup

* Trying to use latest k8s java client

* Updated to use the latest K8s client

* Updated tools k8s limits

* Fix for missing statefulset selector in Helm chart

* Updated to K8s client 7.0.0

* Code cleanup

* Updated gson and added gson-fire dependencies

* Updates to better handle k8s resource delete
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0