(pool params.Pool)
| 1032 | } |
| 1033 | |
| 1034 | func (r *basePoolManager) getLabelsForInstance(pool params.Pool) []string { |
| 1035 | labels := []string{} |
| 1036 | for _, tag := range pool.Tags { |
| 1037 | labels = append(labels, tag.Name) |
| 1038 | } |
| 1039 | labels = append(labels, r.controllerLabel()) |
| 1040 | labels = append(labels, r.poolLabel(pool.ID)) |
| 1041 | return labels |
| 1042 | } |
| 1043 | |
| 1044 | func (r *basePoolManager) addInstanceToProvider(instance params.Instance) error { |
| 1045 | pool, err := r.store.GetEntityPool(r.ctx, r.entity, instance.PoolID) |
no test coverage detected