1
2
3
4
5
6
7
8
9
10
11
12
use super::*;

pub trait LocalObjectReferenceExt {
    fn new(name: impl ToString) -> Self;
}

impl LocalObjectReferenceExt for corev1::LocalObjectReference {
    fn new(name: impl ToString) -> Self {
        let name = Some(name.to_string());
        Self { name }
    }
}