Add JuiceFS Gateway operator support#111
Draft
Copilot wants to merge 3 commits into
Draft
Conversation
Agent-Logs-Url: https://github.com/juicedata/juicefs-operator/sessions/feb11d9f-83db-4f86-9d70-34c5b166dd1c Co-authored-by: zxh326 <21299255+zxh326@users.noreply.github.com>
Agent-Logs-Url: https://github.com/juicedata/juicefs-operator/sessions/feb11d9f-83db-4f86-9d70-34c5b166dd1c Co-authored-by: zxh326 <21299255+zxh326@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for JuiceFS gateway
Add JuiceFS Gateway operator 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
GatewayCRD that runsjuicefs gatewayas a KubernetesDeployment+Service, exposing a JuiceFS volume as an S3-compatible API.New CRD:
Gateway(juicefs.io/v1, shortName:gw)Supports both editions:
secretRef→ runsjuicefs auth <volume>thenjuicefs gateway <volume> <addr>metaURL→ runsjuicefs gateway <meta-url> <addr>directlyKey spec fields:
image,replicas,address(default0.0.0.0:9000),options,serviceType,resources,tolerations,affinity,nodeSelector.Implementation
api/v1/gateway_types.go— CRD type definitions; deepcopy auto-generatedpkg/builder/gateway.go— buildsDeployment(with auth+gateway shell command) andServiceinternal/controller/gateway_controller.go— reconciles Deployment + Service, reflectsReadyReplicas/Replicasinto.status.phase(Progressing/Ready)cmd/app/controller.go— registers theGatewayReconcilerconfig/crd/bases/,config/rbac/role.yaml,dist/crd.yaml— regenerated manifests