Documentation ¶
Index ¶
- Constants
- func CanVCTemplateInplaceUpdate(oldRevision, newRevision *apps.ControllerRevision) bool
- func GetVCTemplatesHash(revision *apps.ControllerRevision) (string, bool)
- func PatchVCTemplateHash(revision *apps.ControllerRevision, vcTemplates []v1.PersistentVolumeClaim)
- type PVCGetter
- type VolumeClaimTemplatesHasher
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
Click to show internal directories.
Click to hide internal directories.