Skip to content

Add JuiceFS Gateway operator support#111

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/support-juicefs-gateway
Draft

Add JuiceFS Gateway operator support#111
Copilot wants to merge 3 commits into
mainfrom
copilot/support-juicefs-gateway

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 12, 2026

Adds a new Gateway CRD that runs juicefs gateway as a Kubernetes Deployment + Service, exposing a JuiceFS volume as an S3-compatible API.

New CRD: Gateway (juicefs.io/v1, shortName: gw)

Supports both editions:

  • EE: secretRef → runs juicefs auth <volume> then juicefs gateway <volume> <addr>
  • CE: metaURL → runs juicefs gateway <meta-url> <addr> directly

Key spec fields: image, replicas, address (default 0.0.0.0:9000), options, serviceType, resources, tolerations, affinity, nodeSelector.

apiVersion: juicefs.io/v1
kind: Gateway
metadata:
  name: my-gateway
spec:
  image: juicedata/mount:ee-5.1.1-1faf43b
  replicas: 1
  secretRef:
    name: juicefs-secret
  address: "0.0.0.0:9000"
  serviceType: ClusterIP

Implementation

  • api/v1/gateway_types.go — CRD type definitions; deepcopy auto-generated
  • pkg/builder/gateway.go — builds Deployment (with auth+gateway shell command) and Service
  • internal/controller/gateway_controller.go — reconciles Deployment + Service, reflects ReadyReplicas/Replicas into .status.phase (Progressing / Ready)
  • cmd/app/controller.go — registers the GatewayReconciler
  • config/crd/bases/, config/rbac/role.yaml, dist/crd.yaml — regenerated manifests

Copilot AI linked an issue May 12, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add support for JuiceFS gateway Add JuiceFS Gateway operator support May 12, 2026
Copilot AI requested a review from zxh326 May 12, 2026 03:44
Copilot finished work on behalf of zxh326 May 12, 2026 03:44
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.

support juicefs gateway

2 participants