Ayush Kumar
bdf647df8c
Feat: native helm component and provider ( #7080 )
...
* Proof Concept
Signed-off-by: Brian Kane <briankane1@gmail.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* Cleanup dispatch stages and remove dry run namespaces
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* Single Health Condition Working
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* Multiple Health Conditions
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* Support Empty Health Status
Signed-off-by: Brian Kane <briankane1@gmail.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* Caching
Signed-off-by: Brian Kane <briankane1@gmail.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* includes changes from make-reviewable
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* minor formatting fixes
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* fix: handles cases where resource is nil
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: creates chart release before returning rendered resources to kubevela
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: helm release record via dry-run for helm list visibility
The previous createChartRelease did a real helm install/upgrade which
deployed resources directly, conflicting with KubeVela's dispatch
("exists but not managed by any application" errors). Also, Helm's
lazy client via cli.New().RESTClientGetter() silently wrote to
in-memory storage instead of Kubernetes secrets, so helm list never
showed releases.
Fix: use dry-run install to build a release object without deploying
resources, and bypass Helm's lazy client by creating a direct
Kubernetes clientset wired to helmdriver.NewSecrets. Set KubeVersion
from the real cluster version to pass chart constraints.
Prevent duplicate revisions on repeated reconciles via mutex
serialization and in-memory fingerprint tracking (chartVersion +
values). New revisions are only created when chart version or values
actually change.
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* fix: override Kubernetes version for kubeVersion validation in chart release
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Enhance Helm chart component definition and CUE provider, update API types, and add new examples and documentation.
Signed-off-by: Chaitanya Reddy Onteddu <co@guidewire.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Add Helm uninstall action and optimize install/upgrade with release fingerprinting and KubeVela ownership labels.
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Introduce to prevent resources from being applied while ensuring they are recorded for garbage collection, and apply it to Helm release secrets.
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Enhance velaLabelPostRenderer to include Helm ownership annotations and improve cache invalidation logic for Helm releases
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Enhance Helm release secret tracking for garbage collection during application deletion and upgrades
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
Co-Authored-By: Jerrin Francis <jerrinfrancis7@gmail.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Add Helm chart test and application definition for podinfo deployment
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Refactor Helm release secret handling and improve metadata filtering for KubeVela adoption
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Label existing Helm release secrets with KubeVela ownership for better tracking and cleanup
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Remove outdated documentation files for Helm integration and revision management
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Add various Helm chart application test and improve test coverage for Helmchart component
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Update Helm chart tests to validate deployment list and ensure label presence
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Enhance Helm chart tests for resource verification and application health checks
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Update Helm chart test scenarios for multi-component health checks and resource configurations
Signed-off-by: Anaswara Suresh <anaswarasuresh2212@gmail.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Implement dry-run mode for Helm provider to enhance validation without cluster interaction
Signed-off-by: Anaswara Suresh <anaswarasuresh2212@gmail.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Refactor import statements and enhance Helmchart edge case tests for better error handling and validation
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Refactor Helm provider methods for improved error handling and retry logic during installation
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Improve Helm provider tests and documentation with enhanced assertions and example configurations
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Register helm package with cuex.DefaultCompiler for improved import resolution
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Remove crossplane application configuration from crossplane-app.yaml
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Enhance workload compiler with external package loading and improve Helm chart health checks
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Remove unused cuex import and initialization function from helm provider
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Replace cuex.DefaultCompiler with localcuex.WorkloadCompiler for improved CUE compilation
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Implement dry-run mode for Helm provider functions during validation
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* test: add unit tests for Helm provider and workflow provider
- Created suite tests for the Helm provider in pkg/cue/cuex/providers/helm/suite_test.go.
- Implemented unit tests for Helm workflow provider in pkg/workflow/providers/helm/helm_test.go.
- Added suite tests for Helm workflow provider in pkg/workflow/providers/helm/suite_test.go.
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
* feat: Add additional health check tests for error scenarios
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
* feat: Enhance health check logic and improve documentation in helmchart definition
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
* feat: Refactor helmchart template for improved readability and structure
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
* docs: remove redundant struct-only tests from helm_test.go
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
* Feat: Implement CUE sanitization for OpenAPI schema generation
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* feat: Add tests for rendering and fetching Helm charts with dry-run support
Signed-off-by: vaibhav0096 <vaibhav.agrawal0096@gmail.com >
* feat: Enhance required parameter validation tests with retry logic for webhook synchronization
Signed-off-by: vaibhav0096 <vaibhav.agrawal0096@gmail.com >
* feat: Improve chart version retrieval by sorting entries and enhancing error messages
Signed-off-by: vaibhav0096 <vaibhav.agrawal0096@gmail.com >
* feat: Enhance primary output handling for Helm charts with stable ConfigMap metadata
Signed-off-by: vaibhav0096 <vaibhav.agrawal0096@gmail.com >
* chore: Fix CUE formatting alignment in helmchart definition
Signed-off-by: vaibhav0096 <vaibhav.agrawal0096@gmail.com >
* feat: Extend timeout for self-healing Helmchart tests to improve reliability
Signed-off-by: vaibhav0096 <vaibhav.agrawal0096@gmail.com >
* feat: Increase timeout for golangci-lint to enhance linting reliability
Signed-off-by: vaibhav0096 <vaibhav.agrawal0096@gmail.com >
---------
Signed-off-by: Brian Kane <briankane1@gmail.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
Signed-off-by: Chaitanya Reddy Onteddu <co@guidewire.com >
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
Signed-off-by: Anaswara Suresh <anaswarasuresh2212@gmail.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
Signed-off-by: vaibhav0096 <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Brian Kane <briankane1@gmail.com >
Co-authored-by: Amit Singh <singhamitch@outlook.com >
Co-authored-by: Jerrin Francis <jerrinfrancis7@gmail.com >
Co-authored-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
Co-authored-by: Chaitanya Reddy Onteddu <co@guidewire.com >
Co-authored-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
Co-authored-by: Vishal Kumar <vishal210893@gmail.com >
Co-authored-by: Anaswara Suresh <anaswarasuresh2212@gmail.com >
Co-authored-by: vaibhav0096 <vaibhav.agrawal0096@gmail.com >
2026-04-15 11:06:33 +01:00
Chaitanyareddy0702
d627ecea2a
Chore: Upgrade cuelang version to v0.14.1 ( #6877 )
...
Webhook Upgrade Validation / webhook-upgrade-check (push) Failing after 24s
* chore: updates culenag version and syntax across all files
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* debuggin: reverts tf provider changes
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* Refactor: Simplify provider configuration by removing 'providerBasic' and directly defining access keys and region for providers
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* Refactor: Consolidate provider configuration by introducing 'providerBasic' for access keys and region
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* chore: reorganize import statements in deepcopy files for consistency
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* chore: reorder import statements for consistency across deepcopy files
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* Refactor: Safely handle pattern parameter selectors to avoid panics in GetParameters and getStatusMap
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* chore: add comment to clarify test context in definition_revision_test.go
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* chore: remove redundant comment from test context initialization in definition_revision_test.go
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* Refactor: Introduce GetSelectorLabel function to safely extract labels from CUE selectors
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* chore: add newline at end of file in utils.go
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* chore: increase timeout for multi-cluster e2e
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
---------
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
Co-authored-by: Amit Singh <singhamitch@outlook.com >
Co-authored-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
2025-10-23 10:56:37 +01:00
Brian Kane
56bc3b02e9
Feat: Consolidate Health & Status and Pass Status Context Data ( #6860 )
...
Signed-off-by: Brian Kane <briankane1@gmail.com >
2025-08-24 02:30:06 +08:00
Chaitanyareddy0702
af1fb9a0fd
Feat: Allow gating with components dependsOn field ( #6854 )
...
* Fix: Add workflow dynamically when user doesn't define workflow steps but adds dependsOn in the component
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
Signed-off-by: Reetika Malhotra <rmalhotra@guidewire.com >
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
* fix: modify ApplyComponentWorkflowStepGenerator Generate function
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
Signed-off-by: Reetika Malhotra <rmalhotra@guidewire.com >
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
* Feat: Add test cases for the component level dependsOn feature
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
Signed-off-by: Reetika Malhotra <rmalhotra@guidewire.com >
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
* <type>: <description> <jira number>
[optional body]
[optional footer]
Signed-off-by: Reetika Malhotra <rmalhotra@guidewire.com >
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
* Fix: Refactor component dependency tests and improve failure handling
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
* Fix: Update environment context handling in application tests and adjust repository name check in setup script
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
* Chore: Remove .sh file
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
* Fix: Update component dependency test cases and adjust timeout for application status check
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
* Fix: Clean up environment setup in component dependency tests
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
* Fix: Update component dependency images to use latest version and adjust test cases
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
* Fix: uncomment tests
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
* Fix: update failing database image to empty string to simulate pull failure
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
---------
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
Signed-off-by: Reetika Malhotra <rmalhotra@guidewire.com >
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
Co-authored-by: Reetika Malhotra <rmalhotra@guidewire.com >
Co-authored-by: Vishal Kumar <vishal210893@gmail.com >
2025-08-22 09:00:21 -07:00
Brian Kane
a27261bd14
Feature: Enhanced Status Reporting ( #6828 )
...
Signed-off-by: Brian Kane <briankane1@gmail.com >
2025-08-06 09:55:30 -07:00
Chaitanyareddy0702
52873eb7da
Fix: e2e-tests and unit-tests ( #6562 )
...
- Remove gomega from workflow e2e-test step
- Change the app phase to WorkFlowFailed when there is an error in workflow
- Change the app10.yaml file
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
Author: VibhorChinda <vibhorchinda@gmail.com >
2024-07-02 16:42:55 +08:00
Somefive
f15eba2c5f
Chore: remove legacy rollout and scope ( #6068 )
...
* Chore: remove legacy rollout & scope
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* remove outdated params
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* fix
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
---------
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2023-06-05 10:57:38 +08:00
Somefive
dd899c2b39
Chore: remove outdated apis(v1alppha2 ApplicationConfiguration Component, and HealthScope, Rollout) ( #6041 )
...
* remove outdated api
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* fix rt test: no component rt
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* recover context.revision to component hash
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
---------
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2023-06-01 09:32:49 +08:00
Somefive
e7dad3c9be
Fix: replication example componentdefinition miss workload field for webhook validation ( #5615 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2023-03-06 13:17:48 +08:00
Tianxin Dong
cd9ac72531
Chore: update cue version to attr and notification ( #4734 )
...
* Chore: update cue version to attr and notification
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Fix: docgen test
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
Co-authored-by: Somefive <yd219913@alibaba-inc.com >
2022-09-16 16:28:35 +08:00
qiaozp
e3c1e391f9
Chore: Migrate to k3d in CI & trim redundant steps ( #4652 )
2022-08-31 08:08:37 +08:00
Tianxin Dong
20bd1eeec5
Fix: fix notification workflow step ( #4656 )
...
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-08-25 11:47:02 +08:00
qiaozp
924d55381e
Feat: component replication ( #4449 )
2022-08-17 14:04:57 +08:00
Jianbo Sun
6a9064b823
Revert "Chore: upgrade kind in tests, fix flaky test ( #4105 )" ( #4450 )
...
This reverts commit 8aaf526877 .
2022-07-25 19:07:46 +08:00
qiaozp
8aaf526877
Chore: upgrade kind in tests, fix flaky test ( #4105 )
...
* Chore: upgrade kind in tests, fix some hacky test.
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* longer wait
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* make e2e-multicluster test timeout 20m
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* switch to kind v0.14.0
Signed-off-by: 伊灵 <qiaozhongpei.qzp@alibaba-inc.com >
2022-07-22 10:09:31 +08:00
Arena.Su
007f13d2ee
Feat(delay suspend): delayDuration in suspend step properties ( #3644 )
...
* Feat(delay suspend): add delayDuration in suspend step properties to support delay by certain time.Duration
Signed-off-by: suxiang <suxiang@asiainfo.com >
Signed-off-by: ArenaSu <704427617@qq.com >
* Feat(delay suspend): add delayDuration parameter to suspend cue
Signed-off-by: ArenaSu <704427617@qq.com >
* Feat(wait suspend): optimize wait suspend
Signed-off-by: ArenaSu <704427617@qq.com >
* Feat(wait suspend): change e2e test to local cluster env
Signed-off-by: ArenaSu <704427617@qq.com >
* Feat(wait suspend): fix WaitSuspend status modify bug
Signed-off-by: ArenaSu <704427617@qq.com >
* Feat(wait suspend): suspend cue parameter type error
Signed-off-by: ArenaSu <704427617@qq.com >
* Feat(wait suspend): set waitDuration optional param in suspend workflow step
Signed-off-by: ArenaSu <704427617@qq.com >
* Feat(wait suspend): add lost suspend.yaml
Signed-off-by: ArenaSu <704427617@qq.com >
* Feat(wait suspend): change solution to add suspendState
Signed-off-by: ArenaSu <704427617@qq.com >
* Feat(wait suspend): change durationWaiting to duration and add isPatch to gcResourceTrackers
Signed-off-by: ArenaSu <704427617@qq.com >
2022-04-22 11:40:13 +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
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
wyike
53081d043b
Chore: deprecate and delete approllout related code ( #3040 )
...
* Fex: delete useles approllout related code
Signed-off-by: wangyike <wangyike_wyk@163.com >
fix failed test
Signed-off-by: wangyike <wangyike_wyk@163.com >
Fix: failed e2e test
Signed-off-by: wangyike <wangyike_wyk@163.com >
fix-test
Signed-off-by: wangyike <wangyike_wyk@163.com >
fix test
Signed-off-by: wangyike <wangyike_wyk@163.com >
fix e2e-test
Signed-off-by: wangyike <wangyike_wyk@163.com >
fix e2e rollout test
Signed-off-by: wangyike <wangyike_wyk@163.com >
* delete useless test code
Signed-off-by: wangyike <wangyike_wyk@163.com >
* fix failed unit-test
Signed-off-by: wangyike <wangyike_wyk@163.com >
2022-01-06 14:33:11 +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
Somefive
a89bb69a62
Fix: add design docs for ResourceTracker ( #2909 )
...
* Fix: enhance rt logic and add docs
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
* Fix: test conflict
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
2021-12-13 19:41:42 +08:00
Somefive
b622cbdb7f
Feat: ResourceTracker new architecture ( #2849 )
...
* Feat: new rt
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
* Fix: add publish version
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
2021-12-10 15:00:03 +08:00
Tianxin Dong
d1f56743cc
Feat: add core definitions ( #2664 )
...
* Feat: add components and storage api-oriented defs
* add some examples
* change the dir
* resolve comments
* make reviewable
* fix example
* add labels and annotations in component
* add config map ref key in env
* add more traits
* add wfstep defs and rename
* fmt the cue
* re-struct all the definitions
* revert deprecated defs and add webhook def
* delete useless network trait
* fix generated tab
* fix indent
* fix webservice
* add labels
* comment webservice and worker's health check
* fix retainkeys
* fix webservice and worker's health check
* add suspend def which will be replaced by internal def
* fix cli and add labels
* fix script
* add ignore
* fix healthscope example
2021-11-29 15:02:16 +08:00
wyike
b0577a979a
Fix: fix delete a component from application not delete workload ( #2680 )
...
lint
Fix: error test
Fix: fix e2e rollout
Fix comment
2021-11-12 11:45:45 +08:00
wyike
7647ef9662
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
2021-10-28 17:50:28 +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
Yue Wang
6bf4a2c1f7
Feat(healthscope): add health-scope-binding policy and e2e test for health scope ( #2205 )
...
Signed-off-by: roywang <seiwy2010@gmail.com >
Co-authored-by: roywang <royyuewang@tencent.com >
2021-08-31 15:59:17 +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
13fc4e2b25
rollout controller find sourceRevision ( #1989 )
...
* rollout controller use last target as source and add whole process e2e-test
* modify makefile use regex include all rollout related test
* add example
* fix golint
* more wait time
* pending pod may let rollout stock in rollingBatches
* fix docs and tests comments
modify docs example
modify cue and yaml
* less pod in test avoid pod pending
2021-08-03 20:27:11 +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
wyike
4eb33e9239
split out oam-spec v0.2 charts ( #1842 )
...
* WIP disable oam related controller and webhok
change velue
fix spell error
change namespace
add e2e for oam-runtime
fix charts hack
fix e2e definition namespace
fix diasble contains list
fix e2e-test
* disable components handler
* fix flaky ac test
add every definition in oam-runtime-system namespace
* upload ac e2e-test
replace files
fix upload reports
* more wait time
2021-07-01 16:32:01 +08:00
Chwetion
b582ccc060
add application component name duplication check in webhook ( #1811 )
...
* add application component name duplication check in webhook
* Helm test will not clean up the test data, and the application test of the component with the same name created failed during e2e.
* fix the problems encountered during the test:
* ignore the parsing failure caused by the existing application without definition when checking;
* after the addition is successful, the resources left by the helm test are automatically cleaned up;
Co-authored-by: chwetion <chwetion@foxmail.com >
2021-06-24 16:47:17 +08:00
wyike
70eeec4c89
support restart scale operation by modify targetSize of AppRollout ( #1812 )
...
* WIP first commit
fix
* more wait time
* fix flaky test
2021-06-17 22:30:07 +08:00
Yue Wang
889e38e984
remove appContext from app/appRollout controller ( #1774 )
...
* refine assemble and dispatch
Signed-off-by: roy wang <seiwy2010@gmail.com >
* remove app context in app controller
modify clean up app revision
remove old resource tracker related logic
fix unit tests
Signed-off-by: roy wang <seiwy2010@gmail.com >
* fix e2e-test
- get rid of appCtx in test cases
- fix test cases according other logic changes in app controller
remove whole appcontext_test.go file
disable rollout related e2e test provisionally
disable resource tracker related e2e test provisionally
Signed-off-by: roy wang <seiwy2010@gmail.com >
* add finalizer logic for app controller
Signed-off-by: roywang <seiwy2010@gmail.com >
* add new apply option MustBeControllableByAny
make dispatch idempotent
Signed-off-by: roywang <seiwy2010@gmail.com >
* refactor rollout
* fix rollout finalize succeed
Signed-off-by: roywang <seiwy2010@gmail.com >
* add update trait and gc test
fix lint
* fix flaky e2e test
Signed-off-by: roywang <seiwy2010@gmail.com >
* fix comment
* fix comments and add sourceRevision dispatch
delete useless
Signed-off-by: Yue Wang <seiwy2010@gmail.com >
* fix app finalizer backward compatible
Signed-off-by: roywang <seiwy2010@gmail.com >
* fix backward compatability for deprecation of appContext
add unit test for apply option
add e2e test
Signed-off-by: Yue Wang <seiwy2010@gmail.com >
* fix app controller unit test
Signed-off-by: Yue Wang <seiwy2010@gmail.com >
* refine app controller apply logic
Signed-off-by: Yue Wang <seiwy2010@gmail.com >
* fix e2e test of resource tracker
fix e2e test of rollout plan
fix flaky e2e tests
Signed-off-by: Yue Wang <seiwy2010@gmail.com >
* refine comments and remove useless codes
Signed-off-by: Yue Wang <seiwy2010@gmail.com >
* disable appCtx controller
add Component handler into app controller
Signed-off-by: Yue Wang <seiwy2010@gmail.com >
Co-authored-by: wangyike <wangyike.wyk@alibaba-inc.com >
2021-06-12 14:46:32 +08:00
yangsoon
931ca3ea3e
fix bug: When the Component contains multiple traits of the same type, the status of the trait in the Application is reported incorrectly ( #1731 )
...
* fix status
* add test
* fix webhook
* add paramter context for customStatus
2021-05-31 18:44:15 +08:00
wyike
0a4c20c999
fix empty rolloutBatch will panic whole controller bug ( #1646 )
...
* add webhook for app and avoid controller panic
neat imports
* add test for rollout verify
2021-05-12 19:00:55 +08:00
wyike
83c9c17cc7
fix application rollout annotation false issue ( #1633 )
...
* fix annotation false issue
neat imports
* rewrite judge logic
* add webhook
* add webhook verify annotation
* fix test
fix bug
* modify error message
2021-05-11 19:12:25 +08:00
Ryan Zhang
2e43a6dc78
make sure we don't create more pods ( #1452 )
2021-04-12 15:48:20 -07:00
Ryan Zhang
325a4cdb0e
Add a new cloneset scale controller ( #1301 )
...
* add scale implementation
* fine tune the logic and adjust e2e test
* fix tests and fine tune logic
* try to fix flaky verification
* allow zero size step
* fix scale down check
2021-04-07 11:14:46 -07:00
Ryan Zhang
0629049e1f
add initial finalizer and abandon support ( #1362 )
...
* add initial finalizer and abandon support
* fix lint
2021-03-30 02:04:38 -07:00
Jianbo Sun
1c89435515
fix app upgrade without rollout and rollout plan will create multiple version resources ( #1315 )
...
* fix app upgrade without rollout and rollout plan will create multiple version resources
* add and enhance tests
* fix test
2021-03-26 22:20:55 +08:00
Ryan Zhang
0926469541
fix appRollout CRD version ( #1303 )
...
* fix appRollout CRD version
* make rollout e2e more robust
2021-03-26 08:23:10 +08:00
Jianbo Sun
53ae9aaa40
add webhook convert. ( #1282 )
...
fix diff
update example and test data version
fix convert function
fix e2e for helm
clean up creationTimestamp in a hack way
fix ci
pending package suit test
fix group version
fix ci
fix ut
rename type to kind
fix example
fix conflicts
Co-authored-by: yangsoon <yangsoonlx@gmail.com >
2021-03-24 17:15:20 -07:00
Ryan Zhang
a4fda31829
Restore rollout after the change to point to appRevision ( #1271 )
...
* modify appRollout to reference appRevision
* fine tune rollout e2e tests
2021-03-24 14:09:40 -07:00
yangsoon
b788401920
fix e2e_test
2021-03-18 12:12:08 +08:00
Ryan Zhang
2cebad6ff4
Enable more rollout e2e tests ( #1176 )
...
* enable a few CI tests
* fix webhook related test failure
2021-03-11 17:35:22 -08:00
Ryan Zhang
1048b399fd
rename appRollout and add more fine tune tests ( #1166 )
...
* rename appRollout and add more fine tune tests
* improve rollout
* do not advance AC if we are not rolling
* fix e2e test bug
* fix the test
2021-03-11 15:56:38 +08:00
WYike
994ef23c0c
modify controller,webhook,api,chart ( #1085 )
...
solve failed test
add compatibility test for old crd
add app ns for cli
modify compatibility test
solve compatibility problem
add testing for GetDefinition func with cluster scope CRD
generate code for compatibility-test
move testdata generate to makefile
optimize ci pipeline for compatibility-test
2021-03-04 23:14:18 -08:00
Ryan Zhang
6b73436362
add first rollout e2e test
2021-03-04 18:25:30 -08:00
天元
cfadfd8763
merge tests and run on CI
...
Signed-off-by: 天元 <jianbo.sjb@alibaba-inc.com >
2020-11-27 11:08:58 +08:00