Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
206 changes: 205 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ thiserror = "1.0"
utoipa = { version = "4.2", features = ["axum_extras", "uuid", "chrono"] }
utoipa-swagger-ui = { version = "6.0", features = ["axum"] }

# etcd
etcd-client = "0.14"

# Other
rand = "0.8"
base64 = "0.22"
Expand Down
17 changes: 17 additions & 0 deletions control-plane/volume-manager/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# etcd Configuration
ETCD_ENDPOINTS=http://localhost:2379

# Optional: Multiple endpoints for HA
# ETCD_ENDPOINTS=http://localhost:2379,http://localhost:2479,http://localhost:2579

# Node Configuration
NODE_ID=volume-manager-local
HOSTNAME=localhost
NODE_IP=127.0.0.1

# Optional: etcd Authentication
# ETCD_USERNAME=root
# ETCD_PASSWORD=secret

# Logging
RUST_LOG=debug
11 changes: 11 additions & 0 deletions control-plane/volume-manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,22 @@ shared = { path = "../shared/shared" }

# Async runtime
tokio = { workspace = true }
async-trait = { workspace = true }

# etcd
etcd-client = { workspace = true }

# Logging
tracing = { workspace = true }
tracing-subscriber = { workspace = true }

# Serialization
serde = { workspace = true }
serde_json = { workspace = true }

# Utilities
dotenvy = { workspace = true }
anyhow = { workspace = true }
thiserror = { workspace = true }
uuid = { workspace = true }
chrono = { workspace = true }
14 changes: 6 additions & 8 deletions control-plane/volume-manager/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,15 @@ COPY control-plane/failover-controller/Cargo.toml ./control-plane/failover-contr
COPY control-plane/sdn-controller/Cargo.toml ./control-plane/sdn-controller/
COPY control-plane/volume-manager/Cargo.toml ./control-plane/volume-manager/
COPY control-plane/registry/Cargo.toml ./control-plane/registry/
COPY shared/Cargo.toml ./shared/
COPY entity/Cargo.toml ./entity/
COPY migration/Cargo.toml ./migration/
COPY control-plane/shared/entity/Cargo.toml ./control-plane/shared/entity/
COPY control-plane/shared/migration/Cargo.toml ./control-plane/shared/migration/
COPY control-plane/shared/shared/Cargo.toml ./control-plane/shared/shared/

# Copy service and dependencies
COPY control-plane/volume-manager/ ./control-plane/volume-manager/
COPY shared/ ./shared/
COPY entity/ ./entity/
COPY migration/ ./migration/
COPY control-plane/shared/ ./control-plane/shared/

# Pre-build dependencies
RUN cargo build --bin volume-manager
RUN cargo build -p volume-manager

CMD ["cargo", "watch", "-x", "run --bin volume-manager"]
CMD ["cargo", "run", "-p", "volume-manager"]
Loading
Loading