-
Notifications
You must be signed in to change notification settings - Fork 805
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
workflow task node #1866
workflow task node #1866
Conversation
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Codecov Report
@@ Coverage Diff @@
## master #1866 +/- ##
==========================================
- Coverage 39.47% 33.63% -5.84%
==========================================
Files 17 121 +104
Lines 608 7283 +6675
==========================================
+ Hits 240 2450 +2210
- Misses 337 4624 +4287
- Partials 31 209 +178
Continue to review full report at Codecov.
|
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
compliable issue with kubernetes 1.18, detail: kubernetes-sigs/controller-tools#480 Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
This reverts commit 8e05196. Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Weird, the integration test fails. I am looking on that. |
|
I could not reproduce on my local cluster, both k8s v1.15.x and v1.20.x, and both crd v1beta1 and crd v1. 😢 I think I found the reason, I am going to fix it. |
apply will create a huge annotaion which exceed the limit of size of annotation Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
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.
Except the name, LGTM.
The fields will be renamed in another PR, right?
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
YES! |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 06af0af
|
/run-e2e-tests |
Signed-off-by: STRRL <str_ruiling@outlook.com>
/merge |
This pull request has been accepted and is ready to merge. Commit hash: b0d2c5f
|
* feat: conditional branches in workflownode Signed-off-by: STRRL <str_ruiling@outlook.com> * feat: reconciler of task node Signed-off-by: STRRL <str_ruiling@outlook.com> * feat: setup one container for task node Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: address the comments by muse-dev Signed-off-by: STRRL <str_ruiling@outlook.com> * chore: cleanup duplicated codes Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: bump controller-gen version compliable issue with kubernetes 1.18, detail: kubernetes-sigs/controller-tools#480 Signed-off-by: STRRL <str_ruiling@outlook.com> * chore: bump the version of controller-gen to v0.4.1 Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: restrict kubernetes version with replace Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: also restrict version for e2e-test Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: also bump the verison of controller-runtime Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: fallback to v1beta1 Signed-off-by: STRRL <str_ruiling@outlook.com> * Revert "fix: also bump the verison of controller-runtime" This reverts commit 8e05196. Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: fill the conditional branches if nil Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: permission of custom task about creating pod Signed-off-by: STRRL <str_ruiling@outlook.com> * feat: use v1 instead of v1beta1 with CRD Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: NOOP when pods exactly same Signed-off-by: STRRL <str_ruiling@outlook.com> * refactor: refactor the collectors Signed-off-by: STRRL <str_ruiling@outlook.com> * feat: finish the rest of task nodes Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: check before sync nodes in task Signed-off-by: STRRL <str_ruiling@outlook.com> * chore: make linters happier Signed-off-by: STRRL <str_ruiling@outlook.com> * chore: make linters happier Signed-off-by: STRRL <str_ruiling@outlook.com> * Update pkg/workflow/controllers/task_reconciler.go Signed-off-by: STRRL <str_ruiling@outlook.com> Co-authored-by: AsterNighT <klxjt99@outlook.com> * fix: use create instead of apply apply will create a huge annotaion which exceed the limit of size of annotation Signed-off-by: STRRL <str_ruiling@outlook.com> * chore: update the comments for workflow template Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: crd installation in e2e test Signed-off-by: STRRL <str_ruiling@outlook.com> Co-authored-by: AsterNighT <klxjt99@outlook.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io> Signed-off-by: root <root@vm3.jisiqhvhuzaupp2x5y5vff1eff.fx.internal.cloudapp.net>
* feat: conditional branches in workflownode Signed-off-by: STRRL <str_ruiling@outlook.com> * feat: reconciler of task node Signed-off-by: STRRL <str_ruiling@outlook.com> * feat: setup one container for task node Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: address the comments by muse-dev Signed-off-by: STRRL <str_ruiling@outlook.com> * chore: cleanup duplicated codes Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: bump controller-gen version compliable issue with kubernetes 1.18, detail: kubernetes-sigs/controller-tools#480 Signed-off-by: STRRL <str_ruiling@outlook.com> * chore: bump the version of controller-gen to v0.4.1 Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: restrict kubernetes version with replace Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: also restrict version for e2e-test Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: also bump the verison of controller-runtime Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: fallback to v1beta1 Signed-off-by: STRRL <str_ruiling@outlook.com> * Revert "fix: also bump the verison of controller-runtime" This reverts commit 8e05196. Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: fill the conditional branches if nil Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: permission of custom task about creating pod Signed-off-by: STRRL <str_ruiling@outlook.com> * feat: use v1 instead of v1beta1 with CRD Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: NOOP when pods exactly same Signed-off-by: STRRL <str_ruiling@outlook.com> * refactor: refactor the collectors Signed-off-by: STRRL <str_ruiling@outlook.com> * feat: finish the rest of task nodes Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: check before sync nodes in task Signed-off-by: STRRL <str_ruiling@outlook.com> * chore: make linters happier Signed-off-by: STRRL <str_ruiling@outlook.com> * chore: make linters happier Signed-off-by: STRRL <str_ruiling@outlook.com> * Update pkg/workflow/controllers/task_reconciler.go Signed-off-by: STRRL <str_ruiling@outlook.com> Co-authored-by: AsterNighT <klxjt99@outlook.com> * fix: use create instead of apply apply will create a huge annotaion which exceed the limit of size of annotation Signed-off-by: STRRL <str_ruiling@outlook.com> * chore: update the comments for workflow template Signed-off-by: STRRL <str_ruiling@outlook.com> * fix: crd installation in e2e test Signed-off-by: STRRL <str_ruiling@outlook.com> Co-authored-by: AsterNighT <klxjt99@outlook.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io> Signed-off-by: root <root@vm3.jisiqhvhuzaupp2x5y5vff1eff.fx.internal.cloudapp.net>
Signed-off-by: STRRL str_ruiling@outlook.com
What problem does this PR solve?
This PR implements the task node for workflow.
What is changed and how does it work?
/pkg/expr
and/pkg/workflow/task
expr
use github.com/antonmedv/expr for evaluating expression/pkg/workflow/task
will createPod
by given spec, and collect information during execution, like stdout and exitcodeChecklist
Tests
Side effects
Related changes
Does this PR introduce a user-facing change?