Sunghoon Kang
1300a980f0
Feat: reconcile app with scoped permissions ( #3434 )
...
* Refactor: refactor multi cluster round trippers
Before adding more RoundTrippers, it would be better to expose common
logic in the utility package.
This commit exports `tryCancelRequest` at `utils` package, and make
`secretMultiClusterRoundTripper` implement `RoundTripperWrapper`
interface to allow chaining multiple round trippers.
Refs #3432
Signed-off-by: Sunghoon Kang <hoon@linecorp.com >
* Feat: reconcile app with scoped permissions
Currently, all Application resources are reconciled by the Roles bound
to the controller service account. This behavior gives us the power to
manage resources across multiple namespaces. However, this behavior can
be problematic in the soft-multitenancy environment.
This commit adds `serviceAccountName` to ApplicationSepc to reconcile
Application with the given service account for reconciling Application
with scoped permissions.
Refs #3432
Signed-off-by: Sunghoon Kang <hoon@linecorp.com >
* Refactor: extract context setter as method
https://github.com/oam-dev/kubevela/pull/3434#discussion_r825561603
Signed-off-by: Sunghoon Kang <hoon@linecorp.com >
* Feat: use annotation instead of spec
https://github.com/oam-dev/kubevela/issues/3432#issuecomment-1066460269
Signed-off-by: Sunghoon Kang <hoon@linecorp.com >
* Refactor: unify service account setter caller
https://github.com/oam-dev/kubevela/pull/3434#discussion_r825853612
Signed-off-by: Sunghoon Kang <hoon@linecorp.com >
* Refactor: rename GetServiceAccountName
https://github.com/oam-dev/kubevela/pull/3434#discussion_r826514565
Signed-off-by: Sunghoon Kang <hoon@linecorp.com >
2022-03-15 11:55:50 +08:00
Tianxin Dong
bef24bdf22
Fix: separate waiting and failed backoff time and make them configurable ( #3362 )
...
* Fix: separate waiting and failed backoff time and make them configurable
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* change var name in chart values
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix ci
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-03-08 16:04:19 +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
yangs
91125c6fec
Feat: dispatch manifests in concurrent ( #3060 )
...
* Feat: dispatch manifests in concurrent
Signed-off-by: yangsoon <songyang.song@alibaba-inc.com >
* Fix: merge workflow pkg convert to pkg util
Signed-off-by: yangsoon <songyang.song@alibaba-inc.com >
Co-authored-by: yangsoon <songyang.song@alibaba-inc.com >
2022-02-08 16:25:57 +08:00
Tianxin Dong
cb7bc0e7f4
Fix: handle workflow cache reconcile ( #3128 )
...
* Fix: handle workflow cache reconcile
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix return and move backoff to memory
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* handle failed to patch case
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* add store in err case
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* make reviewable
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix ut
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* do cleanup in ut
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-01-22 15:54:17 +08:00
barnettZQG
d4762e09cd
Feat: support query endpoints in status command and speed up CLI response ( #3052 )
...
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-01-07 15:49:27 +08:00
Somefive
746eb0dbe4
Feat: support logs for velaql ( #3011 )
...
* Feat: support logs for velaql
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
* Feat: extend parameter
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
2021-12-28 20:49:56 +08:00
Tianxin Dong
655c2615e1
Feat: add workflow reconciling backoff time and failed limit times ( #2881 )
...
* Feat: add workflow failed after retries
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Feat: add workflow reconcile backoff time
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix lint
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* make reviewable
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* resolve some comments
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* add tests
* fix rebase
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix test
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix status
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix requeue time interval
* resolve comments
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* change time to pointer
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix pointer test
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix test
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* change time to cm
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* resolve comments and add e2e test
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2021-12-15 11:33:33 +08:00
Jian.Li
3f2e76c75a
Feat: HTTP Provider requires adding certificate chain from secret ( #2771 )
...
* http support load tls certs
* fix: TLS MinVersion too low
2021-12-08 11:39:04 +08:00
Hongchao Deng
e5aba94cd1
Merge branch 'apiserver' into merge
2021-11-22 17:25:50 +08:00
Jian.Li
0803b45faf
Feat: output log with structured tag & add step duration metrics ( #2683 )
...
* debug task
* metrics
* trace context
* add step_duration metrics
* add readme docs
2021-11-12 11:48:41 +08:00
yangsoon
8a3b7b6a05
Feat: add query provider and get view template from configmap ( #2619 )
2021-11-11 13:40:14 +08:00
Tianxin Dong
828acd95fa
Feat: add email support in webhook notification ( #2535 )
...
* Feat: add email support in webhook notification
* Fix: change sender and receiver to from and to
* fix the variable name
* fix wait return
2021-10-28 10:59:17 +08:00
Tianxin Dong
dcb677f976
Feat: support secret in webhook notification ( #2509 )
2021-10-19 10:42:40 +08:00
Tianxin Dong
85c887d3e4
Fix: change raw extension to pointer ( #2451 )
...
* Fix: change raw extension to pointer
* Test: fix ut
2021-10-13 16:16:53 +08:00
Tianxin Dong
f9b218919a
Feat(workflow): add depends on in workflow ( #2387 )
...
* Feat: add depens on in charts
* Feat(workflow): add depends on in workflow
2021-09-30 10:30:44 +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
Tianxin Dong
e73655a8b2
Refactor: change field exportKey to valueFrom ( #2284 )
2021-09-14 10:23:39 +08:00
Jian.Li
b66f2995a5
Fix: Bugs (as follows) ( #2278 )
...
* Fix: suspend step id
* Feat: add test cases
* Fix: reslove conflict
* Fix: reduce reconclie duration for test
2021-09-13 20:03:49 +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
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
Jian.Li
1a6d2be6d0
Feat(workflow): input.ParameterKey described like paths notation ( #2214 )
...
* Feat(workflow): input.ParameterKey path notation
* Feat(workflow): add test case
* Fix(lint): format code
2021-09-01 11:34:16 +08:00
Jianbo Sun
0781937100
Fix: align all CUE template keyword to use parameter ( #2181 )
2021-08-30 11:43:20 +08:00
Jian.Li
96a8b24a64
Make the WorkflowStepDefinition to be Universal ( #2124 )
...
* support script
* add comment
2021-08-19 19:15:41 +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
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
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
Jian.Li
4481e7637d
Optimize Workflow ( #1978 )
...
* open op.#Steps
* export
* fmt code
* fix bug & upgrade workflow doc
* fmt
* upgrade test coverage
* upgrade test coverage
2021-07-29 11:35:22 +08:00
Jian.Li
a736b1f7b0
Workflow Support Resource GC ( #1970 )
...
* gc
* add test cases
* test case
2021-07-27 19:22:05 +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