mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-08 16:03:27 +00:00
Move K8s operator source code (crd, db_sync, reconciler, resolve) to windmill-ee-private and gate behind feature = "private". OSS stubs provide error messages when the feature is disabled. Add an info Alert banner in the Registries settings section when no enterprise license is active. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
20 lines
578 B
Rust
20 lines
578 B
Rust
#[cfg(feature = "private")]
|
|
pub use crate::reconciler_ee::run;
|
|
|
|
#[cfg(feature = "private")]
|
|
pub fn print_crd_yaml() {
|
|
use kube::CustomResourceExt;
|
|
let crd = crate::crd_ee::WindmillInstance::crd();
|
|
println!("{}", serde_yml::to_string(&crd).unwrap());
|
|
}
|
|
|
|
#[cfg(not(feature = "private"))]
|
|
pub async fn run(_db: sqlx::Pool<sqlx::Postgres>) -> anyhow::Result<()> {
|
|
anyhow::bail!("K8s operator is not available in this build")
|
|
}
|
|
|
|
#[cfg(not(feature = "private"))]
|
|
pub fn print_crd_yaml() {
|
|
eprintln!("K8s operator CRD generation is not available in this build");
|
|
}
|