MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / ClientPodRef

Method ClientPodRef

tests/utils/objectstore/objectstore.go:604–606  ·  view source on GitHub ↗

ClientPodRef returns the kubectl resource reference used to exec commands against the S3 client. It targets the Deployment rather than a fixed Pod name so the command is routed to the current Pod even after the original one is rescheduled (e.g. following a node drain).

()

Source from the content-addressed store, hash-verified

602// name so the command is routed to the current Pod even after the original
603// one is rescheduled (e.g. following a node drain).
604func (m *Env) ClientPodRef() string {
605 return "deployment/" + m.Client.Name
606}
607
608func (m *Env) getCaSecret(env *environment.TestingEnvironment, namespace string) (*corev1.Secret, error) {
609 var certSecret corev1.Secret

Callers 5

CountFilesFunction · 0.80
ListFilesFunction · 0.80
GetFileTagsFunction · 0.80
CleanFilesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected