NewFrom creates a podTemplate builder from a certain Pod template
(podTemplate *apiv1.PodTemplateSpec)
| 39 | |
| 40 | // NewFrom creates a podTemplate builder from a certain Pod template |
| 41 | func NewFrom(podTemplate *apiv1.PodTemplateSpec) *Builder { |
| 42 | if podTemplate == nil { |
| 43 | podTemplate = &apiv1.PodTemplateSpec{} |
| 44 | } |
| 45 | return &Builder{ |
| 46 | status: *podTemplate, |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | // WithAnnotation adds an annotation to the current status |
| 51 | func (builder *Builder) WithAnnotation(name, value string) *Builder { |
no outgoing calls
no test coverage detected