You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: operator.go
    path of file: ./repos/tidb-operator/tests/e2e/util/operator
    
    the code of the file until where you have to start completion: // Copyright 2020 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License 
    
func (k *OperatorKiller) Run(stopCh <-chan struct{}) {
	// wait.JitterUntil starts work immediately, so wait first.
	time.Sleep(wait.Jitter(k.config.Interval, k.config.JitterFactor))
	wait.JitterUntil(func() {
		pods, err := k.podLister()
		if err != nil {
			log.Logf("failed to list operator pods: %v", err)
			return
		}
		log.Logf("Trying to kill tidb-operator pods (%d)", len(pods))
		for _, pod := range pods {
			if !k8s.IsPodReady(&pod) || hasBeenRestarted(&pod) {
				// deleting the pod will recreate it, we should skip if the pod
				// is not ready or has been restarted before, otherwise
				// potential errors (e.g. panic) in operator may be hidden.
				log.Logf("pod %s/%s is not ready or crashed before, skip deleting", pod.Namespace, pod.Name)
				continue
			}
			err = k.client.CoreV1().Pods(pod.Namespace).Delete(context.TODO(), pod.Name, metav1.DeleteOptions{})
			if err != nil {
				log.Logf("failed to delete pod %s/%s: %v", pod.Namespace, pod.Name, err)
			} else {
				log.Logf("successfully deleted pod %s/%s", pod.Namespace, pod.Name)
			}
		}
	}, k.config.Interval, k.config.JitterFactor, true, stopCh)
}