Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrIsDataLoss ¶
Types ¶
type ErrorDataPersistence ¶
type ErrorDataPersistence error
ErrorDataPersistence specifies errors of the PVCs and PVs
var ( ErrPVCWithLostPVDeleted ErrorDataPersistence = errors.New("pvc with lost pv deleted") ErrPVCIsLost ErrorDataPersistence = errors.New("pvc is lost") )
type PVC ¶
type PVC struct { interfaces.IKubePVC // contains filtered or unexported fields }
func NewStoragePVC ¶
func NewStoragePVC(pvcKube interfaces.IKubePVC) *PVC
func (*PVC) UpdateOrCreate ¶
func (c *PVC) UpdateOrCreate(ctx context.Context, pvc *core.PersistentVolumeClaim) (*core.PersistentVolumeClaim, error)
UpdateOrCreate
func (*PVC) WalkDiscoveredPVCs ¶
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
func NewStorageReconciler ¶
func NewStorageReconciler(task *common.Task, namer interfaces.INameManager, pvc interfaces.IKubeStoragePVC) *Reconciler
func (*Reconciler) ReconcilePVCs ¶
func (w *Reconciler) ReconcilePVCs(ctx context.Context, host *api.Host, which api.WhichStatefulSet) (res ErrorDataPersistence)
ReconcilePVCs reconciles all PVCs of a host
Click to show internal directories.
Click to hide internal directories.