MCPcopy
hub / github.com/apecloud/kubeblocks / BuildImagePullSecrets

Function BuildImagePullSecrets

pkg/controllerutil/pod_utils.go:529–540  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

527}
528
529func BuildImagePullSecrets() []corev1.LocalObjectReference {
530 secrets := make([]corev1.LocalObjectReference, 0)
531 secretsVal := viper.GetString(constant.KBImagePullSecrets)
532 if secretsVal == "" {
533 return secrets
534 }
535
536 // we already validate the value of KBImagePullSecrets when start server,
537 // so we can ignore the error here
538 _ = json.Unmarshal([]byte(secretsVal), &secrets)
539 return secrets
540}

Callers 1

Calls 2

GetStringMethod · 0.65
UnmarshalMethod · 0.65

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…