pvc

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPvcWithName

func GetPvcWithName(
	ctx context.Context,
	h *helper.Helper,
	name string,
	namespace string,
) (*corev1.PersistentVolumeClaim, error)

GetPvcWithName func

Types

type Pvc

type Pvc struct {
	// contains filtered or unexported fields
}

Pvc -

func NewPvc

func NewPvc(
	pvc *corev1.PersistentVolumeClaim,
	timeout time.Duration,
) *Pvc

NewPvc returns an initialized Pvc.

func (*Pvc) CreateOrPatch

func (p *Pvc) CreateOrPatch(
	ctx context.Context,
	h *helper.Helper,
) (ctrl.Result, error)

CreateOrPatch - creates or patches a pvc, reconciles after Xs if object won't exist.

func (*Pvc) GetPvc

func (p *Pvc) GetPvc() corev1.PersistentVolumeClaim

GetPvc - get the pvc object.

Jump to

Keyboard shortcuts

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