[Refactor] rewrite the whole operator into rust

Open
#11 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
go, kubernetes, rust

Research direction

Start by reading the current Go operator and its kube-builder/client-gen setup for CRDs and client APIs, then compare the existing bendctl CRD requirements with the Rust-based approach. Done means the operator has been rewritten in Rust without the stated code-generation compatibility and OpenAPI semantic issues.

Written by the indexing model from the issue text.

Description

Currently operator follows the traditional approach using kube-builder and client-gen for CRD and client API generation.
Here have several things may become blocker for future use cases.

  1. bendctl(command line tool for databend) needs to maintain another CRD written in Rust which may introduce compatibility issues during version upgrade
  2. openapi semantics generated from rust-based CRDs are different from openapi semantics generated from cuelang(https://github.com/kube-rs/kube-rs/issues/606)

pros of operator written in Rust:

  1. no compatibility issues during code-generation
  2. smaller memory and resource usage(https://www.reddit.com/r/rust/comments/pzcu62/linkerd_211_now_includes_a_kubernetes_controller/)
Dominant language
Go
Stars
13
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from databendlabs/datafuse-operator

All issues in databendlabs/datafuse-operator

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.