MCPcopy
hub / github.com/NVIDIA/aistore / updatePodLabels

Method updatePodLabels

etl/transform.go:515–526  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

513}
514
515func (b *etlBootstraper) updatePodLabels() {
516 if b.pod.Labels == nil {
517 b.pod.Labels = make(map[string]string, 6)
518 }
519
520 b.pod.Labels[appLabel] = "ais"
521 b.pod.Labels[podNameLabel] = b.pod.GetName()
522 b.pod.Labels[podNodeLabel] = k8s.NodeName
523 b.pod.Labels[podTargetLabel] = b.t.SID()
524 b.pod.Labels[appK8sNameLabel] = "etl"
525 b.pod.Labels[appK8sComponentLabel] = "server"
526}
527
528func (b *etlBootstraper) updateServiceLabels() {
529 if b.svc.Labels == nil {

Callers 1

preparePodSpecMethod · 0.95

Calls 1

SIDMethod · 0.65

Tested by

no test coverage detected