diff --git a/rust/crd/src/lib.rs b/rust/crd/src/lib.rs index 7f77b448..1f956df6 100644 --- a/rust/crd/src/lib.rs +++ b/rust/crd/src/lib.rs @@ -318,6 +318,7 @@ pub struct HbaseConfig { pub logging: Logging, #[fragment_attrs(serde(default))] pub affinity: StackableAffinity, + /// Time period Pods have to gracefully shut down, e.g. `30m`, `1h` or `2d`. Consult the operator documentation for details. #[fragment_attrs(serde(default))] pub graceful_shutdown_timeout: Option, diff --git a/rust/operator-binary/src/hbase_controller.rs b/rust/operator-binary/src/hbase_controller.rs index 47c9ecad..f7ed7972 100644 --- a/rust/operator-binary/src/hbase_controller.rs +++ b/rust/operator-binary/src/hbase_controller.rs @@ -219,6 +219,7 @@ pub enum Error { FailedToCreatePdb { source: crate::operations::pdb::Error, }, + #[snafu(display("failed to configure graceful shutdown"))] GracefulShutdown { source: crate::operations::graceful_shutdown::Error,