Don't add aditional labels to GH runner

For now, the aditional labels would only contain the job ID that triggered
the creation of the runner. It does not make sense to add this label to the
actual runner that registeres against github. We can simply use it internally
by fetching it from the DB.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2023-07-03 07:48:22 +00:00
parent 0ab8f73bb4
commit 6c06afb8e8

View file

@ -743,10 +743,6 @@ func (r *basePoolManager) addInstanceToProvider(instance params.Instance) error
labels = append(labels, r.controllerLabel())
labels = append(labels, r.poolLabel(pool.ID))
if len(instance.AditionalLabels) > 0 {
labels = append(labels, instance.AditionalLabels...)
}
jwtValidity := pool.RunnerTimeout()
entity := r.helper.String()