IsPodPrimary check if a certain pod belongs to a primary
(pod corev1.Pod)
| 47 | |
| 48 | // IsPodPrimary check if a certain pod belongs to a primary |
| 49 | func IsPodPrimary(pod corev1.Pod) bool { |
| 50 | return IsPrimary(pod.ObjectMeta) |
| 51 | } |
| 52 | |
| 53 | // IsPrimary check if a certain resource belongs to a primary |
| 54 | func IsPrimary(meta metav1.ObjectMeta) bool { |