pod

package
v1.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EvictLeaderBeginTime is the key of evict Leader begin time
	EvictLeaderBeginTime = label.AnnEvictLeaderBeginTime
)

Variables

View Source
var (
	AstsControllerServiceAccounts string
)

Functions

func IsPodInPdMembers

func IsPodInPdMembers(tc *v1alpha1.TidbCluster, pod *core.Pod, pdClient pdapi.PDClient) (bool, error)

func IsPodWithPDDeferDeletingAnnotations

func IsPodWithPDDeferDeletingAnnotations(pod *core.Pod) bool

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, recorder record.EventRecorder) *PodAdmissionControl

func (*PodAdmissionControl) AdmitCreatePods

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 (*PodAdmissionControl) MutatePods

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳