Jianbo Sun
65402bd926
Fix: remove some unused flaky tests ( #2242 )
2021-09-08 09:30:04 +08:00
wyike
ae724b2a9a
Docs: canary rollout demo (rollout part only) ( #2177 )
...
Feat: component definition support context.revision
2021-09-07 17:08:56 +08:00
Yue Wang
4ed40bebe3
Feat(app): show health status from HealthScope in application status ( #2228 )
...
Signed-off-by: Yue Wang <seiwy2010@gmail.com >
Co-authored-by: roywang <royyuewang@tencent.com >
2021-09-07 11:27:29 +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
yangsoon
493e255d78
Fix: align the envbind-app name with the original application name ( #2232 )
2021-09-05 14:45:44 +08:00
yangsoon
d4277f644e
Fix(app): When only the policy is specified, the resources in the app need to be rendered and created ( #2197 )
...
* Fix(app): apply app when policy is specified
* Fix(policy): update env-binding policy
* Test(policy): add test
2021-09-01 17:27:47 +08:00
Jianbo Sun
0781937100
Fix: align all CUE template keyword to use parameter ( #2181 )
2021-08-30 11:43:20 +08:00
yangsoon
d24e282e67
Feat(envbinding): add resourceTracker for envBinding ( #2179 )
...
* Feat(envbinding): add resourceTracker for envBinding
* Test: add test for envbinding
2021-08-29 13:29:30 +08:00
yangsoon
73be37b73b
Fix(envbinding): fix the way that envbinding stores resources after configuration ( #2175 )
...
* Refactor: replace #op.ApplyEnvBindComponnet with #op.ApplyEnvBindApp
* Fix: fix patch strategy for envbinding
2021-08-27 21:38:57 +08:00
wyike
cc8a1d3bde
Feat: modify apply component cue action to support skipWorkload trait ( #2167 )
...
fix lint
fix comments
2021-08-27 13:12:00 +08:00
yangsoon
5d17fb3a7f
Refactor: change the ownerReference of configMap which store the parameter for each revision to definitionRevision ( #2164 )
...
* Refactor: change the ownerReference of cm store the parameter for each revision to defRevision
* Feat: check whether its needed before status update
2021-08-26 19:56:46 +08:00
Zheng Xi Zhou
08f1ff99cf
Fix: traitdefinition controller reconcile in a infinite loop ( #2157 )
...
Check whether its needed before status update, add log before
each reconcile returns, and also correct Klog.InfoS to klog.ErrorS
when trying to log err information
Fix #2153
2021-08-25 21:35:33 +08:00
Tianxin Dong
7254bb67a3
Feat(vela): add vela workflow terminate and restart command ( #2131 )
...
* Feat(vela): add vela workflow terminate and restart command
* Fix(restart): fix restart command
2021-08-20 20:45:09 +08:00
Yue Wang
324fc1ac7c
add CUE-based health check in HealthScope controller ( #1956 )
...
add e2e test
Signed-off-by: Yue Wang <seiwy2010@gmail.com >
2021-08-20 15:55:47 +08:00
wyike
4941a3e9c2
fix external revision bug ( #2126 )
...
* fix external revision bug
* add test
* try to fix flaky-test
2021-08-20 15:43:50 +08:00
Tianxin Dong
bd91cf762d
Fix(workflow): set the namespace to app's ns if it's not specified ( #2133 )
...
* Fix(workflow): set the namespace to app's ns if it's not specified
* fix dryrun test
2021-08-20 13:43:04 +08:00
Tianxin Dong
8ac5d2276e
Fix(workflow): set workload name in configmap if the name is not specified ( #2119 )
...
* Fix(workflow): set workload name in configmap if the name is not specified
* fix ut
2021-08-18 20:04:34 +08:00
Tianxin Dong
2854c4204c
Feat(vela): add vela workflow suspend command ( #2108 )
...
* Feat(vela): add vela workflow suspend command
* Feat(vela): add vela workflow suspend ut
2021-08-18 11:37:46 +08:00
yangsoon
a599a6a88b
add more test for envbinding ( #2100 )
...
* add test
* fix example
2021-08-17 11:30:52 +08:00
yangsoon
d3f264273f
enhance envbinding: support apply resources to cluster ( #2093 )
...
* enbinding support apply resources directly
* adjust the directory struct
* set placement as an optional field
* support namespace selector
2021-08-16 19:08:18 +08:00
Zhizhen He
1e294b3164
chore: replace github.com/ghodss/yaml with sigs.k8s.io/yaml ( #2089 )
2021-08-15 10:53:05 +08:00
yangsoon
abbec2c36b
definitions support specify the revision name ( #2044 )
...
* support named defRev
* add test
2021-08-10 20:03:45 +08:00
LeoLiuYan
a715564147
Feat allow users to specify component revision name ( #1929 )
...
* Feat allow users to specify component revision name
* Add unit tests
Signed-off-by: LeoLiuYan <929908264@qq.com >
* Add ExternalRevision field to ComponentManifest
* Add handleComponentRevisionNameUnspecified func
* Add unit tests for webhook
Signed-off-by: LeoLiuYan <929908264@qq.com >
* Add more unit tests
* Feat allow users to specify component revision name
* Add unit tests
Signed-off-by: LeoLiuYan <929908264@qq.com >
* Add ExternalRevision field to ComponentManifest
* Add handleComponentRevisionNameUnspecified func
* Add unit tests for webhook
Signed-off-by: LeoLiuYan <929908264@qq.com >
* Add more unit tests
* Try to fix webhook unit tests
* fix race (#2040 )
* fix test bug
* More unit tst
* More unit test and trigger ci
Co-authored-by: yangsoon <yangsoonlx@gmail.com >
Co-authored-by: Yin Da <yd219913@alibaba-inc.com >
2021-08-08 12:11:24 +08:00
yangsoon
0eed21987a
add more test for envbinding ( #2032 )
2021-08-06 10:46:31 +08:00
wyike
3f326f06e4
application skip gc resource and rollout set workload ownerReference ( #2024 )
...
* finish main logic and test
* fix import order
* rollout isn't created by applciation
* fix comments
* fix compatility test
* mock error test
2021-08-05 17:15:57 +08:00
yangsoon
0752244d0b
enable policy ( #2011 )
2021-08-04 18:58:57 +08:00
junqi.zhai
6405603970
ApplicationContext status patch nothing ( #2019 )
...
* applicationcontext_controller.go status deepcopy
* put a space between `//` and comment text
Co-authored-by: 69055 <fuwangZJQ1991>
2021-08-04 15:15:37 +08:00
Jianbo Sun
e3edde44af
disable metrics server port in tests and add log for rollout ( #2012 )
2021-08-03 14:53:38 +08:00
Shaowen Chen
af1e9dc195
bugfix: workload namespace is empty while sync appdeployment ( #2009 )
...
Signed-off-by: shaowenchen <mail@chenshaowen.com >
2021-08-03 13:23:38 +08:00
Jianbo Sun
5ddeabb6af
fix resource tracker ownerRef override ( #2002 )
2021-08-03 12:47:59 +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
Somefive
7a1f95773d
Add timeout context for controllers ( #1990 )
2021-08-02 19:31:00 +08:00
Yue Wang
b4ebdac5bb
quick fix tests ( #1999 )
...
Signed-off-by: Yue Wang <seiwy2010@gmail.com >
2021-08-02 10:29:31 +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
yangsoon
7161959aca
add EnvBinding Controller for Multi cluster deploy and Configuration Management ( #1968 )
...
* patch env configuration
* add e2e-test
2021-07-30 10:02:51 +08:00
wyike
2b1946ee7b
already exist is fine ( #1979 )
2021-07-29 11:16:40 +08:00
wyike
a8c4d5f01e
add filter func and related tests ( #1976 )
...
trigger CI
2021-07-28 18:50:13 +08:00
Jianbo Sun
e71d71c6b7
use corev1.ObjectReference insteadof crossplane-runtime TypedReference ( #1974 )
...
* refactor crossplane-runtime TypedReference to ObjectReference and make condtion locally
* fix test
2021-07-28 13:59:13 +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
Jian.Li
a736b1f7b0
Workflow Support Resource GC ( #1970 )
...
* gc
* add test cases
* test case
2021-07-27 19:22:05 +08:00
Yue Wang
c0144865d2
fix app finalizer bug ( #1962 )
...
Signed-off-by: roy wang <seiwy2010@gmail.com >
2021-07-26 14:20:22 +08:00
wyike
5d6ce83174
mechanism let application skip apply the workload ( #1963 )
...
* add manageby trait option
* add comments
* fix comments
* fix dryrun test
* add checkfunc in assemble phase
fix lint
2021-07-25 10:18:33 +08:00
chival
6b804acbf5
Fix Initializer bugs & Enhance addon command ( #1955 )
...
* enhance `addon enable` command
* fix: initializer requeue twice
fix: initializer won't update status while checking dependency
* not delete ns while disable addon
* add init delete webhook and test
* use poll func
* fix get init logic
* fix get init logic
* fix CI
* fix CI
* unfocus
* check diff
* CI
2021-07-25 10:16:43 +08:00
聪
c508cd45c6
allow create application with empty components ( #1936 )
2021-07-22 19:47:34 +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
yangsoon
5e064219e7
Enhance Initializer: export the phase of Initializer and help install build-in Initializer ( #1932 )
...
* add phase for initilaizer
* help install build-in initializer
* add test
2021-07-20 20:40:01 +08:00
wyike
ff6fcd9f10
support component revision based rollout ( #1919 )
...
* WIP almost finish main logic
WIP make reviewable
finish manual test
fix rollout plan related test
WIP refactro some logic
WIP finish e2e-test
* fix failed e2e-test
* fix failed interagtion test
* move rollout to trait packege
* modify e2e-test testdata change apiVersion
* add v1alpha1 to scheme in test
* more wait time
* fix comment
* split rollout test
fix makefile
* rename test name
delete equal quata
try to fix
fix
* add more test
2021-07-20 16:53:39 +08:00
Yue Wang
10073df98a
fix legacy resource tracker issue ( #1931 )
...
Signed-off-by: Yue Wang <seiwy2010@gmail.com >
2021-07-20 14:07:08 +08:00
yangsoon
40a09e5468
skip pkg discover when workload type is autodetect ( #1930 )
2021-07-19 13:14:23 +08:00
yangsoon
644cafe0a1
fix bug: application can not create component which contains namespace resource ( #1920 )
...
* align initializer's namespace to vela-system
* fix makefile
* fix terraform namespace
* add test
2021-07-15 19:53:41 +08:00