Add JuiceFS WebDAV server support#110
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
Agent-Logs-Url: https://github.com/juicedata/juicefs-operator/sessions/1f417b46-5f3a-4c67-a303-ad6fbe4f4cb4 Co-authored-by: zxh326 <21299255+zxh326@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for JuiceFS WebDAV
Add JuiceFS WebDAV server support
May 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new
WebDAVCRD that manages a JuiceFS WebDAV server deployment, exposing a JuiceFS filesystem over the WebDAV protocol via a KubernetesDeployment+Service.New API
Key design decisions
name+token): runsjuicefs auth <volume>thenexec juicefs webdav <volume> 0.0.0.0:<port>metaurl): skips auth, runsexec juicefs webdav <metaurl> 0.0.0.0:<port>directly; env-var injection for stripped secrets is skipped to avoid missing-key pod failuressecretKeys,secretStrippedEnvs,initconfig) from the CacheGroup builderPending/Progressing/Readyphases derived fromDeployment.Status.ReadyReplicasChanges
api/v1/webdav_types.go—WebDAV/WebDAVListCRD schema; short namewdavapi/v1/zz_generated.deepcopy.go— generated DeepCopy methodspkg/builder/webdav.go—WebDAVBuilder: generatesDeploymentandServicepkg/builder/webdav_test.go— 12 unit tests covering EE/CE modes, option parsing, Deployment/Service generationinternal/controller/webdav_controller.go— reconciler managing Deployment + Service lifecycle and status synccmd/app/controller.go— registersWebDAVReconcilerpkg/common/common.go—KindWebDAV,LabelWebDAV,LabelWebDAVValue,MaxWebDAVConcurrentReconciles,GenWebDAVNameconfig/crd/bases/juicefs.io_webdavs.yaml— generated CRD manifest (viamake manifests)config/rbac/role.yaml— auto-generated RBAC rules forwebdavsresources