Documentation ¶
Index ¶
Constants ¶
View Source
const ( // VolumeGidAnnotationKey is the key of the annotation on the PersistentVolume // object that specifies a supplemental GID. VolumeGidAnnotationKey = "pv.beta.kubernetes.io/gid" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Allocator ¶
type Allocator struct {
// contains filtered or unexported fields
}
Allocator allocates GIDs to PVs. It allocates from per-SC ranges and ensures that no two PVs of the same SC get the same GID.
func (*Allocator) AllocateNext ¶
func (a *Allocator) AllocateNext(options controller.ProvisionOptions) (int, error)
AllocateNext allocates the next available GID for the given ProvisionOptions (claim's options for a volume it wants) from the appropriate GID table.
Click to show internal directories.
Click to hide internal directories.