Tianxin Dong
6c5a40d768
Feat: add dex login in apiserver ( #3417 )
...
* Feat: add dex login in apiserver
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* resolve comments
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Fix: get dex config from secret
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Fix: delete cache for dex config
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix ci
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-03-16 14:37:41 +08:00
wyike
c91a7ac273
Feat(apiserver): helm apiserver webservice (list chart, list version, extract helm values) ( #3398 )
...
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-03-16 11:42:08 +08:00
barnettZQG
b437cf4310
Feat: support query the policy definitions ( #3445 )
...
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-03-16 10:56:53 +08:00
Sunghoon Kang
040d5e1776
Chore: fix issue-commands workflow ( #3451 )
...
It seems that the `issue-commands` workflow keeps failing.
This commit fixes the `issue-commands` workflow by bumping up the
action version and replacing `npm install` with `npm ci` for
reproducibility.
Refs: https://github.com/oam-dev/kubevela-github-actions/pull/11
Signed-off-by: Sunghoon Kang <hoon@linecorp.com >
2022-03-16 10:12:58 +08:00
barnettZQG
7bec3506f5
Feat: add auto clear data function for the memory cache ( #3439 )
...
* Feat: add auto clear data function for the memory cache
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Feat: add memory cache store
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Feat: add some test case for the utils package
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-03-15 19:14:20 +08:00
Jianbo Sun
efc1597317
Nominate devholic as as a Review member ( #3444 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-03-15 16:45:26 +08:00
Kunshuai Zhu
38665e319d
Feat: poll multi-cluster metrics and export to prometheus ( #3429 )
...
* Feat: poll multi-cluster metrics and export to prometheus
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
* pass context to polling loop
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
* move metrics definition to montitor/metrics/multicluster.go
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
* remove pod usage metric and make reviewable
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
* revert the change of GetClusterMetricsFromMetricsAPI
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
* revert the change of GetClusterMetricsFromMetricsAPI
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
* Separate the polling logic into a function
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
* add start menber function
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
* make refreshPeriod a menber var
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
* fix typo
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
2022-03-15 13:03:10 +08:00
barnettZQG
1e0f329304
Feat: add component definiton in the detail component response body ( #3437 )
...
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-03-15 11:57:16 +08:00
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
Zheng Xi Zhou
b6b81c336e
Fix: add generate JDBC connection workflowDefintion ( #3360 )
...
* Fix: add generate JDBC connection workflowDefintion
Added a WorkflowDefinition
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
* format .cue definition
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
2022-03-15 10:53:22 +08:00
Somefive
e2275efe56
Feat: local virtual cluster + namespace in topology ( #3436 )
...
* Feat: virtual cluster local + namespace
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Chore: refactor some names
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-03-15 10:06:36 +08:00
Somefive
c054ee32b1
Fix: use clusterLabelSelector as default ( #3438 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-03-14 19:30:52 +08:00
Somefive
19424cfaa4
Fix: add state keep for healthy suspend ( #3426 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-03-14 14:38:43 +08:00
Rimond
a5fb09814e
Fix(docs): rollout example error ( #3427 )
...
* modify docs errors
Signed-off-by: liming.jlm <liming.jlm@alibaba-inc.com >
* modify the incorrect file name
Signed-off-by: liming.jlm <liming.jlm@alibaba-inc.com >
Co-authored-by: liming.jlm <liming.jlm@alibaba-inc.com >
2022-03-14 13:13:05 +08:00
Hongchao Deng
c1b116b360
Chore: update CODEOWNERS to promote barnettZQG and leejanee ( #3435 )
...
Signed-off-by: Hongchao Deng <hongchaodeng1@gmail.com >
2022-03-14 10:22:57 +08:00
Shukun Zhang
3af893950e
add vela status --endpoint into the tips for vela up ( #3433 )
...
Co-authored-by: zhangshukun <zhangshukun.7@bytedance.com >
2022-03-14 09:39:11 +08:00
barnettZQG
20583e089a
Feat: support query applied resources by velaQL ( #3423 )
...
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-03-11 21:22:58 +08:00
qiaozp
96f8e4dc4c
Feat: support preventing component from garbage collection ( #3424 )
...
* Feat: support preventing component from garbage collect
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* reviewable
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* Chore: add doc for changes
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* Chore: add comments
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* Chore: change json tag
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
v1.3.0-alpha.1
2022-03-11 17:32:21 +08:00
wyike
68e2634911
add more test for complicated semver check ( #3425 )
...
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-03-11 16:19:32 +08:00
Zheng Xi Zhou
c06dbf3142
Feat: upgrade API version for Terraform Controller ( #3396 )
...
* Upgrade API version for Terraform Controller
- Change json tag of spec.Region to `customRegion` in Configuration https://github.com/oam-dev/kubevela/issues/3384
- Use .status.observedGeneration to make Terraform outputs is latest https://github.com/oam-dev/terraform-controller/pull/269
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
* fix ci
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
2022-03-11 16:13: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
wyike
b13132ceba
Feat: helm chart keep fluxcd addon while delete ( #3404 )
...
* keep fluxcd addon will delete
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-03-11 14:46:28 +08:00
Somefive
70408e4712
Feat: support vela cluster labels add/del to manage cluster labels ( #3413 )
...
* Feat: add vela cluster label command
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Feat: add vela cluster label command to help manage cluster labels
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: add e2e test
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: use vela cluster labels
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-03-11 14:13:17 +08:00
Somefive
b975c313c3
Fix: add parallelism params for deploy step ( #3411 )
...
* Fix: add parallelism params for deploy step
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: add test
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: add e2e test
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-03-11 13:20:12 +08:00
Somefive
a8dfc99ec9
Fix: pend registry test ( #3420 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-03-11 11:35:40 +08:00
Zheng Xi Zhou
ca8d66471a
Feat: add @evanli18 as one Reviewer ( #3402 )
...
Fix #3330
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
2022-03-10 20:25:47 +08:00
Somefive
d5e8b68ad2
Fix: rework parallel execution for ApplyComponents and ResourceKeeper Dispatch ( #3407 )
...
* Fix: applyComponents lock and rework parallel execution
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: rename
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-03-10 16:43:22 +08:00
Somefive
d8f95c9cf8
Feat: support multicluster service in application status ( #3387 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-03-10 10:21:56 +08:00
maxiangbo
52f3636a2d
Feat: support gitee repository in addon registry ( #3393 )
...
* Feat: support gitee repository in addon registry
Signed-off-by: fourierr <maxiangboo@163.com >
* Feat: support gitee repository in addon registry
Signed-off-by: maxiangbo <maxiangboo@cmbchina.com >
Signed-off-by: fourierr <maxiangboo@yeah.net >
* Feat: support gitee repository in addon registry Signed-off-by: maxiangbo <maxiangboo@cmbchina.com >
* Feat: support gitee repository in addon registry Signed-off-by: maxiangbo <maxiangboo@cmbchina.com >
Signed-off-by: fourierr <maxiangboo@qq.com >
Co-authored-by: fourierr <maxiangboo@yeah.net >
2022-03-10 10:11:45 +08:00
Diego Pinheiro
04db938ffa
fix - rename docs example dir ( #3408 )
...
Signed-off-by: GitHub <noreply@github.com >
2022-03-10 10:02:46 +08:00
Somefive
f9635de027
Fix: auto deploy spec missing ( #3386 )
...
* Fix: auto deploy spec missing
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: modify test
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-03-09 11:28:52 +08:00
Diego Pinheiro
d5ad037173
Fix: Helm Chart values.yaml typo ( #3403 )
...
* fix - typo
Signed-off-by: GitHub <noreply@github.com >
* fix - typo helm values
Signed-off-by: GitHub <noreply@github.com >
2022-03-09 11:18:46 +08:00
barnettZQG
600b3a7044
Feat: make the component list is in reverse order ( #3350 )
...
* Feat: update api doc
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Feat: make the component list is in reverse order.
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Feat: update swagger config
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-03-08 17:59:22 +08:00
Avery
7bc34b8dd9
Feat: support def doc-gen <LocalFile.yaml> and corresponding functions ( #3368 )
...
* add doc-gen --local <LocalFile> and corresponding functions
Signed-off-by: Nicola115 <2225992901@qq.com >
* go format
Signed-off-by: Nicola115 <2225992901@qq.com >
* refactor the usage of vela def doc-gen from local file; refactor the function GenerateReferenceDoc
Signed-off-by: Nicola115 <2225992901@qq.com >
* gofmt and goimports
Signed-off-by: Nicola115 <2225992901@qq.com >
* update prompts info
Signed-off-by: Nicola115 <2225992901@qq.com >
* remove parseLocalDefinition struct, using ComponentDefinition instead
Signed-off-by: Nicola115 <2225992901@qq.com >
* standardize the function ParseLocalFile
Signed-off-by: Nicola115 <2225992901@qq.com >
* add unit test for ParseLocalFile
Signed-off-by: Nicola115 <2225992901@qq.com >
* remove redundant functions
Signed-off-by: Nicola115 <2225992901@qq.com >
* remove redundant lines and do goimports formatting
Signed-off-by: Nicola115 <2225992901@qq.com >
2022-03-08 16:58:39 +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
Zhiyu Wang
bed1fb373e
Fix: The generated swagger.json is malformed. ( #3372 ) ( #3373 )
...
Signed-off-by: Zhiyu Wang <zhiyuwang.newbis@gmail.com >
2022-03-08 15:48:05 +08:00
Somefive
b5ce5df9c5
Fix: remove deprecated rt field in app status ( #3388 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-03-08 15:40:31 +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
Kunshuai Zhu
0b0ed60b42
Feat: init multi-cluster metrics management ( #3365 )
...
* Feat: init multi-cluster metrics management
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
* Refactor and add metrics collection for metrics-server
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
* Modify comment
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
* Fix staticcheck
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
* Fix some error
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
* Fix
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
2022-03-08 14:20:36 +08:00
Somefive
aeaa199982
Fix: remove useless envbinding crd ( #3379 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-03-08 13:40:05 +08:00
qiaozp
751aed0098
Fix: install definition script ( #3376 )
...
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
2022-03-08 12:26:25 +08:00
Somefive
17ee4268e2
Fix: upgrade dependency to fix alerts ( #3378 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-03-07 14:16:40 +08:00
Somefive
7a30ec61d6
Fix: remove unused variable ( #3377 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-03-07 11:57:59 +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
dependabot[bot]
93425889ef
Chore(deps): Bump github.com/containerd/containerd from 1.4.12 to 1.4.13 ( #3364 )
...
Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd ) from 1.4.12 to 1.4.13.
- [Release notes](https://github.com/containerd/containerd/releases )
- [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md )
- [Commits](https://github.com/containerd/containerd/compare/v1.4.12...v1.4.13 )
---
updated-dependencies:
- dependency-name: github.com/containerd/containerd
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-04 09:43:04 +08:00
old prince
91c6458f35
Fix:deploy application api return value ( #3358 )
2022-03-03 18:27:13 +08:00
wyike
1cb4426e4b
fix windows bug ( #3351 )
...
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-03-03 14:43:40 +08:00
Sunghoon Kang
3399742709
Fix: clone request if round tripper modifies it ( #3354 )
...
Currently, multicluster round trippers are modifying request directly.
However, golang documentation says `RoundTrip` should not modify the
request.
This commit fixes round trippers to clone the request before the
modification.
https://pkg.go.dev/net/http#RoundTripper
Signed-off-by: Sunghoon Kang <hoon@linecorp.com >
2022-03-03 14:42:24 +08:00
c1_zh
4ec919e009
Feat: Addon yaml files discovery logic improvement ( #3356 )
...
Signed-off-by: cezhang <c1zhang.dev@gmail.com >
2022-03-03 13:12:23 +08:00
StevenLeiZhang
dfd316ef7b
Fix: Position of parameter is always changing on addon's details page. ( #3345 )
...
Signed-off-by: StevenLeiZhang <zhangleiic@163.com >
2022-03-02 20:46:13 +08:00