mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-10 11:41:27 +00:00
* Changed folder structure to allow multi group registration * included actions.github.com directory for resources and controllers * updated go module to actions/actions-runner-controller * publish arc packages under actions-runner-controller * Update charts/actions-runner-controller/docs/UPGRADING.md Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
14 lines
227 B
Go
14 lines
227 B
Go
package controllers
|
|
|
|
func filterLabels(labels map[string]string, filter string) map[string]string {
|
|
filtered := map[string]string{}
|
|
|
|
for k, v := range labels {
|
|
if k != filter {
|
|
filtered[k] = v
|
|
}
|
|
}
|
|
|
|
return filtered
|
|
}
|