volumeclaimtemplate

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HashAnnotation represents the specs of volumeclaimtemplates hash
	HashAnnotation = "kruise.io/cloneset-volumeclaimtemplate-hash"
)

Variables

This section is empty.

Functions

func CanVCTemplateInplaceUpdate

func CanVCTemplateInplaceUpdate(oldRevision, newRevision *apps.ControllerRevision) bool

CanVCTemplateInplaceUpdate

func GetVCTemplatesHash

func GetVCTemplatesHash(revision *apps.ControllerRevision) (string, bool)

func PatchVCTemplateHash

func PatchVCTemplateHash(revision *apps.ControllerRevision, vcTemplates []v1.PersistentVolumeClaim)

Types

type PVCGetter

type PVCGetter = func(string) *v1.PersistentVolumeClaim

type VolumeClaimTemplatesHasher

type VolumeClaimTemplatesHasher interface {
	// contains filtered or unexported methods
}

func NewVolumeClaimTemplatesHasher

func NewVolumeClaimTemplatesHasher() VolumeClaimTemplatesHasher

Jump to

Keyboard shortcuts

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