WithLabel adds a label to the current status
(name, value string)
| 61 | |
| 62 | // WithLabel adds a label to the current status |
| 63 | func (builder *Builder) WithLabel(name, value string) *Builder { |
| 64 | if builder.status.ObjectMeta.Labels == nil { |
| 65 | builder.status.ObjectMeta.Labels = make(map[string]string) |
| 66 | } |
| 67 | |
| 68 | builder.status.ObjectMeta.Labels[name] = value |
| 69 | |
| 70 | return builder |
| 71 | } |
| 72 | |
| 73 | // WithServiceType adds a service type to the current status |
| 74 | func (builder *Builder) WithServiceType(serviceType corev1.ServiceType, overwrite bool) *Builder { |
no outgoing calls
no test coverage detected