pvc

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfirmPVCDeleted added in v1.0.0

func ConfirmPVCDeleted(tenantName, namespace string, client *kubernetes.Clientset) error

ConfirmPVCDeleted confirms whether the PVC and PVC watchdog have been deleted. Only return nil represents the PVC and PVC watchdog have been deleted.

func CreatePVC

func CreatePVC(tenantName, storageClass, size string, namespace string, client *kubernetes.Clientset) error

CreatePVC creates pvc for tenant

func DeletePVC

func DeletePVC(tenantName, namespace string, client *kubernetes.Clientset) error

DeletePVC delete the pvc

func UpdatePVC

func UpdatePVC(tenantName, storageClass, size string, namespace string, client *kubernetes.Clientset) error

UpdatePVC delete the old pvc and recreate another one, so the data of the pvc will lost.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL