mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-05-04 14:48:30 +00:00
17 lines
349 B
Go
17 lines
349 B
Go
package kubernetes
|
|
|
|
import (
|
|
"github.com/kubeshark/kubeshark/config"
|
|
)
|
|
|
|
func buildWithDefaultLabels(labels map[string]string, provider *Provider) map[string]string {
|
|
labels[LabelManagedBy] = provider.managedBy
|
|
labels[LabelCreatedBy] = provider.createdBy
|
|
|
|
for k, v := range config.Config.Tap.ResourceLabels {
|
|
labels[k] = v
|
|
}
|
|
|
|
return labels
|
|
}
|