Tianxin Dong
f447e6c642
Fix: delete context when patch outputs in trait ( #3854 )
...
* Fix: delete context when patch outputs in trait
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* use patchOutputs instead of outputs in patch
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix typo
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-05-12 18:38:57 +08:00
Tianxin Dong
20f1d54bf3
Fix: add parse comments in lookupScript to make patch work ( #3839 )
...
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-05-10 13:36:44 +08:00
Tianxin Dong
d593b7ad9c
Feat: support multi keys in patchKey ( #3826 )
...
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-05-08 10:39:01 +08:00
Jianbo Sun
755ccad654
Chore: update some docs to the new org url ( #3792 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-04-29 15:59:29 +08:00
Somefive
512664b9b3
Feat: support dependsOn in deploy workflowstep ( #3750 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-04-28 16:29:34 +08:00
Tianxin Dong
21216055fb
Feat: add vela debug command ( #3580 )
...
* Feat: add debug configmap if debug policy is specified
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Feat: add vela debug command
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* make code reviewable
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix sonartype lift
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix cue string
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Feat: display better for debug
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* tidy the go mod
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Feat: add debug test
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* change uitable vendor
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* add more tests
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* pass resource keeper from handler
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix lint
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix rebase
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Pending test temporary
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-04-18 11:06:14 +08:00
Jianbo Sun
e5fd150cd5
Fix: add client validation and severside dry run for vela dry-run ( #3485 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-03-22 16:39:36 +08:00
朱晓兵
9671e3b232
Fix(context): add support for context.appLables and context.appAnnotations ( #3463 ) ( #3468 )
...
* Fix(context): add support for context.appLables and context.appAnnotations (#3463 )
Signed-off-by: zxbyoyoyo <596908030@qq.com >
Signed-off-by: 朱晓兵 <596908030@qq.com >
* Fix: unit test
Signed-off-by: 朱晓兵 <596908030@qq.com >
* Fix: recover deleted field
Signed-off-by: 朱晓兵 <596908030@qq.com >
2022-03-21 12:02:30 +08:00
Somefive
598de21f67
Feat: add support for json-patch and json-merge-patch ( #3406 )
...
* Feat: add support for json-patch and json-merge-patch
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: add e2e test
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: refactor json-patch field
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-03-11 14:57:50 +08:00
Somefive
6e73c52116
Feat: enhance container related traits ( #3359 )
...
* Feat: enhance env trait
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: enhance container image trait
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Feat: add command trait
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: add test
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-03-08 15:40:04 +08:00
Somefive
de81c24f42
Feat: support standalone style multi-cluster ( #3223 )
...
* Feat: ref component
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Feat: support topology and override
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Feat: add support for external policy and workflow
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Feat: add admission control
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: disable cross namespace ref object
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Chore: refactor
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Feat: support labelSelector in ref-objects
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Feat: add pre approve for deploy step
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Chore: refactor
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: test
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Feat: support comp/trait type in override policy even not used by prototype
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Feat: support regex match for patch component name
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: labelSelector not work for cluster
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: ref workflow contains external policy
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: revision test
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Feat: parallel apply components
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Feat: add test for oam provider
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: service ref-comp & indirect trait ns
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: align namespace setting for chart
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: add strict unmarshal and reformat
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: merge with cluster rework
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Feat: patch trait-def
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: apply components + load dynamic component
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: add test for loadPoliciesInOrder
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Feat: add test for open merge
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: reformat & add test for step generator
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: add test for parse override policy related defs
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: add test for multicluster provider (expandTopology and overrideConfiguration)
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: add admission test
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: revert trait status pass in component status
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: add test for dependency in workflowstep & standalone multicluster test
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: add check for ref and steps in WorkflowStep & enhance ref-objects scheme check
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-03-07 10:21:00 +08:00
Tianxin Dong
d6cf2cdd2f
Fix: add process context in workflow ( #3318 )
...
* Fix: add process context in workflow
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* add context data in process context
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* delete usesless func
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix ut
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* use multi cluster ctx in process ctx
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* remove debug log
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-02-28 10:30:55 +08:00
Jianbo Sun
7395994bdd
Feat: add componentName in context for traitDefinition ( #3200 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-02-08 16:26:16 +08:00
Tianxin Dong
614472b95a
Feat: support vela show for workflow step definition ( #3140 )
...
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-01-25 15:03:38 +08:00
Jian.Li
133a89be3f
Fix: deprecate CRD discovery for CUE import in Definition to prevent memory leak and OOM crash ( #2925 )
...
* Pause test case
Signed-off-by: Jian.Li <lj176172@alibaba-inc.com >
* fix lint
Signed-off-by: Jian.Li <lj176172@alibaba-inc.com >
* diable discover the open api of the CRD
Signed-off-by: Jian.Li <lj176172@alibaba-inc.com >
* fix definition test cases
Signed-off-by: Jian.Li <lj176172@alibaba-inc.com >
2021-12-16 17:53:15 +08:00
Jian.Li
da251f1cb6
Fix: lookupByScript don't support import ( #2788 )
...
* fix lookupByScript
* fix lint
2021-11-24 19:57:54 +08:00
Jianbo Sun
4ca68f2030
Fix: health check will check for multiclusters ( #2645 )
2021-11-07 11:50:27 +08:00
Tianxin Dong
117b9937f3
Feat: store workflow step def properties in cm ( #2592 )
...
* Fix: fix notification def
* Feat: store workflow step def properties in cm
* fix ci
* fix data race
2021-11-03 15:31:12 +08:00
Jian.Li
a5361b2deb
Fix: abnormal aux name ( #2612 )
2021-11-03 15:19:32 +08:00
Chwetion
df3061f4c1
allow import package in custom status cue template ( #2585 )
...
Co-authored-by: chwetion <chwetion@foxmail.com >
2021-11-03 12:14:51 +08:00
Jian.Li
99f1743d25
Not update resource if render hash equal. ( #2522 )
...
* Feat: not apply if render hash not change
* Fix: generateRenderHash panic
2021-10-19 20:34:25 +08:00
Jian.Li
8935a87c59
Fix: Closure Bug In newValue ( #2437 )
...
* Fix: new value bug
* Fix: strategyUnify Bug
* Fix: e2e error
2021-10-12 19:05:03 +08:00
Jian.Li
ef653ebeb4
Feat: add inputs test cases and optimize code ( #2388 )
...
* Feat: add test case & optimize code
* Fix: e2e test
2021-09-29 15:08:00 +08:00
Jian.Li
22bf2e4c3a
Feat: inputs support setting value in array ( #2358 )
...
* Feat: input support array
* Feat: add test cases
* Feat: add comment
2021-09-28 09:18:07 +08:00
Jian.Li
4ff4afde51
Feat: Make applicationComponent can be modified in step ( #2304 )
...
* Feat: component properties can be modfiled in step
* Fix: op.#ApplyRemaining
2021-09-15 13:25:22 +08:00
Somefive
e8d051a532
Support MultiCluster EnvBinding with cluster-gateway ( #2247 )
...
* Feat: init multicluster
* Feat: add secret namespace auto-detect
* Style: format
* Style: split gc codes
* Feat: add cluster cli
* Fix: rebase workflow on master
* Feat: add component selector for env binding
* Fix: selector & patch conflict
* Feat: add local cluster support & fix unit test
* Fix: fix omitempty bug
* Feat(health-scope): support multi-cluster's healthcheck
* Fix: resourcetracker gc bug & rename
* Feat: add multicluster to op.Read
Co-authored-by: yangsoon <songyang.song@alibaba-inc.com >
2021-09-14 20:35:10 +08:00
Hongchao Deng
215c4e0752
Fix: patch any key using retainKeys strategy ( #2280 )
2021-09-13 20:19:16 +08:00
Jian.Li
445db3b276
Fix: E2E Test ( #2274 )
...
* Fix: value.lookUpByScript bug
* Fix: apply-component patch trait resource
2021-09-12 22:45:14 +08:00
Jian.Li
6cbdbe84b2
Refactor application code to make it run as Dag workflow ( #2236 )
...
* Refactor: remove use of AppConfig in AppRevision
* Refactor: remove insert secret and configmap
* Feat(workflow): upgrade
* Fix(conflict): workflow cherry
* Feat(workflow): support DAG mode
* Feat(workflow): prepare steps in step
* Feat(tools): random string
* Fix(rand): gosec weak random
* Fix(ci): test passing
* Feat(workflow): generate steps
* Fix: fix rebase from master
* Fix: fix workflow ut
* Feat(test): add test cases
* Fix: fix lint and rebase from master
* Refactor: application code
* Fix: fix ci lint
* Fix: make code reviewable
* Fix: workflow_test.go
* Feat: collect services
* Fix(ci): unit tests
* Feat: make one
* Test: application with input/output and workflow
* Fix: trace test
* Fix: update step index falied
* Feat: refactor op.#Load
* Fix: delete dead code
* Refactor: op.xxx
* Fix: patch component
* Test: add generator test
* Fix: add license
* Fix: pending e2e plugin test
* Fix: disable test/e2e-test
* Fix: patch by script
Co-authored-by: 天元 <jianbo.sjb@alibaba-inc.com >
Co-authored-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2021-09-12 10:12:46 +08:00
Eng Zer Jun
426aa7af34
Refactor: move from io/ioutil to io and os package ( #2234 )
...
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <zerjun@beatchain.co >
2021-09-06 18:33:42 +08:00
Jian.Li
7a42c743d7
Feat(workflow): outputs support script notation ( #2218 )
...
* Feat(workflow): output support script notation
* Feat(cue): add test case
2021-09-01 19:19:01 +08:00
Jianbo Sun
0781937100
Fix: align all CUE template keyword to use parameter ( #2181 )
2021-08-30 11:43:20 +08:00
Yue Wang
9780ce3bef
Feat(cue): support access components artifacts in cue template context ( #2161 )
...
Signed-off-by: roywang <seiwy2010@gmail.com >
Co-authored-by: roywang <royyuewang@tencent.com >
2021-08-29 09:11:10 +08:00
Zheng Xi Zhou
5fcc2ad9f7
Fix: fix EOF event when describing an application ( #2134 )
...
Fixed the issue: When component properties don't meet the parameter
of the ComponentDefinition, it will hit 'EOF' event
Co-authored-by: Jian.Li <74582607+leejanee@users.noreply.github.com >
Fix #2132
2021-08-27 18:45:05 +08:00
Jian.Li
9311c22c16
Feat(workflow): support to send dingDing message ( #2141 )
...
* Feat(workflow): send dingding message
* Bug(e2e): upgrade golang version
2021-08-21 07:18:04 +08:00
Jian.Li
96a8b24a64
Make the WorkflowStepDefinition to be Universal ( #2124 )
...
* support script
* add comment
2021-08-19 19:15:41 +08:00
Gesa Stupperich
2ee3256b20
Store component parameters in context ( #2030 )
2021-08-06 10:48:00 +08:00
yangsoon
0752244d0b
enable policy ( #2011 )
2021-08-04 18:58:57 +08:00
Jian.Li
5f1d07bfc6
Order Steps by Field Tag ( #2022 )
...
* sort by tag
* add test cases for order tag
* parse comments
* fix atrr conflict
* fix bug
2021-08-04 16:30:11 +08:00
Jianbo Sun
aa87d3da24
upgrade K8s dependency lib to v0.21 ( #1985 )
...
* upgrade K8s dependency to v0.21
* update CRD for new version of controller-runtime
* fix ci component revision create must fill Raw in runtime.RawExtension
* try fix test
* start control plane timeout set to 1min and fix tests
* add timeout for env test start and stop
* longer timeout time for BeforeSuit function
* upgrade kubebuilder and k8s cluster version to match with v1.21.2 in github action
* fix test
* fix resource tracker ownerRef override
* update developer guides
2021-08-03 11:30:02 +08:00
Shaw Ho
d9cd048d79
Fix addRevisionLabel to selector ( #1983 )
...
Signed-off-by: Xiaoxi He <tossmilestone@gmail.com >
2021-08-02 16:36:54 +08:00
Jian.Li
9d6aaa6044
Workflow Support op.# ApplyComponent and op.#ApplyRemaining ( #1993 )
...
* add cap
* workflow
* add docs
* upgrade op.#ApplyComponent
* lint
* bytes to string
2021-07-31 07:14:00 +08:00
wyike
3199fd7577
support context.componentRevName in cue template of traitDefinition ( #1973 )
...
* add logic and test for component context replace
* add more test
* add comments
* fix comments
* rename context revision name
* add bad revision name test
2021-07-28 10:28:02 +08:00
Hongchao Deng
ed0039e1ee
[Feature] CUE Based Workflow Step ( #1935 )
...
* Workflow WIP (#1934 )
* interface
* add model value
* walk fields
* provider
* stdlin
* tasks
* add stdlib
* Adjust TaskGenerator
* Unified configmap format
* development completed
* fix import cycle
* demo passing
* upgrade action
* add value test cases
* format
* apis
* add context test cases
* fmt
* fmt
* add context to taskGenerator (#1942 )
* fix configmap test
* add workflow integration test
* upgrade code
* initial workflow commit
* interface
* add model value
* walk fields
* provider
* stdlin
* tasks
* add stdlib
* Adjust TaskGenerator
* Unified configmap format
* development completed
* fix import cycle
* demo passing
* upgrade action
* add value test cases
* format
* apis
* add context test cases
* fmt
* fmt
* add context to taskGenerator (#1942 )
* fix configmap test
* add workflow integration test
* lint code
* improve pkg[value、context] testing coverage
* Improve testing coverage(#1957 )
* add license
* add test cases
Co-authored-by: Jian.Li <74582607+leejanee@users.noreply.github.com >
Co-authored-by: Jian.Li <lj176172@alibaba-inc.com >
2021-07-22 18:53:30 +08:00
Jian.Li
fcecd0cc8d
patchKey support x.y ( #1916 )
2021-07-14 17:03:50 +08:00
wangyuan249
f4cbe1b98b
Add ignore feature for cue parameter ( #1756 )
...
* add ignore feature for cue parameter
* add test
* fix diff
* fix test
* fix test 2
* fix interact init
2021-06-10 10:29:35 +08:00
yangsoon
b6a6982a57
add test ( #1761 )
2021-06-04 19:05:59 +08:00
Jian.Li
4f47bec238
refactor cue related packages in vela ( #1734 )
...
* refactor-cue
* import group
* readme
* fmt
2021-06-02 15:37:06 +08:00
Zheng Xi Zhou
9e40b77b60
Support cloud resource provisiong and consuming ( #1264 )
...
* Support cloud resource provisioning and consuming (Crossplane)
Provided a way to store secret for cloud resource generated by
Crossplane and to consume the secret
Refer to #1128
* Separate cloud resource producer and consumer in two applications
* add unit test to check whether application can consume cloud resource secret
* update Cloud Resource doc
* Provisioning and consuming cloud resource in different applications v1 (one cloud resource)
* one component consumes two cloud resources
Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com >
2021-03-29 17:20:33 +08:00
wyike
74a82e0397
add header-check.sh ( #1310 )
...
add ci workflow
update scripts
add missed licence header for all files
2021-03-26 15:24:19 +08:00