Skip to content

Conversation

@dashanji
Copy link
Contributor

@dashanji dashanji commented Mar 4, 2024

Ⅰ. Describe what this PR does

  • Support to configure the cache size of vineyard fuse.
  • Enable the serverless mode for vineyard runtime.
  • Support to configure the networkMode and podMetadata of vineyard components.
  • Add the related docs.

@fluid-e2e-bot
Copy link

fluid-e2e-bot bot commented Mar 4, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign cheyang for approval by writing /assign @cheyang in a comment. For more information see:The Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@dashanji dashanji changed the title Support serverless for vineyard Support serverless for Vineyard Runtime Mar 4, 2024
@fluid-e2e-bot
Copy link

fluid-e2e-bot bot commented Mar 4, 2024

Hi @dashanji. Thanks for your PR.

I'm waiting for a fluid-cloudnative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@codecov
Copy link

codecov bot commented Mar 4, 2024

Codecov Report

Attention: Patch coverage is 77.77778% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 64.21%. Comparing base (ebfb25a) to head (709f189).
Report is 17 commits behind head on master.

❗ Current head 709f189 differs from pull request most recent head f1cee86. Consider uploading reports for the commit f1cee86 to get more accurate results

Files Patch % Lines
pkg/application/inject/fuse/injector.go 71.42% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3749      +/-   ##
==========================================
- Coverage   64.29%   64.21%   -0.09%     
==========================================
  Files         476      474       -2     
  Lines       28327    28252      -75     
==========================================
- Hits        18214    18141      -73     
+ Misses       7947     7946       -1     
+ Partials     2166     2165       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dashanji dashanji force-pushed the support-serverless-for-vineyard branch from ccbbad4 to 3fdce33 Compare March 4, 2024 05:46
injectSidecar = ".sidecar" + inject
InjectServerless = "serverless" + inject // serverless.fluid.io/inject
InjectUnprivilegedFuseSidecar = "unprivileged" + injectSidecar // unprivileged.sidecar.fluid.io/inject
InjectVineyardSidecar = "vineyard" + injectSidecar // vineyard.sidecar.fluid.io/inject
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think if it's no need to set InjectVineyardSidecar by user. It should be determined automatically.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, I get it.

@dashanji dashanji force-pushed the support-serverless-for-vineyard branch from 47da8df to 709f189 Compare March 4, 2024 06:55
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 4, 2024

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
19.1% Duplication on New Code

See analysis details on SonarCloud

@dashanji
Copy link
Contributor Author

dashanji commented Mar 5, 2024

Hi @cheyang @TrafalgarZZZ , could you please take a look at this?

@dashanji dashanji force-pushed the support-serverless-for-vineyard branch from 709f189 to 3f5ebfc Compare April 10, 2024 07:26
@dashanji dashanji changed the title Support serverless for Vineyard Runtime Support cache size of vineyard fuse and enable serverless mode for Vineyard Runtime Apr 10, 2024
@dashanji dashanji changed the title Support cache size of vineyard fuse and enable serverless mode for Vineyard Runtime Support cache size of vineyard fuse and enable serverless mode for vineyard runtime Apr 10, 2024
Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
…erverless mode.

Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
@dashanji dashanji force-pushed the support-serverless-for-vineyard branch from 3f5ebfc to 80de31f Compare April 10, 2024 07:31
Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
…onents.

Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
@sonarqubecloud
Copy link

Quality Gate Passed Quality Gate passed

Issues
21 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
20.9% Duplication on New Code

See analysis details on SonarCloud

}

// check whether the podSpecs is using vineyard runtime
func (s *Injector) checkVineyardPlatform(podSpecs *mutator.MutatingPodSpecs, runtimeInfos map[string]base.RuntimeInfoInterface) string {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think Vineyard is a runtime not platform.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for this catch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants