pub fn error_condition(
reason: impl Into<String>,
message: impl Into<String>,
) -> ConditionInfoExpand description
Create an error condition with Ready=False
ยงExample
use kube_condition::error_condition;
let condition = error_condition("DatabaseConnectionFailed", "Unable to connect to database");
assert_eq!(condition.type_, "Ready");
assert_eq!(condition.status, "False");
assert_eq!(condition.reason, "DatabaseConnectionFailed");