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

Function PodRenamed

tests/utils/operator/operator.go:263–265  ·  view source on GitHub ↗

PodRenamed checks if the operator pod was renamed

(operatorPod corev1.Pod, expectedOperatorPodName string)

Source from the content-addressed store, hash-verified

261
262// PodRenamed checks if the operator pod was renamed
263func PodRenamed(operatorPod corev1.Pod, expectedOperatorPodName string) bool {
264 return operatorPod.GetName() != expectedOperatorPodName
265}
266
267// PodRestarted checks if the operator pod was restarted
268func PodRestarted(operatorPod corev1.Pod) bool {

Callers 1

suite_test.goFile · 0.92

Calls 1

GetNameMethod · 0.65

Tested by

no test coverage detected