fix some k8s bug and improve some code (#83)
authorcoderzc <zc1217zc@126.com>
Mon, 16 Aug 2021 03:37:28 +0000 (11:37 +0800)
committerGitHub <noreply@github.com>
Mon, 16 Aug 2021 03:37:28 +0000 (11:37 +0800)
commit2ef5b22e5b7f9bb11c8b4ce89dafe3d2be0fdaf7
tree072f9610b383489da0cb09dc8b2d1baeda475a12
parent25226ef56774c1a56a11e886439ef1fd212adaad
fix some k8s bug and improve some code (#83)

* fix the pod deleted when job failed
* fix job active state inaccurate
* upgrade fabric8 k8s client version to 5.6.0
* add job cost statistics
* add AUTO_DESTROY_POD option for operator
* improve k8s error log message
* use a separate thread for execution waitJob on unit test
* delete history job before run k8s test
14 files changed:
computer-algorithm/Dockerfile
computer-k8s-operator/Dockerfile
computer-k8s-operator/crd-generate/config/manager/manager.yaml
computer-k8s-operator/manifest/hugegraph-computer-operator.yaml
computer-k8s-operator/pom.xml
computer-k8s-operator/src/main/java/com/baidu/hugegraph/computer/k8s/operator/OperatorEntrypoint.java
computer-k8s-operator/src/main/java/com/baidu/hugegraph/computer/k8s/operator/config/OperatorOptions.java
computer-k8s-operator/src/main/java/com/baidu/hugegraph/computer/k8s/operator/controller/ComputerJobController.java
computer-k8s-operator/src/main/resources/log4j2.xml
computer-k8s/pom.xml
computer-k8s/src/main/java/com/baidu/hugegraph/computer/k8s/util/KubeUtil.java
computer-test/pom.xml
computer-test/src/main/java/com/baidu/hugegraph/computer/k8s/AbstractK8sTest.java
computer-test/src/main/java/com/baidu/hugegraph/computer/k8s/MiniKubeTest.java