MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / Labels

Function Labels

internal/initialize/metadata.go:19–23  ·  view source on GitHub ↗

Labels initializes the Labels of object when they are nil.

(object metav1.Object)

Source from the content-addressed store, hash-verified

17
18// Labels initializes the Labels of object when they are nil.
19func Labels(object metav1.Object) {
20 if object != nil && object.GetLabels() == nil {
21 object.SetLabels(make(map[string]string))
22 }
23}

Callers 4

InstancePodFunction · 0.92
TestLabelsFunction · 0.92
AddToPodFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestLabelsFunction · 0.74