WithAnnotation adds an annotation to the current status
(name, value string)
| 50 | |
| 51 | // WithAnnotation adds an annotation to the current status |
| 52 | func (builder *Builder) WithAnnotation(name, value string) *Builder { |
| 53 | if builder.status.ObjectMeta.Annotations == nil { |
| 54 | builder.status.ObjectMeta.Annotations = make(map[string]string) |
| 55 | } |
| 56 | |
| 57 | builder.status.ObjectMeta.Annotations[name] = value |
| 58 | |
| 59 | return builder |
| 60 | } |
| 61 | |
| 62 | // WithLabel adds a label to the current status |
| 63 | func (builder *Builder) WithLabel(name, value string) *Builder { |
no outgoing calls
no test coverage detected