k8s-openapi-ext 0.26.1

Collection of fluent builder traits for Kubernetes objects
Documentation
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 = name.to_string();
        Self { name }
    }
}