Skip to content

Conversation

coderzc
Copy link
Member

@coderzc coderzc commented Jan 14, 2022

  • add fail over limit handler
  • pod topology spread constraints by node
  • auto select mount file or directory by number of configmap/secret data
  • support PodSpec template 怎么指定特定的worker节点跑任务 #176
  • support config security context
  • use customized etcd-server yaml replace etcd-operator
crInformer.addEventHandler(new ResourceEventHandler<T>() {
@Override
public void onAdd(T cr) {
LOG.info("received a CR add request: {}", cr.getMetadata());
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

}
OperatorResult result;
try {
LOG.debug("start reconcile request: {}", request);
Copy link
Contributor

Choose a reason for hiding this comment

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

expect the first letter capitalized


@Override
public void onUpdate(T oldCR, T cr) {
LOG.info("received a CR update request: {}", cr.getMetadata());
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto


protected abstract OperatorResult reconcile(OperatorRequest request);

protected abstract void handleFailOverLimit(OperatorRequest request,
Copy link
Contributor

Choose a reason for hiding this comment

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

"same operator" is typo?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes

@codecov
Copy link

codecov bot commented Jan 14, 2022

Codecov Report

Merging #179 (da87d55) into master (18bedd2) will increase coverage by 0.08%.
The diff coverage is 83.48%.

Impacted file tree graph

@@ Coverage Diff @@ ## master #179 +/- ## ============================================ + Coverage 87.27% 87.36% +0.08%  - Complexity 3137 3152 +15  ============================================ Files 332 332 Lines 11741 11806 +65 Branches 1038 1053 +15 ============================================ + Hits 10247 10314 +67  + Misses 994 988 -6  - Partials 500 504 +4 
Impacted Files Coverage Δ
...mputer/k8s/operator/common/AbstractController.java 85.50% <77.77%> (+2.17%) ⬆️
...k8s/operator/controller/ComputerJobController.java 88.69% <77.77%> (+1.33%) ⬆️
...r/k8s/operator/controller/ComputerJobDeployer.java 86.37% <85.18%> (-1.40%) ⬇️
.../computer/k8s/operator/common/OperatorRequest.java 80.64% <100.00%> (+0.64%) ⬆️
...raph/computer/k8s/operator/OperatorEntrypoint.java 88.13% <0.00%> (+3.38%) ⬆️
...com/baidu/hugegraph/computer/core/bsp/BspBase.java 100.00% <0.00%> (+7.69%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 18bedd2...da87d55. Read the comment docs.

@coderzc coderzc changed the title expand same operator function expand some operator function Jan 14, 2022
@coderzc coderzc marked this pull request as draft January 14, 2022 10:27
.getLog(true);
} catch (KubernetesClientException e) {
if (e.getCode() == HttpURLConnection.HTTP_NOT_FOUND) {
// Fix the pod deleted when job failed
Copy link
Contributor

Choose a reason for hiding this comment

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

have fixed or to be fixed?

@coderzc coderzc force-pushed the extend_operator branch 2 times, most recently from 260f05f to 2ff13d9 Compare January 15, 2022 12:32
@coderzc coderzc force-pushed the extend_operator branch 2 times, most recently from 3e0822d to 46175c9 Compare January 19, 2022 02:45
@coderzc coderzc marked this pull request as ready for review January 24, 2022 11:02
@javeme
Copy link
Contributor

javeme commented Jan 24, 2022

codecov/project Failing after 1s — 86.98% (-0.29%)

add some tests to cover more codes?

@coderzc coderzc requested a review from javeme January 25, 2022 06:54
@imbajin imbajin merged commit 02a9361 into master Feb 9, 2022
@imbajin imbajin deleted the extend_operator branch February 9, 2022 10:28
corgiboygsj pushed a commit that referenced this pull request Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants