Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: disable comprev when rollout trait not used #4281

Merged

Conversation

Somefive
Copy link
Collaborator

Signed-off-by: Somefive yd219913@alibaba-inc.com

Description of your changes

When rollout trait is not used in component, the component revision will not be created. (The computation of revision hash and revision name remains.)

I have:

  • Read and followed KubeVela's contribution process.
  • Related Docs updated properly. In a new feature or configuration option, an update to the documentation is necessary.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Special notes for your reviewer

@codecov
Copy link

codecov bot commented Jun 29, 2022

Codecov Report

Merging #4281 (36abad4) into master (0469ba4) will increase coverage by 0.06%.
The diff coverage is 90.90%.

@@            Coverage Diff             @@
##           master    #4281      +/-   ##
==========================================
+ Coverage   60.61%   60.68%   +0.06%     
==========================================
  Files         341      341              
  Lines       33148    33158      +10     
==========================================
+ Hits        20092    20121      +29     
+ Misses      10417    10401      -16     
+ Partials     2639     2636       -3     
Flag Coverage Δ
apiserver-unittests 34.13% <ø> (+0.08%) ⬆️
core-unittests 55.59% <9.09%> (+0.06%) ⬆️
e2e-multicluster-test 20.26% <90.90%> (-0.05%) ⬇️
e2e-rollout-tests 22.40% <90.90%> (+0.04%) ⬆️
e2etests 28.84% <72.72%> (-0.48%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ler/core.oam.dev/v1alpha2/application/generator.go 86.22% <0.00%> (-0.89%) ⬇️
pkg/features/controller_features.go 100.00% <ø> (ø)
...ller/core.oam.dev/v1alpha2/application/revision.go 72.29% <100.00%> (-0.23%) ⬇️
...kg/apiserver/infrastructure/datastore/datastore.go 66.66% <0.00%> (-11.12%) ⬇️
pkg/resourcekeeper/componentrevision.go 64.28% <0.00%> (-7.15%) ⬇️
.../manualscalertrait/manualscalertrait_controller.go 67.30% <0.00%> (-5.77%) ⬇️
pkg/workflow/providers/multicluster/deploy.go 77.52% <0.00%> (-2.25%) ⬇️
...aits/traitdefinition/traitdefinition_controller.go 70.52% <0.00%> (-2.11%) ⬇️
...kg/workflow/providers/multicluster/multicluster.go 81.25% <0.00%> (-2.09%) ⬇️
pkg/oam/util/helper.go 71.60% <0.00%> (-1.24%) ⬇️
... and 19 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0469ba4...36abad4. Read the comment docs.

@Somefive Somefive force-pushed the feat/disable-comprev-for-norollout branch 6 times, most recently from 8ea9cd1 to 3c9e2ae Compare June 30, 2022 02:24
@@ -93,6 +93,7 @@ helm install --create-namespace -n vela-system kubevela kubevela/vela-core --wai
| `optimize.enableInMemoryWorkflowContext` | Optimize workflow by use in-memory context. | `false` |
| `optimize.disableResourceApplyDoubleCheck` | Optimize workflow by ignoring resource double check after apply. | `false` |
| `optimize.enableResourceTrackerDeleteOnlyTrigger` | Optimize resourcetracker by only trigger reconcile when resourcetracker is deleted. | `true` |
| `featureGates.legacyComponentRevision` | if disabled, only component with rollout trait will create component revisions | `false` |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be true by default

@Somefive Somefive force-pushed the feat/disable-comprev-for-norollout branch from 3c9e2ae to 86afc61 Compare June 30, 2022 05:06
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
@Somefive Somefive force-pushed the feat/disable-comprev-for-norollout branch from 86afc61 to 36abad4 Compare June 30, 2022 05:22
@Somefive Somefive merged commit de37545 into kubevela:master Jun 30, 2022
@Somefive Somefive deleted the feat/disable-comprev-for-norollout branch June 20, 2023 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants