MCPcopy Create free account
hub / github.com/cloudbase/garm / getLabelsForInstance

Method getLabelsForInstance

runner/pool/pool.go:1034–1042  ·  view source on GitHub ↗
(pool params.Pool)

Source from the content-addressed store, hash-verified

1032}
1033
1034func (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
1044func (r *basePoolManager) addInstanceToProvider(instance params.Instance) error {
1045 pool, err := r.store.GetEntityPool(r.ctx, r.entity, instance.PoolID)

Callers 2

AddRunnerMethod · 0.95
addInstanceToProviderMethod · 0.95

Calls 2

controllerLabelMethod · 0.95
poolLabelMethod · 0.95

Tested by

no test coverage detected