Try a nightly toolchain in the build
Some checks failed
ci/woodpecker/push/build-container Pipeline failed
Some checks failed
ci/woodpecker/push/build-container Pipeline failed
Signed-off-by: Nikolai Rodionov <iam@allanger.xyz>
This commit is contained in:
@@ -2,6 +2,7 @@ mod conditions;
|
||||
mod controllers;
|
||||
mod rc;
|
||||
mod cli;
|
||||
mod config;
|
||||
|
||||
use crate::controllers::{rustfs_instance};
|
||||
|
||||
@@ -10,6 +11,7 @@ use clap::Parser;
|
||||
use kube::Client;
|
||||
use tracing_subscriber::EnvFilter;
|
||||
|
||||
use self::config::read_config_from_file;
|
||||
use self::controllers::{rustfs_bucket, rustfs_user};
|
||||
|
||||
/// Simple program to greet a person
|
||||
@@ -29,6 +31,9 @@ struct Args {
|
||||
/// If enabled, DB Operator will run full reconciliation only
|
||||
/// when changes are detected
|
||||
is_change_check_nabled: bool,
|
||||
#[arg(long, default_value = "/src/config/config.json")]
|
||||
/// A path to a config file
|
||||
config: String,
|
||||
}
|
||||
|
||||
#[get("/health")]
|
||||
@@ -45,8 +50,9 @@ async fn main() -> anyhow::Result<()> {
|
||||
let client = Client::try_default()
|
||||
.await
|
||||
.expect("failed to create kube Client");
|
||||
let config = read_config_from_file("test".to_string())?;
|
||||
let rustfs_instance_ctrl = rustfs_instance::run(client.clone());
|
||||
let rustfs_bucket_ctrl = rustfs_bucket::run(client.clone());
|
||||
let rustfs_bucket_ctrl = rustfs_bucket::run(client.clone(), config.clone());
|
||||
let rustfs_user_ctrl = rustfs_user::run(client.clone());
|
||||
// Start web server
|
||||
let server = HttpServer::new(move || {
|
||||
|
||||
Reference in New Issue
Block a user