Documentation
¶
Index ¶
Constants ¶
View Source
const ( // EvictLeaderBeginTime is the key of evict Leader begin time EvictLeaderBeginTime = label.AnnEvictLeaderBeginTime )
Variables ¶
View Source
var ( // EvictLeaderTimeout is the timeout limit of evict leader EvictLeaderTimeout time.Duration )
Functions ¶
func IsPodInPdMembers ¶
func IsPodWithPDDeferDeletingAnnotations ¶
check whether this pod have PD DeferDeleting Annotations
Types ¶
type PodAdmissionControl ¶
type PodAdmissionControl struct {
// contains filtered or unexported fields
}
func NewPodAdmissionControl ¶
func NewPodAdmissionControl(kubeCli kubernetes.Interface, operatorCli versioned.Interface, PdControl pdapi.PDControlInterface, extraServiceAccounts []string, evictRegionLeaderTimeout time.Duration) *PodAdmissionControl
func (*PodAdmissionControl) AdmitCreatePods ¶
func (pc *PodAdmissionControl) AdmitCreatePods(ar *admission.AdmissionRequest) *admission.AdmissionResponse
Webhook server receive request to create pod if this pod wasn't member of tidbcluster, just let the request pass. Currently we only check with tikv pod
func (*PodAdmissionControl) AdmitPods ¶
func (pc *PodAdmissionControl) AdmitPods(ar *admission.AdmissionRequest) *admission.AdmissionResponse
Click to show internal directories.
Click to hide internal directories.