* Fix: use Terraform provider name as application in CLI
In CLI, use Terraform provider name as application name when
create a Provider. Also display there providers in VelaUX.
1). manually created a Terraform Provider object, like https://github.com/oam-dev/terraform-controller/blob/master/getting-started.md#aws
2). by enabling a Terraform provider addon in version older than v1.3.0
3). by create a Terraform provider via `vela provider add`
4). by VelaUX
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* fix
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* add UTs
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* add addons gitlab support
Signed-off-by: Namo <lgj112113@163.com>
* add addons gitlab support
Signed-off-by: Namo <lgj112113@163.com>
* test file edit
Signed-off-by: Namo <lgj112113@163.com>
* typo edit
Signed-off-by: Namo <lgj112113@163.com>
* notes edit
Signed-off-by: Namo <lgj112113@163.com>
* move third party imports block
Signed-off-by: Namo <lgj112113@163.com>
* code format edit
Signed-off-by: Namo <lgj112113@163.com>
* notes edit
Signed-off-by: Namo <lgj112113@163.com>
* create addon registry bug fix
Signed-off-by: Namo <lgj112113@163.com>
* add gitlab addon registry bug fix
Signed-off-by: Namo <lgj112113@163.com>
* add addon gitlab support test file
Signed-off-by: Namo <lgj112113@163.com>
* add addon gitlab support test note edit
Signed-off-by: Namo <lgj112113@163.com>
* add addon gitlab branch support and fix bug
Signed-off-by: Namo <lgj112113@163.com>
* addon gitlab registry repo name invalid
Signed-off-by: Namo <lgj112113@163.com>
Co-authored-by: Namo <lgj112113@163.com>
* Fix: change seldon service from istio to ambassador
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
* fix lint
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
* get service name form sdep
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
* Feat: add seldon virtual service support in endpoints
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
* fix ut
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
* Fix: pass on properties of Terraform typed application to Configuration
Pass on properties like `writeConnectionSecretRef`, `Region` and `providerRef`
to Configuration.
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* revert definitions
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
- Clean RBAC
- Generate Job/Pod/ConfigMap/Secret in the namespace of a Configuration
- Fix: The secret generated by Terraform won't regenerate after it's manually deleted
- Fix status ProvisioningAndChecking
- The Kubernetes backend should keep consistent
- Override Region of a provider in Configuration
- Set region to spec.region
* Fix: allow external cloud resources to be kept when Application is deleted
Provide an option for users whether to keep provisioned cloud resources when Terraform-typed Application is deleted.
Fix#2697
* delete file
* upgrade release version of Terraform controller
* fix ci
* Fix: vela status from app.status.services
* Feat: refine cli and support terraform logs
* Feat: support remote exec
* Feat: port-forward support multicluster
* Fix: vela status+port-forward test
Co-authored-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Feat(rollout): fill rolloutBatches if empty when scale up/down (#2569)
* Feat: fill rolloutBatches if empty
* Fix: fix unit-test
* Test: add more test
Fix: lint
Fix: fix lint
* Update release.yml (#2537)
* Feat: add registry, merge registry and cap center (#2528)
* Feat: add registry command
* Refactor: comp/trait command combine with registry
* Feat: refactor `vela comp/trait`
* Fix: import
* Fix: fix if type is autodetects.core.oam.dev
* Fix: fix list from url
* Fix: test
* Feat: add test
* Fix: remove dup test
* Fix: test
* Fix: test
* Fix: fix label filter
* Fix: reviewable
* Fix test
* fix personal repo in test
* Fix test
* Fix test
* add some boundary check
* reviewable
* Fix: fix nocalhost trait (#2577)
* fix incorrect addon status (#2576)
* Fix(cli): client-side throttling in vela CLI (#2581)
* fix cli throttling
* fix import
* set to a lower value
* remove addon with no defs (#2574)
* Feat: vela logs support multicluster (#2593)
* Feat: add basic multiple cluster logs
* fix context
* Fix select style
* Fix select style
* remove useless env
* fix naming
* Feat: vela cluster support use ocm to join/list/detach cluster (#2599)
* Feat: add render component and apply component remaining (#2587)
* Feat: add render component and apply component remaining
* fix ut
* fix e2e
* allow import package in custom status cue template (#2585)
Co-authored-by: chwetion <chwetion@foxmail.com>
* Fix: abnormal aux name (#2612)
* 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
* Fix: change Initializer to Application for addon Observability (#2615)
In this doc, updated the Observability implementation from initializer
to Application. I also store definitions as it's not well stored in
vela-templates/addons/observability
* Fix: fix backport param (#2611)
* Fix: add owner reference in workflow context cm (#2573)
* Fix: add owner reference in workflow context cm
* fix ci
* delete useless test case
* Fix: op.delete bugs (#2622)
* Fix: op.delete some bugs
* Fix: app status update error
Fix: make reviewable
* Fix: show reconcile error log (#2626)
* Feat: add reconcile timeout configuration for vela-core (#2630)
* Fix: patch status retry while conflict happens (#2629)
* Fix: allow definition schema cm can be same name in different definition type (#2618)
* Fix: fix definition schema cm name
* fix ut
* fix ut
* fix show
* add switch default case
* Feat: remove envbinding policy into workflow (#2556)
Fix: add more test
* Feat: add vela prob to test cluster (#2635)
* Fix: upgrade stern lib to avoid panic for vela logs (#2650)
* Fix: filter loggable workload in vela logs (#2651)
* Fix: filter loggable workload in vela logs
* reviewable
* Feat: add vela exec for multi cluster (#2299)
fix
support vela exec
* Fix: health check will check for multiclusters (#2645)
* Fix: minor fix for vela cli printing (#2655)
* Fix: minor fix for vela cli printing
* add dockerfile go mod cache
* Feat: support apiserver-related multicluster features (#2625)
* Feat: remove envbinding policy into workflow
Feat: add support for env change (env gc)
Fix: fix rollout timeout setting bug
* Feat: support disable trait and env without workflow
* Fix: add hint for replaced value
Co-authored-by: wyike <wangyike_wyk@163.com>
Co-authored-by: basefas <basefas@hotmail.com>
Co-authored-by: qiaozp <47812250+chivalryq@users.noreply.github.com>
Co-authored-by: Tianxin Dong <dongtianxin.tx@alibaba-inc.com>
Co-authored-by: yangsoon <yangsoonlx@gmail.com>
Co-authored-by: Chwetion <137953601@qq.com>
Co-authored-by: chwetion <chwetion@foxmail.com>
Co-authored-by: Jian.Li <74582607+leejanee@users.noreply.github.com>
Co-authored-by: Zheng Xi Zhou <zzxwill@gmail.com>
Co-authored-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Feat: support serviceaccount in multicluster
* Fix: add compatibility & support sa
* Fix: add multicluster sa test
* Fix: add test for upgrade func
* Style: format
* 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
* Support server-side Terraform as cloud resource provider
Provide another schematic `Terraform` to provision cloud
resource.
Fix#698
* make namespace optional
add unit-tests
* support vela show to generate componentdefinition usage
* add unit-tests
* tidy go mod
* clean go mod and updated go sum
* Remove `variable` from `properties` of Terraform compoent
* don't literally set component catagory
* refine error message when a capability could not be found
* fix ut
* Code refactor and add unittests
* fix ci issues
* Update references/plugins/references.go
Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com>
* add test cases
* fix ci issue
* revert lowercase of "Properties"
* fix ci issue
* add ut for appfile
* fix e2e issue
* add docs
* fix official site build
Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com>
move dry-run and live-diff into an independent pkg
WIP add sample and doc
WIP unit test for live-diff
add unit test
Signed-off-by: roy wang <seiwy2010@gmail.com>
* [Improvement-1457] Use kind cmd code to load docker image instead of local kind binary
* [Improvement-1457] Update copyright year and kind repo declaration
* delete 4 standard controllers related code
delete related yaml
delete setup controller
add back podspecworkload controller
try to fix e2e
update related docs
fix failed test
fix docs problem
remove useless scheme
up timeout for e2e-test
change doc structure
* fix go mod
Fetched cue parameters from workloaddefinition/traitdefinition, generated
OpenAPI v3 schema, fixed problems of tainted `description` filed, added filed
"title" required by form-render component, added it in API server router
To fix#680
* Support disable installation of builtin capabilities
Added vela core bootstrap flag `--enable-caps` to support no
installation for builtin capabiliteis
Feature #658
* revert flag to "disable-cpas"
Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com>
* Address comments
Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com>
Init: Using CUE to implement OAM model on Kubernetes server side
* vela server
* fix refator
* lint code
* vela server
* fix refator
* lint code
* rebase upstream
* remove lister
* add vela-server sample
* fix lint error
* fix lint error
* fix check-diff error
* add test case
* add test case for application controller
* add reconciler test with ginkgo
* remove make server
* remove the kustomize scripts
* fix units test bug
* config direct
* suite test
* add application validater
Co-authored-by: lj176172 <lj176172@alibaba-inc.com>
Support Cron type and resource usages (cpu) type
scalling
integrate with OAM by getting child deployment resource via OAM util library
support scaling PodSpecWorkload
support deployment scaling
remove unnecessary comment
support KEDA cron + resource metrics with Keda context
fix ownerreference issue
reorg imports
address part of commemts and refactor code
revert ownerRef settings as somehome leaving spec.replicas doesn't work
modify e2e setup to wait oam-runtime pod running
add k8sclient in e2e test
refine tracking status of vela init
Signed-off-by: roy wang <seiwy2010@gmail.com>
* Implement API `api/envs/default/apps/
implement API `api/envs/default/apps/ and refactor code
* address comments from @wonderflow and @ryan
* fix code rebase issue
* Implement env APIs
implemented APIs for env and make api-test
and e2e-setup
* fix ci issues
* address comments