(labels map[string]string)
| 65 | } |
| 66 | |
| 67 | func (builder *BaseBuilder[T, PT, B]) AddLabelsInMap(labels map[string]string) *B { |
| 68 | if len(labels) == 0 { |
| 69 | return builder.concreteBuilder |
| 70 | } |
| 71 | l := builder.object.GetLabels() |
| 72 | if l == nil { |
| 73 | l = make(map[string]string, 0) |
| 74 | } |
| 75 | for k, v := range labels { |
| 76 | l[k] = v |
| 77 | } |
| 78 | builder.object.SetLabels(l) |
| 79 | return builder.concreteBuilder |
| 80 | } |
| 81 | |
| 82 | func (builder *BaseBuilder[T, PT, B]) AddAnnotations(keysAndValues ...string) *B { |
| 83 | builder.AddAnnotationsInMap(WithMap(keysAndValues...)) |
no test coverage detected