Documentation ¶
Index ¶
- func Create(Client *kclient.Client, name, size, componentName, pvcName string) (*corev1.PersistentVolumeClaim, error)
- func CreateComponentStorage(Client *kclient.Client, storages []common.Storage, componentName string) (err error)
- func DeleteOldPVCs(Client *kclient.Client, componentName string, processedVolumes map[string]bool) error
- func GeneratePVCNameFromDevfileVol(volName, componentName string) (string, error)
- func GetExistingPVC(Client *kclient.Client, volumeName, componentName string) (string, error)
- func New(adapterContext common.AdapterContext, client kclient.Client) common.StorageAdapter
- type Adapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(Client *kclient.Client, name, size, componentName, pvcName string) (*corev1.PersistentVolumeClaim, error)
Create creates the pvc for the given pvc name, volume name, volume size and component name
func CreateComponentStorage ¶
func CreateComponentStorage(Client *kclient.Client, storages []common.Storage, componentName string) (err error)
CreateComponentStorage creates PVCs with the given list of storages if it does not exist, else it uses the existing PVC
func DeleteOldPVCs ¶ added in v1.2.6
func DeleteOldPVCs(Client *kclient.Client, componentName string, processedVolumes map[string]bool) error
DeleteOldPVCs deletes all the old PVCs which are not in the processedVolumes map
func GeneratePVCNameFromDevfileVol ¶
GeneratePVCNameFromDevfileVol generates a PVC name from the Devfile volume name and component name
func GetExistingPVC ¶
GetExistingPVC checks if a PVC is present and return the name if it exists
func New ¶
func New(adapterContext common.AdapterContext, client kclient.Client) common.StorageAdapter
New instantiantes a storage adapter
Types ¶
Click to show internal directories.
Click to hide internal directories.