forked from OtowoOrg/Stellar-K8s
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
102 lines (80 loc) · 3.04 KB
/
Cargo.toml
File metadata and controls
102 lines (80 loc) · 3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[package]
name = "stellar-k8s"
version = "0.1.0"
edition = "2021"
authors = ["Stellar K8s Contributors"]
description = "Cloud-Native Kubernetes Operator for Stellar Infrastructure"
license = "Apache-2.0"
repository = "https://github.com/stellar/stellar-k8s"
[dependencies]
# Kubernetes client and operator framework
kube = { version = "0.94", features = ["runtime", "derive", "unstable-runtime", "admission"] }
kube-runtime = { version = "0.94", features = ["unstable-runtime"] }
k8s-openapi = { version = "0.22", default-features = false, features = ["v1_30"] }
# kube-leader-election temporarily disabled due to k8s-openapi version conflict
# TODO: Re-enable once versions are aligned
# Async runtime
tokio = { version = "1", features = ["full"] }
futures = "0.3"
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_yaml = "0.9"
# Schema generation for CRDs
schemars = "0.8"
# Error handling
thiserror = "1"
anyhow = "1"
# CLI argument parsing
clap = { version = "4.5", features = ["derive", "env"] }
# Date/time handling
chrono = { version = "0.4", features = ["serde"] }
# Hostname for leader election
hostname = "0.4"
# Logging and tracing
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
tracing-opentelemetry = "0.22"
# OpenTelemetry for distributed tracing
opentelemetry = { version = "0.21", features = ["trace"] }
opentelemetry_sdk = { version = "0.21", features = ["rt-tokio"] }
opentelemetry-otlp = { version = "0.14", features = ["grpc-tonic", "http-proto"] }
# HTTP client for health checks
reqwest = { version = "0.12", features = ["json", "rustls-tls"] }
# REST API (optional)
axum = { version = "0.8.8", optional = true }
tower = { version = "0.4", optional = true }
tower-http = { version = "0.5", features = ["trace"], optional = true }
# Metrics
prometheus-client = { version = "0.22", optional = true }
once_cell = { version = "1", optional = true }
# TLS and certificate generation
rustls = "0.23"
rcgen = { version = "0.13", features = ["pem", "x509-parser"] }
axum-server = { version = "0.8.0", features = ["tls-rustls"] }
rustls-pemfile = "2.2.0"
rustls-pki-types = "1.14.0"
# Wasm runtime for custom validation plugins
wasmtime = { version = "24.0.5", optional = true }
wasmtime-wasi = { version = "24.0.5", features = ["preview1"], optional = true }
# Additional crypto for webhook TLS
tokio-rustls = { version = "0.25", optional = true }
# Base64 for Wasm plugin loading
base64 = { version = "0.21", optional = true }
# SHA256 for plugin integrity verification
sha2 = { version = "0.10", optional = true }
hex = { version = "0.4", optional = true }
[features]
default = ["rest-api", "metrics"]
rest-api = ["axum", "tower", "tower-http"]
metrics = ["prometheus-client", "once_cell"]
admission-webhook = ["wasmtime", "wasmtime-wasi", "tokio-rustls", "base64", "sha2", "hex", "axum", "tower", "tower-http"]
axum = ["dep:axum"]
[dev-dependencies]
tokio-test = "0.4"
[[bin]]
name = "stellar-operator"
path = "src/main.rs"
[[bin]]
name = "kubectl-stellar"
path = "src/kubectl_plugin.rs"