1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use super::*;
pub trait NamespaceExt: super::ResourceBuilder {
    fn new(name: impl ToString) -> Self;
}
impl NamespaceExt for corev1::Namespace {
    fn new(name: impl ToString) -> Self {
        let metadata = metadata(name);
        Self {
            metadata,
            // spec: todo!(),
            // status: todo!(),
            ..default()
        }
    }
}