Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager interface { // Start starts the manager. Start(stopCh <-chan struct{}) error // Handle handles a workload admission request. Handle(request *admissionv1beta1.AdmissionRequest) (w *Workload, used, released []*VolumeInfo, err error) // MountedVolumes returns mounted volumes by a workload. MountedVolumes(ref *corev1.ObjectReference) ([]*VolumeInfo, error) // Exist returns true is a workload exist. Exist(ref *corev1.ObjectReference) (bool, error) }
Manager is used to manage workloads, such as Pod, Deployments, etc.
func New ¶
func New( k8sClient kubernetes.Interface, informerFactory informers.SharedInformerFactory, tappManager tapps.Manager) Manager
New creates a new Manager.
type VolumeInfo ¶
type VolumeInfo = corev1.PersistentVolumeClaimVolumeSource
VolumeInfo is the information of a volume used by a workload.
type Workload ¶
type Workload struct { corev1.ObjectReference Replicas *int32 }
Workload is the information of a workload used some volumes.
Click to show internal directories.
Click to hide internal directories.