const pollInterval …
const pollTimeout …
func labelMap() map[string]string { … }
func newHeadlessService(namespace string) *v1.Service { … }
func newSTS(name, namespace string, replicas int) *appsv1.StatefulSet { … }
func newStatefulSetPVC(name string) v1.PersistentVolumeClaim { … }
func scSetup(t *testing.T) (context.Context, kubeapiservertesting.TearDownFunc, *statefulset.StatefulSetController, informers.SharedInformerFactory, clientset.Interface) { … }
func runControllerAndInformers(ctx context.Context, sc *statefulset.StatefulSetController, informers informers.SharedInformerFactory) context.CancelFunc { … }
func createHeadlessService(t *testing.T, clientSet clientset.Interface, headlessService *v1.Service) { … }
func createSTSs(t *testing.T, clientSet clientset.Interface, stss []*appsv1.StatefulSet) []*appsv1.StatefulSet { … }
func createPods(t *testing.T, clientSet clientset.Interface, pods []*v1.Pod) []*v1.Pod { … }
func createSTSsPods(t *testing.T, clientSet clientset.Interface, stss []*appsv1.StatefulSet, pods []*v1.Pod) ([]*appsv1.StatefulSet, []*v1.Pod) { … }
func waitSTSStable(t *testing.T, clientSet clientset.Interface, sts *appsv1.StatefulSet) { … }
func updatePod(t *testing.T, podClient typedv1.PodInterface, podName string, updateFunc func(*v1.Pod)) *v1.Pod { … }
func updatePodStatus(t *testing.T, podClient typedv1.PodInterface, podName string, updateStatusFunc func(*v1.Pod)) *v1.Pod { … }
func getPods(t *testing.T, podClient typedv1.PodInterface, labelMap map[string]string) *v1.PodList { … }
func getStatefulSetPVCs(t *testing.T, pvcClient typedv1.PersistentVolumeClaimInterface, sts *appsv1.StatefulSet) []*v1.PersistentVolumeClaim { … }
func verifyOwnerRef(t *testing.T, pvc *v1.PersistentVolumeClaim, kind string, expected bool) { … }
func updateSTS(t *testing.T, stsClient typedappsv1.StatefulSetInterface, stsName string, updateFunc func(*appsv1.StatefulSet)) *appsv1.StatefulSet { … }
func scaleSTS(t *testing.T, c clientset.Interface, sts *appsv1.StatefulSet, replicas int32) { … }
var _ …
type fakePodFailAdmission …
func (f *fakePodFailAdmission) Handles(operation admission.Operation) bool { … }
func (f *fakePodFailAdmission) Validate(ctx context.Context, attr admission.Attributes, o admission.ObjectInterfaces) (err error) { … }