CRD reference
Field reference for the pillar-csi v1alpha1 CRDs: PillarAgent, PillarStore, PillarProtocol, PillarStorageClass and PillarVolumeState, from the Go types.
On this page
- Packages
- pillar-csi.bhyoo.com/v1alpha1
- Resource Types
- AgentCapabilities
- BackendOverrides
- BackendSpec
- DirectoryBackendConfig
- DirectoryBackendOverrides
- DiscoveredPool
- ExternalSpec
- FilesystemAdoption
- FilesystemAdoptionKind
- FilesystemConfig
- ISCSIAuth
- ISCSIAuthMethod
- ISCSIAuthSecretReference
- ISCSIConfig
- ISCSIOverrides
- LVMBackendConfig
- LVMBackendOverrides
- LVMProvisioningMode
- LVMSourceRef
- NFSConfig
- NFSExportSpec
- NFSOverrides
- NFSSquash
- NVMeOFTCPConfig
- NVMeOFTCPOverrides
- NodeRefSpec
- PartialFailureInfo
- PillarAgent
- PillarAgentSpec
- PillarAgentStatus
- PillarProtocol
- PillarProtocolSpec
- PillarProtocolStatus
- PillarStorageClass
- PillarStorageClassSpec
- PillarStorageClassStatus
- PillarStore
- PillarStoreSpec
- PillarStoreStatus
- PillarVolumeReservation
- PillarVolumeReservationSpec
- PillarVolumeState
- PillarVolumeStatePhase
- PillarVolumeStateSpec
- PillarVolumeStateStatus
- ProtocolOverrides
- ProtocolSpec
- ReclaimPolicy
- ResolvedVolumeConfig
- StorageClassOverrides
- StorageClassTemplate
- StoreCapacity
- VolumeBindingMode
- VolumeClaimRef
- VolumeExportInfo
- VolumeExportSpec
- VolumePublication
- VolumeRecoveryIntent
- ZFSBackendConfig
- ZFSBackendOverrides
- ZFSVolumeType
All pillar-csi resources are cluster-scoped. The controller manages PillarVolumeState objects; do not create them by hand.
The field descriptions come from comments in the Go API types. pillar-csi currently supports ZFS zvols and LVM logical volumes over NVMe-oF/TCP or iSCSI, and ZFS datasets over NFSv4.2. SMB and directory backends remain unavailable.
Packages
pillar-csi.bhyoo.com/v1alpha1
Package v1alpha1 contains API Schema definitions for the pillar-csi v1alpha1 API group.
Resource Types
AgentCapabilities
AgentCapabilities describes what backends and protocols the remote agent supports.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
backends string array | backends lists the backend driver types the agent can manage (zfs-zvol, zfs-dataset, lvm-lv). | Optional | |
protocols string array | protocols lists the network protocols the agent can export storage over (nvmeof-tcp, iscsi, nfs). | Optional |
BackendOverrides
BackendOverrides is the per-binding or per-volume override document for the storage backend. Exactly one member must be set, and it must match the backend member configured on the referenced PillarStore.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
zfs ZFSBackendOverrides | zfs overrides ZFS-specific tunables; valid only when the store’s backend is zfs. | Optional | |
lvm LVMBackendOverrides | lvm overrides LVM-specific tunables; valid only when the store’s backend is lvm. | Optional | |
directory DirectoryBackendOverrides | directory has no tunables; valid only for a directory store. | Optional |
BackendSpec
BackendSpec describes the storage backend of a PillarStore. Exactly one member must be set: the member name selects zfs, lvm, or directory and its value carries that backend’s configuration.
The same union shape is reused for the agent’s backend placement config file; per-volume and per-binding override documents use BackendOverrides, which keeps only the tunable subset.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
zfs ZFSBackendConfig | zfs holds ZFS-specific configuration. | Optional | |
lvm LVMBackendConfig | lvm holds LVM-specific configuration. | Optional | |
directory DirectoryBackendConfig | directory holds existing host-directory adoption configuration. | Optional |
DirectoryBackendConfig
DirectoryBackendConfig declares a logical pool of existing host directories. It does not authorize creating directories or changing their quotas.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
logicalPool string | logicalPool is the routing name of this directory backend. | MinLength: 1 Pattern: ^[a-zA-Z0-9][a-zA-Z0-9_. Required | |
hostRoot string | hostRoot is the absolute, trusted allow-root on the storage node. It must equal the directory backend’s configured root on the agent. | MinLength: 1 Pattern: ^/ Required |
DirectoryBackendOverrides
DirectoryBackendOverrides is empty: directory layout and existing quotas are structural, read-only settings, not per-volume tunables.
Appears in:
DiscoveredPool
DiscoveredPool is a storage pool reported by the remote agent.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | name is the pool name as known to the storage subsystem (e.g. ZFS pool name). | Required | |
type string | type is the storage technology (e.g. zfs, lvm). | Required | |
total Quantity | total is the total raw capacity of the pool. | Optional | |
available Quantity | available is the free capacity of the pool. | Optional | |
parentDataset string | parentDataset is, for ZFS pools, the dataset relative to the pool under which the agent creates volumes (its config zfs.parentDataset); empty means the pool root dataset. A PillarStore on this pool must declare the same spec.backend.zfs.parentDataset to become Ready. | Optional | |
thinPool string | thinPool is, for LVM volume groups, the thin pool LV the agent creates thin volumes in (its config lvm.thinPool); empty means none. A PillarStore on this VG must declare the same spec.backend.lvm.thinPool to become Ready. | Optional | |
hostRoot string | hostRoot is the directory backend’s configured trusted allow-root. A PillarStore must declare the same directory.hostRoot to become Ready. | Optional |
ExternalSpec
ExternalSpec defines a storage agent outside the Kubernetes cluster.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
address string | address is the IP or hostname of the external agent. | MinLength: 1 Required | |
port integer | port is the agent gRPC port. | Maximum: 65535 Minimum: 1 Required |
FilesystemAdoption
FilesystemAdoption pins an existing filesystem’s canonical source and native identity. Its presence selects non-destructive filesystem lifecycle handling; it is distinct from importedFrom, whose zvol deletion semantics are unchanged.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
kind FilesystemAdoptionKind | kind selects the existing source type. | Enum: [directory zfs-dataset] Required | |
canonicalSource string | canonicalSource is the resolved host directory or native dataset fullname. | MinLength: 1 Required | |
resourceID string | resourceID is the stable native identity, independent of path and pool alias: filesystem UUID plus root inode, or ZFS dataset GUID. | MinLength: 1 Required | |
hostPath string | hostPath is a dataset’s existing mounted host path, if mounted. It may be empty for an unmounted legacy dataset. For directories, canonicalSource already is the host path, so this field is omitted. | Optional | |
filesystemType string | filesystemType identifies the native quota and identity implementation. | Enum: [ext4 xfs zfs] Required | |
filesystemID string | filesystemID is the directory’s stable native filesystem UUID, never a volatile device number or statfs filesystem ID. Omitted for ZFS. | MinLength: 1 Optional | |
inode string | inode is the existing directory root’s native inode as a canonical nonzero decimal string. It is omitted for ZFS. | MaxLength: 20 MinLength: 1 Pattern: ^[1-9][0-9]\{0,19\}$ Optional | |
projectID integer | projectID identifies the directory’s existing bounded project-quota scope. Adoption verifies it read-only; it never stamps project IDs. | Minimum: 1 Optional |
FilesystemAdoptionKind
Underlying type: string
FilesystemAdoptionKind identifies a preserved, existing filesystem source.
Validation:
- Enum: [directory zfs-dataset]
Appears in:
| Field | Description |
|---|---|
directory | FilesystemAdoptionKindDirectory identifies an adopted existing directory. |
zfs-dataset | FilesystemAdoptionKindZFSDataset identifies an adopted existing ZFS dataset. |
FilesystemConfig
FilesystemConfig describes the filesystem axis: which filesystem the CSI node creates on a new block volume and how it mounts it. The same shape is used at every layer that may set it — PillarStorageClass.spec.filesystem, a hand-written StorageClass’s pillar-csi.bhyoo.com/filesystem parameter and the pillar-csi.bhyoo.com/filesystem PVC annotation.
List fields use list semantics on every layer: omitted (absent or null) inherits the value of the layer below, an explicit empty list [] clears it.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
fsType string | fsType is the filesystem type the node uses for a block volume in Filesystem mode. The controller defaults omitted values to ext4; file protocols such as NFS use their protocol filesystem instead. | Enum: [ext4 xfs nfs] Optional | |
mkfsOptions string | mkfsOptions are additional mkfs arguments used when the node formats a new volume; a volume that already carries a filesystem is never reformatted. Each element is one argv element (no shell); only filesystem tuning flags of the formatted type are accepted. A null/omitted value inherits the options of the layer below; an explicit empty list [] clears them. | Optional | |
mountOptions string | mountOptions are the mount options the node applies when mounting a Filesystem-mode volume. On a PillarStorageClass they are written to the generated Kubernetes StorageClass’s mountOptions; a PVC annotation value overrides them for that volume. A null/omitted value inherits the options of the layer below; an explicit empty list [] clears them. | Optional | |
periodicTrim boolean | periodicTrim controls whether the CSI node periodically trims (FITRIM) the staged filesystem of a Filesystem-mode volume so the backend can reclaim freed blocks. Unset follows the node setting (enabled unless the node’s --trim-interval is 0); false opts the volume out. A PVCannotation value overrides the class value for that volume. | Optional |
ISCSIAuth
ISCSIAuth configures iSCSI CHAP authentication.
The credentials live in a Secret in the pillar-csi installation namespace (the controller’s namespace) with the keys username and password (CHAP and MutualCHAP) plus mutualUsername and mutualPassword (MutualCHAP only). Passwords must be 12 to 255 bytes, and mutualPassword must differ from password (RFC 7143 §12.1.3). The controller reads the Secret each time it configures a target: new contents apply to the target at the next ControllerPublishVolume or export restore, and to the node at the next NodeStageVolume.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
method ISCSIAuthMethod | method selects the authentication method. | None | Enum: [None CHAP MutualCHAP] Optional |
secretRef ISCSIAuthSecretReference | secretRef names the Secret holding the CHAP credentials in the pillar-csi installation namespace. Required unless method is None. | Optional |
ISCSIAuthMethod
Underlying type: string
ISCSIAuthMethod selects the iSCSI authentication method.
Validation:
- Enum: [None CHAP MutualCHAP]
Appears in:
| Field | Description |
|---|---|
None | ISCSIAuthMethodNone disables authentication: initiator IQN ACLs only. |
CHAP | ISCSIAuthMethodCHAP is one-way CHAP: the target authenticates the initiator. |
MutualCHAP | ISCSIAuthMethodMutualCHAP is CHAP in both directions: the initiator also authenticates the target. |
ISCSIAuthSecretReference
ISCSIAuthSecretReference names a Secret in the pillar-csi installation namespace.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | name is the name of the Secret. | MinLength: 1 Required |
ISCSIConfig
ISCSIConfig holds iSCSI-specific protocol parameters. Target bind IP is not included here — the controller resolves it at runtime from the referenced PillarAgent. The target IQN is derived by the agent from the volume ID, and the node’s initiator IQN is published on its CSINode object, so neither is configured here.
All timeouts are in seconds. An unset timeout keeps the node default (loginTimeout 15, replacementTimeout 120, noopOutInterval 5, noopOutTimeout 5). Timeouts apply to sessions logged in after the change; a staged volume keeps the values from its CreateVolume.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
port integer | port is the TCP port on which the iSCSI target portal listens. Defaults to 3260. | 3260 | Maximum: 65535 Minimum: 1 Optional |
acl boolean | acl enables initiator IQN-based access control when true. When false the target portal group runs in demo mode (generate_node_acls) and accepts any initiator. Defaults to false so that e2e tests and simple deployments work without registering initiator IQNs. | false | Optional |
loginTimeout integer | loginTimeout is the maximum seconds the initiator waits for a login (TCP connect plus the login PDU exchange) to complete. | Minimum: 1 Optional | |
replacementTimeout integer | replacementTimeout is the maximum seconds the initiator keeps I/O queued while re-establishing a failed session before failing it back to the block layer. 0 fails I/O immediately on connection loss. | Minimum: 0 Optional | |
noopOutInterval integer | noopOutInterval is the interval in seconds between NOP-Out pings the initiator sends to detect a dead connection. 0 disables the pings. | Minimum: 0 Optional | |
noopOutTimeout integer | noopOutTimeout is the maximum seconds the initiator waits for a NOP-In reply before declaring the connection failed. | Minimum: 0 Optional | |
auth ISCSIAuth | auth configures iSCSI CHAP authentication. Unset is method None (initiator IQN ACLs only). Auth is fixed per volume at CreateVolume: a later change applies only to volumes provisioned afterwards, and it cannot be overridden per binding or per volume. CHAP credentials are set on the per-initiator ACLs, so CHAP and MutualCHAP require acl: true. | Optional |
ISCSIOverrides
ISCSIOverrides holds the per-volume-tunable subset of ISCSIConfig. Structural fields (port — which portal the target lives on — and acl — the security policy anchor) are not part of this type and are rejected with their path by the shared document decoder.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
loginTimeout integer | loginTimeout overrides the protocol-level loginTimeout (seconds the initiator waits for a login to complete). | Minimum: 1 Optional | |
replacementTimeout integer | replacementTimeout overrides the protocol-level replacementTimeout (seconds I/O stays queued while a failed session is re-established). | Minimum: 0 Optional | |
noopOutInterval integer | noopOutInterval overrides the protocol-level noopOutInterval (seconds between NOP-Out pings; 0 disables them). | Minimum: 0 Optional | |
noopOutTimeout integer | noopOutTimeout overrides the protocol-level noopOutTimeout (seconds to wait for a NOP-In reply). | Minimum: 0 Optional |
LVMBackendConfig
LVMBackendConfig holds LVM-specific volume group and thin pool settings.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
volumeGroup string | volumeGroup is the LVM Volume Group name that pillar-csi will create logical volumes in (e.g. “data-vg”). The VG must be pre-created on the node before the agent starts; the driver does not manage VG lifecycle. | MinLength: 1 Required | |
thinPool string | thinPool is the name of the LVM thin pool LV within the volume group (e.g. “thin-pool-0”). When non-empty the backend operates in thin- provisioned mode; when empty it creates fully-allocated linear LVs. The thin pool must be pre-created before the agent starts, and must equal the thinPool of the agent’s backend configuration for this VG (chart agent.backends[].lvm.thinPool; empty = none): on a mismatch the store is not Ready (PoolDiscovered=False, BackendLayoutMismatch) and CreateVolume fails instead of using another thin pool. | Optional | |
provisioningMode LVMProvisioningMode | provisioningMode controls whether new volumes are created as fully- allocated linear LVs or as thin-provisioned LVs inside the thinPool. Defaults to “linear”; set to “thin” together with a non-empty thinPool to enable thin provisioning. | linear | Enum: [linear thin] Optional |
LVMBackendOverrides
LVMBackendOverrides holds the per-volume-tunable subset of LVMBackendConfig. Structural placement fields (volumeGroup, thinPool) are not part of this type and are rejected with their path by the shared document decoder.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
provisioningMode LVMProvisioningMode | provisioningMode overrides the LVM provisioning mode for this volume or binding: “linear” (fully-allocated LV) or “thin” (thin-provisioned LV inside the backend’s thin pool). When omitted, the PillarStore-level value is used. | Enum: [linear thin] Optional |
LVMProvisioningMode
Underlying type: string
LVMProvisioningMode selects between linear and thin LV provisioning.
Validation:
- Enum: [linear thin]
Appears in:
| Field | Description |
|---|---|
linear | LVMProvisioningModeLinear creates fully-allocated linear logical volumes directly in the volume group (lvcreate -L <size>b). |
thin | LVMProvisioningModeThin creates thin-provisioned logical volumes inside a pre-existing thin pool LV (lvcreate -V <size>b --thinpool <pool>). |
LVMSourceRef
LVMSourceRef pins the pre-existing LVM logical volume an import-lv volume adopted. It is set once at the first CreateVolume attempt and is immutable. The UUIDs are the stable identity: a VG or LV renamed or recreated under the same name never matches.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
volumeGroup string | volumeGroup is the LVM volume group name of the adopted LV. | MinLength: 1 Required | |
logicalVolume string | logicalVolume is the LVM logical volume name of the adopted LV. | MinLength: 1 Required | |
volumeGroupUUID string | volumeGroupUUID is the LVM UUID of the volume group (vgs -o vg_uuid). | Pattern: ^[A-Za-z0-9]\{6\}(-[A-Za-z0-9]\{4\})\{5\}-[A-Za-z0-9]\{6\}$ Required | |
logicalVolumeUUID string | logicalVolumeUUID is the LVM UUID of the logical volume ( lvs -o lv_uuid). | Pattern: ^[A-Za-z0-9]\{6\}(-[A-Za-z0-9]\{4\})\{5\}-[A-Za-z0-9]\{6\}$ Required | |
preserveOriginal boolean | preserveOriginal selects the adoption policy. When true, DeleteVolume only releases the LV (never lvremove), expansion is refused, and the node never formats, fscks or resizes it. When false (policy Managed) the adopted LV becomes a normal managed volume. | Required |
NFSConfig
NFSConfig holds NFS-specific protocol parameters. The server always uses NFSv4.2 over TCP on port 2049.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
version string | version is the NFS protocol version. | 4.2 | Enum: [4.2] Optional |
port integer | port is the fixed NFS listener port. | 2049 | Maximum: 2049 Minimum: 2049 Optional |
acl boolean | acl enables client-IP access control. Defaults to false. | false | Optional |
squash NFSSquash | squash selects the NFS identity squashing policy. Defaults to root. | root | Enum: [root none all] Optional |
NFSExportSpec
NFSExportSpec is the protocol-specific durable desired state for an NFS export. BindAddress and Port remain on VolumeExportSpec because they are common routing fields shared by every protocol.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
version string | version is the NFS protocol version. | Enum: [4.2] Required | |
squash NFSSquash | squash is the NFS identity squashing policy. | Enum: [root none all] Required | |
readonly boolean | readonly makes the export read-only for every client. | Required |
NFSOverrides
NFSOverrides is intentionally empty: NFS structural export settings are fixed per PillarProtocol and cannot be overridden per binding or volume.
Appears in:
NFSSquash
Underlying type: string
NFSSquash selects the NFS root squashing policy.
Validation:
- Enum: [root none all]
Appears in:
| Field | Description |
|---|---|
root | NFSSquashRoot applies root squashing (the safe default). |
none | NFSSquashNone disables root squashing. |
all | NFSSquashAll squashes all users. |
NVMeOFTCPConfig
NVMeOFTCPConfig holds NVMe-oF/TCP-specific protocol parameters. Target bind IP is not included here — the controller resolves it at runtime from the referenced PillarAgent.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
port integer | port is the TCP port on which the NVMe-oF target listens. Defaults to 4420. | 4420 | Maximum: 65535 Minimum: 1 Optional |
acl boolean | acl enables host NQN-based access control when true. When false the subsystem uses allow_any_host. Defaults to false (allow_any_host) so that e2e tests and simple deployments work without registering initiator NQNs. | false | Optional |
maxQueueSize integer | maxQueueSize is the I/O queue depth the initiator requests for each queue of the connection (the fabrics queue_size connect option). Unset keeps the kernel default (128). The kernel accepts 16-1024. Applies to connections made after the change; a staged volume keeps the value from its CreateVolume. | Maximum: 1024 Minimum: 16 Optional | |
inCapsuleDataSize integer | inCapsuleDataSize is the maximum in-capsule data size in bytes the target advertises (the nvmet port’s param_inline_data_size). It is a property of the listening port, shared by every volume exported on the same storage node address and port: exporting a volume that requests a value different from the port’s current value fails instead of silently using the port’s value. Unset keeps the transport default (16384 for TCP on 4 KiB pages) and accepts whatever value the port has. The minimum is 1024: NVMe/TCP hosts send the 1024-byte fabrics Connect data in-capsule, so a smaller value makes every connect fail. | Minimum: 1024 Optional | |
maxDataTransferSize integer | maxDataTransferSize is the largest data transfer, in bytes, of one NVMe I/O command (MDTS). Unset resolves to 4194304 (4 MiB); 0 means no limit. Any other value is a power of two from 8192 to 1073741824. The target advertises it through the nvmet port’s param_mdts on Linux 7.1 and later. Like inCapsuleDataSize it is a property of the listening port, shared by every volume exported on the same storage node address and port, but a volume’s value is an upper bound: a port advertising a smaller limit only makes commands smaller. Exporting a volume therefore fails only when the port already advertises a larger limit than the volume’s (non-zero) value. A port that advertises no limit accepts any value, and when the agent restores the exports of a port, for example after the storage node rebooted, it sets the port to the smallest value among them before exporting any. An older target kernel cannot advertise a limit (MDTS 0); the node then caps the volume’s queue/max_sectors_kb to this size itself, which keeps large writes from failing on a storage node whose memory is too fragmented to allocate a whole command’s scatterlist. A node whose target advertises any limit leaves the device unchanged. The node cannot set queue/max_sectors_kb below one memory page, so on a worker with 16 KiB or 64 KiB pages a non-zero value smaller than the page size fails NodeStageVolume with InvalidArgument instead of being rounded up. | Enum: [0 8192 16384 32768 65536 131072 262144 524288 1048576 2097152 4194304 8388608 16777216 33554432 67108864 134217728 268435456 536870912 1073741824] Optional | |
ctrlLossTmo integer | ctrlLossTmo is the maximum seconds to wait before declaring a target permanently lost after connectivity failure. | Minimum: 0 Optional | |
reconnectDelay integer | reconnectDelay is the interval in seconds between reconnect attempts. | Minimum: 0 Optional | |
hdrDigest boolean | hdrDigest makes the initiator request the NVMe/TCP header digest: a CRC32C over every PDU header, so a header corrupted in flight fails with a digest error instead of being acted on. The target needs no configuration; it enables the digest the initiator requests. Unlike the tunables above it is not recorded per volume: the controller reads it from this PillarProtocol whenever it publishes a volume to a node, so a change applies to every volume of the protocol, including volumes provisioned before the change, from their next attach. A volume already connected on a node keeps the digest settings of its existing connection until it is unstaged. | Optional | |
dataDigest boolean | dataDigest makes the initiator request the NVMe/TCP data digest: a CRC32C over every PDU data payload, so data corrupted in flight fails with a digest error instead of reaching the disk or the application. It applies like hdrDigest. | Optional |
NVMeOFTCPOverrides
NVMeOFTCPOverrides holds the per-volume-tunable subset of NVMeOFTCPConfig. Structural fields (port — which listener the export lives on — and acl — the security policy anchor) are not part of this type and are rejected with their path by the shared document decoder.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
maxQueueSize integer | maxQueueSize overrides the protocol-level maxQueueSize (the initiator’s fabrics queue_size; the kernel accepts 16-1024). | Maximum: 1024 Minimum: 16 Optional | |
inCapsuleDataSize integer | inCapsuleDataSize overrides the protocol-level inCapsuleDataSize (the target port’s param_inline_data_size, shared by every volume exported on the same storage node address and port; at least 1024). | Minimum: 1024 Optional | |
maxDataTransferSize integer | maxDataTransferSize overrides the protocol-level maxDataTransferSize (bytes per NVMe I/O command; 0 or a power of two from 8192 to 1073741824; shared by every volume exported on the same storage node address and port). | Enum: [0 8192 16384 32768 65536 131072 262144 524288 1048576 2097152 4194304 8388608 16777216 33554432 67108864 134217728 268435456 536870912 1073741824] Optional | |
ctrlLossTmo integer | ctrlLossTmo overrides the protocol-level ctrlLossTmo (seconds before declaring a target permanently lost). | Minimum: 0 Optional | |
reconnectDelay integer | reconnectDelay overrides the protocol-level reconnectDelay (seconds between reconnect attempts). | Minimum: 0 Optional |
NodeRefSpec
NodeRefSpec references a Kubernetes Node for agent address resolution.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | name is the Kubernetes Node name. | MinLength: 1 Required | |
addressType string | addressType selects which address type to use from the node’s status.addresses. Defaults to InternalIP. | InternalIP | Enum: [InternalIP ExternalIP] Optional |
addressSelector string | addressSelector is an optional CIDR filter applied when multiple addresses of the same type exist on the node. | Optional | |
port integer | port overrides the default agent gRPC port (9500). | Maximum: 65535 Minimum: 1 Optional |
PartialFailureInfo
PartialFailureInfo records what happened when a CSI operation partially succeeded, leaving the volume in an inconsistent state that requires explicit recovery or cleanup.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
failedOperation string | failedOperation is the name of the CSI or agent-level operation that failed (e.g., “ExportVolume”, “NodeStageMount”). | Required | |
failedAt Time | failedAt is the time when the partial failure was recorded. | Required | |
reason string | reason is a brief, machine-readable CamelCase word that describes the category of failure (e.g., “AgentRPCFailed”, “MountFailed”). | Optional | |
message string | message is a human-readable sentence describing what failed and how to recover. | Optional | |
backendCreated boolean | backendCreated is true when the backend storage resource (zvol, LVM LV, etc.) was successfully created before the failure occurred. When false, DeleteVolume only needs to call UnexportVolume (idempotent no-op); when true, it must also call DeleteVolume on the agent to reclaim the storage. | Optional | |
exportCreated boolean | exportCreated is true when the network export (NVMe-oF subsystem) was successfully created before the failure. When true, cleanup must call UnexportVolume before DeleteVolume. | Optional |
PillarAgent
PillarAgent represents a storage agent instance that pillar-csi controller manages. Users create PillarAgent resources; the controller reconciles gRPC connectivity and populates status fields.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | pillar-csi. | ||
kind string | PillarAgent | ||
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | Optional | |
spec PillarAgentSpec | spec defines the desired state of PillarAgent. | Required | |
status PillarAgentStatus | status defines the observed state of PillarAgent. | Optional |
PillarAgentSpec
PillarAgentSpec defines the desired state of PillarAgent. Exactly one of nodeRef or external must be set (discriminated union).
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
nodeRef NodeRefSpec | nodeRef references a Kubernetes Node whose agent is accessible via the node’s IP. Mutually exclusive with external. | Optional | |
external ExternalSpec | external addresses a storage agent that lives outside the Kubernetes cluster. Mutually exclusive with nodeRef. | Optional |
PillarAgentStatus
PillarAgentStatus defines the observed state of PillarAgent.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
resolvedAddress string | resolvedAddress is the IP address selected for gRPC communication with the agent. | Optional | |
agentVersion string | agentVersion is the version string reported by the connected agent. | Optional | |
capabilities AgentCapabilities | capabilities summarizes what the connected agent is capable of. | Optional | |
discoveredPools DiscoveredPool array | discoveredPools lists storage pools found on the agent at last reconcile. | Optional | |
conditions Condition array | conditions represent the current state of the PillarAgent resource. Known condition types: • “NodeExists” – the referenced K8s Node is present in the cluster. • “AgentConnected” – the gRPC connection to the storage agent. The reason field distinguishes the authentication level: True / “Authenticated” – mTLS handshake succeeded; both sides verified. True / “Dialed” – TCP connection established; no mTLS in use. False / “TLSHandshakeFailed” – mTLS configured but handshake failed (cert error). False / “HealthCheckFailed” – TCP-level or transport error. False / “AgentUnhealthy” – agent reachable but reports degraded health. False / “DialerNotConfigured”– no gRPC dialer is wired (dev/test only). • “ExportsReady” – the agent’s export restore has completed and it serves exports. Reasons: True / “ExportsServing” – no export restore is pending (or it finished). False / “ExportRestorePending” – the agent is restoring exports after a restart. False / “ExportRestoreFailed” – the last restore attempt failed; it is retried. Unknown – agent connectivity is not established. • “Ready” – all checks pass; the target is ready to serve pools. | Optional |
PillarProtocol
PillarProtocol describes a reusable network-storage protocol configuration. It is node-independent: the same PillarProtocol can be referenced by multiple PillarStorageClass resources across different pools and targets. The controller resolves the target bind address at runtime from the relevant PillarAgent.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | pillar-csi. | ||
kind string | PillarProtocol | ||
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | ||
spec PillarProtocolSpec | |||
status PillarProtocolStatus |
PillarProtocolSpec
PillarProtocolSpec defines the desired state of PillarProtocol.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
protocol ProtocolSpec | protocol selects the network storage protocol and its configuration. Exactly one member must be set. | Required |
PillarProtocolStatus
PillarProtocolStatus defines the observed state of PillarProtocol.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
storageClassCount integer | storageClassCount is the number of PillarStorageClass resources that reference this protocol. Maintained automatically by the reconciler. | Optional | |
activeAgents string array | activeAgents lists the names of PillarAgents currently serving volumes via this protocol. Maintained automatically by the reconciler. | Optional | |
conditions Condition array | conditions represent the current state of the PillarProtocol resource. Known condition types: • “Ready” – the protocol configuration is valid and ready for use. | Optional |
PillarStorageClass
PillarStorageClass combines a PillarStore and a PillarProtocol to create a Kubernetes StorageClass. A validation webhook rejects incompatible backend/protocol combinations (e.g. a block backend with a file protocol). Parameter overrides allow fine-tuning per binding without changing the shared store or protocol resources.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | pillar-csi. | ||
kind string | PillarStorageClass | ||
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | ||
spec PillarStorageClassSpec | |||
status PillarStorageClassStatus |
PillarStorageClassSpec
PillarStorageClassSpec defines the desired state of PillarStorageClass.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
csiDriver string | csiDriver selects the provisioner for newly generated StorageClasses. The default preserves existing block and dynamic NFS routing; files explicitly opts in to existing-filesystem adoption. | pillar-csi.bhyoo.com | Enum: [pillar-csi.bhyoo.com files.pillar-csi.bhyoo.com] Optional |
storeRef string | storeRef is the name of the PillarStore to use for provisioning. | MinLength: 1 Required | |
protocolRef string | protocolRef is the name of the PillarProtocol used to expose volumes. | MinLength: 1 Required | |
storageClass StorageClassTemplate | storageClass configures the Kubernetes StorageClass that this binding generates. The controller creates and owns the StorageClass; deleting the PillarStorageClass also deletes the StorageClass. | Optional | |
filesystem FilesystemConfig | filesystem configures the filesystem axis for volumes of this binding: which filesystem the node formats and which mount options it applies. | Optional | |
overrides StorageClassOverrides | overrides provides a fine-grained parameter layer on top of the referenced store and protocol defaults. | Optional | |
localAttach boolean | localAttach preserves the default driver’s direct-attach behavior: a pod on the storage node mounts the backend directly while its network export is fenced; pods on other nodes use the protocol. For the file driver, true declares local-only native readiness, needs no NFS manager, and rejects multi-node access. Single-node file volumes always freeze localAttach=true per volume and skip network export. Multi-node file volumes require false and a working NFS manager. | Optional |
PillarStorageClassStatus
PillarStorageClassStatus defines the observed state of PillarStorageClass.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
storageClassName string | storageClassName is the name of the generated StorageClass. | Optional | |
conditions Condition array | conditions represent the current state of the PillarStorageClass resource. Known condition types: • “StoreReady” – the referenced PillarStore is in Ready state. • “ProtocolValid” – the referenced PillarProtocol exists and is valid. • “Compatible” – the pool backend and protocol are compatible (e.g. block backend cannot be combined with a file protocol). • “StorageClassCreated” – the Kubernetes StorageClass has been created. • “Ready” – all checks pass; the binding is operational. | Optional |
PillarStore
PillarStore represents a specific storage pool on a PillarAgent. Users create PillarStore resources to declare that a pool is available for CSI volume provisioning; the controller validates availability and updates status.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | pillar-csi. | ||
kind string | PillarStore | ||
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | ||
spec PillarStoreSpec | |||
status PillarStoreStatus |
PillarStoreSpec
PillarStoreSpec defines the desired state of PillarStore.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
agentRef string | agentRef is the name of the PillarAgent this pool lives on. | MinLength: 1 Required | |
backend BackendSpec | backend describes the storage backend and pool to use. Exactly one member (zfs, lvm, or directory) must be set. | Required |
PillarStoreStatus
PillarStoreStatus defines the observed state of PillarStore.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
capacity StoreCapacity | capacity reflects the latest capacity reading for this pool. | Optional | |
conditions Condition array | conditions represent the current state of the PillarStore resource. Known condition types: • “AgentReady” – the referenced PillarAgent is in Ready state. • “PoolDiscovered” – the pool named in spec.backend has been found on the agent and the agent creates volumes in it where the store declares (zfs.parentDataset, lvm.thinPool); reason BackendLayoutMismatch otherwise. • “BackendSupported” – the backend is listed in the agent’s capabilities. • “Ready” – all checks pass; the pool can provision volumes. | Optional |
PillarVolumeReservation
PillarVolumeReservation atomically binds a backend volume (agent + backend + agentVolumeID, or the native filesystem resource key) to one volume lifecycle. The CSI controller creates it before the owning PillarVolumeState with a deterministic name, so two concurrent CreateVolume claims on the same backend volume — for example two PVCs importing the same zvol — cannot both start a lifecycle: the loser sees AlreadyExists and is refused. The reservation is deleted when the owning PillarVolumeState is removed. It is never reclaimed automatically: one whose owner never wrote its record (the controller crashed in between) stays until an operator who verified the owning claim is gone deletes it with kubectl.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | pillar-csi. | ||
kind string | PillarVolumeReservation | ||
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | ||
spec PillarVolumeReservationSpec |
PillarVolumeReservationSpec
PillarVolumeReservationSpec identifies one backend volume reservation and the volume lifecycle that holds it.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
agentRef string | agentRef is the PillarAgent whose storage node holds the reserved backend volume. | MinLength: 1 Required | |
backendType string | backendType is the storage backend routing token of the reserved backend volume (e.g. “zfs-zvol”). | MinLength: 1 Required | |
agentVolumeID string | agentVolumeID is the reserved backend volume identifier (“<pool>/<volume-name>”), the same value the agent RPCs carry. | MinLength: 1 Required | |
filesystemResourceID string | filesystemResourceID is the canonical native backing-resource key for filesystem adoption, independent of logical pool and source path. Filesystem aliases reserve this key rather than agentVolumeID; the latter remains the routing identity. Omitted for legacy block volumes. | Optional | |
ownerVolume string | ownerVolume is the name of the PillarVolumeState lifecycle that holds the reservation. A reservation survives the whole lifecycle, including retries of refused backend calls, and is released only when the owning lifecycle is retired. | MinLength: 1 Required | |
claimRef VolumeClaimRef | claimRef identifies the PersistentVolumeClaim the owning lifecycle provisions for. A CreateVolume for any other claim (or claim UID) is refused while the reservation exists; the refusal names this claim so an operator can verify it is gone before deleting the reservation. | Optional |
PillarVolumeState
PillarVolumeState tracks the lifecycle state of a single CSI volume provisioned by pillar-csi. The controller creates a PillarVolumeState during CreateVolume, updates it at each lifecycle stage, and deletes it during DeleteVolume.
The primary purpose of PillarVolumeState is to provide durable partial-failure state tracking: if CreateVolume creates the backend zvol but then crashes before ExportVolume returns, the PillarVolumeStatePhaseCreatePartial phase is already written to etcd, allowing the next CreateVolume call (or an automated recovery controller) to skip the backend-creation step and retry only the export.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | pillar-csi. | ||
kind string | PillarVolumeState | ||
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | Optional | |
spec PillarVolumeStateSpec | spec holds the immutable volume identity and routing parameters. | Required | |
status PillarVolumeStateStatus | status reflects the mutable lifecycle state of the volume. | Optional |
PillarVolumeStatePhase
Underlying type: string
PillarVolumeStatePhase describes the lifecycle phase of a CSI volume as tracked by the pillar-csi controller.
The phases map to VolumeState constants in the internal/csi package:
PillarVolumeStatePhaseProvisioning → in-progress CreateVolume (transient)
PillarVolumeStatePhaseCreatePartial → StateCreatePartial (backend created, export failed)
PillarVolumeStatePhaseReady → StateCreated (fully provisioned)
PillarVolumeStatePhaseControllerPublished → StateControllerPublished
PillarVolumeStatePhaseNodeStagePartial → StateNodeStagePartial
PillarVolumeStatePhaseNodeStaged → StateNodeStaged
PillarVolumeStatePhaseNodePublished → StateNodePublished
PillarVolumeStatePhaseRecoveryPending → no VolumeState mapping (non-serving recovery intent)Validation:
- Enum: [Provisioning CreatePartial Ready ControllerPublished NodeStagePartial NodeStaged NodePublished RecoveryPending]
Appears in:
| Field | Description |
|---|---|
Provisioning | PillarVolumeStatePhaseProvisioning means CreateVolume has been started but has not yet completed. This is a transient state; the controller should advance it to CreatePartial or Ready before returning to the caller. |
CreatePartial | PillarVolumeStatePhaseCreatePartial means the backend storage resource (zvol, LVM LV, etc.) was created successfully, but the ExportVolume step failed. The volume exists on the storage node but is not yet accessible over the network. Recovery options: • Retry CreateVolume: the controller re-attempts ExportVolume. • Call DeleteVolume: the controller calls UnexportVolume (noop) and then DeleteVolume on the agent to clean up the backend resource. |
Ready | PillarVolumeStatePhaseReady means CreateVolume completed fully: both the backend resource and its network export (NVMe-oF target, iSCSI target, NFS share) exist. Corresponds to StateCreated in VolumeStateMachine. |
ControllerPublished | PillarVolumeStatePhaseControllerPublished means ControllerPublishVolume has succeeded. The initiator NQN has been granted access to the NVMe-oF subsystem. |
NodeStagePartial | PillarVolumeStatePhaseNodeStagePartial means NodeStageVolume partially succeeded: the NVMe-oF connect step completed but the mount step failed. Corresponds to StateNodeStagePartial in VolumeStateMachine. |
NodeStaged | PillarVolumeStatePhaseNodeStaged means NodeStageVolume has succeeded. The volume is formatted and mounted at the CSI staging target path. |
NodePublished | PillarVolumeStatePhaseNodePublished means NodePublishVolume has succeeded. The staging path has been bind-mounted into a pod’s target path. |
RecoveryPending | PillarVolumeStatePhaseRecoveryPending means the volume record exists only to receive an operator-authorized ownership transfer (spec.recovery is set). From its initial creation the object is non-serving — CSI publish, stage, expand and resync operations refuse it — and non-reapable: the abandoned-volume reaper must not release or delete it. The phase advances only after the agent’s TransferVolumeOwnership commits and the transferred mark’s recorded uid/generation and authorization digest agree with spec.recovery. |
PillarVolumeStateSpec
PillarVolumeStateSpec defines the immutable identity and routing information for a CSI volume. Fields are populated by the controller at CreateVolume time and never changed thereafter.
The spec-level transition rules preserve descriptor presence; a rule on an optional descriptor alone cannot prevent adding or removing it.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
volumeID string | volumeID is the public CSI handle assigned by the controller. Existing volumes keep the format: <target-name>/<protocol-type>/<backend-type>/<agent-vol-id>. New file volumes append ”.” and an opaque 32-lowercase-hex lifecycle nonce. Retries and manual Retain rebinding preserve the stored handle; adopting the same source into a later lifecycle produces a new handle. | MinLength: 1 Required | |
agentVolumeID string | agentVolumeID is the backing-resource routing identifier used in agent RPCs. The format is “<pool>/<volume-name>” where pool is the storage pool name, or just “<volume-name>” for backends with no pool prefix. Filesystem adoption derives its stable leaf from native resource identity, independent of the public handle’s lifecycle nonce. Source re-adoption retains this routing identity but does not reuse the old public handle. | MinLength: 1 Required | |
agentRef string | agentRef is the name of the PillarAgent that hosts this volume. | MinLength: 1 Required | |
backendType string | backendType is the storage backend routing token (e.g. “zfs-zvol”, “lvm-lv”). It is the backend member selected by the store’s spec.backend union at CreateVolume time. | Required | |
protocolType string | protocolType is the network storage protocol routing token (e.g. “nvmeof-tcp”). It is the protocol member selected by the protocol’s spec.protocol union at CreateVolume time. | Required | |
capacityBytes integer | capacityBytes is the requested volume size in bytes. | Minimum: 0 Optional | |
claimRef VolumeClaimRef | claimRef identifies the PersistentVolumeClaim this volume was provisioned for, when the provisioner named it (external-provisioner --extra-create-metadata); its UID is read from the claim at the firstCreateVolume. The controller uses it to recognize a provisioning attempt that was abandoned because its claim was removed before any PersistentVolume was created. Without it the claim UID is derived from the default “pvc-<claim UID>” volume name. | Optional | |
importedFrom string | importedFrom records the full source dataset name when the volume was adopted from an existing ZFS zvol via the ”pillar-csi.bhyoo.com/import-zvol” PVC annotation (e.g. ”hot-data/k8s/pvc-abc123”), instead of being created empty. The field is informational — the imported zvol keeps its data but becomes a normal volume: DeleteVolume destroys it, and the annotation has no effect once the volume exists. | Optional | |
filesystemAdoption FilesystemAdoption | filesystemAdoption records the immutable identity of an existing directory or ZFS filesystem dataset. Delete retires only owned state and preserves the original source; recovery must never recreate it. | Optional | |
lvmSource LVMSourceRef | lvmSource pins the pre-existing LVM logical volume this volume adopted via the “pillar-csi.bhyoo.com/import-lv” PVC annotation, by name and by stable VG/LV UUIDs, together with the adoption policy. It is set once at the first CreateVolume attempt and is immutable: it can be neither changed nor added or removed after creation. Absent for volumes created empty and for zvol imports (see importedFrom), which keep their existing semantics. | Optional | |
resolved ResolvedVolumeConfig | resolved is the effective per-volume configuration resolved at the first CreateVolume attempt from the PillarStore, PillarProtocol, PillarStorageClass overrides, StorageClass parameter documents and PVC annotations (in that precedence order). It is replayed on every retry so the volume keeps the settings it was provisioned with even when the claim or the CRDs behind the overrides no longer exist. | Optional | |
recovery VolumeRecoveryIntent | recovery declares that this volume record exists solely to receive an operator-authorized ownership transfer of a pre-existing adopted backend resource (see VolumeRecoveryIntent). It is set at creation for a volume born in phase RecoveryPending and cannot be added or removed after creation. Mutually exclusive with lvmSource, importedFrom and filesystemAdoption — a recovery volume is not itself an import. The fields the operator cannot know at create time — newVolumeUID (this object’s own metadata.uid), authorization and authorizationDigest — are write-once: they may be empty at create and populated exactly once afterwards; every other field is immutable from creation. | Optional |
PillarVolumeStateStatus
PillarVolumeStateStatus reflects the controller-observed state of a PillarVolumeState.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
phase PillarVolumeStatePhase | phase is the current lifecycle phase of the volume. See PillarVolumeStatePhase for the full state diagram. | Enum: [Provisioning CreatePartial Ready ControllerPublished NodeStagePartial NodeStaged NodePublished RecoveryPending] Optional | |
partialFailure PartialFailureInfo | partialFailure is populated whenever the volume is in a partial-failure phase (CreatePartial, NodeStagePartial). It records what succeeded and what failed so that the recovery controller can take the minimum necessary corrective action. Cleared when the partial failure is resolved. | Optional | |
backendDevicePath string | backendDevicePath is the device path returned by agent.CreateVolume (e.g. “/dev/zvol/pool/pvc-abc123”). Persisted when the volume enters the CreatePartial phase so that a retry of CreateVolume can skip the backend-creation step and call agent.ExportVolume directly, using this stored path rather than re-querying the agent. Cleared when the volume reaches the Ready phase. | Optional | |
importAcquired boolean | importAcquired records that agent.ImportVolume succeeded for an importedFrom, lvmSource or filesystemAdoption volume: the agent durably adopted the existing resource into this lifecycle. While it is unset, the lifecycle cannot prove the agent ever took ownership, so ReapAbandonedVolume and DeleteVolume end the lifecycle with agent.ReleaseVolume — which retires it at the agent without touching the source — instead of UnexportVolume and DeleteVolume, and ControllerExpandVolume and ControllerPublishVolume refuse it: a refused or lost-response import that was torn down, resized or exposed anyway would harm a resource this driver never owned. | Optional | |
exportInfo VolumeExportInfo | exportInfo holds the network export parameters returned by ExportVolume. Populated when phase is Ready or later. Used by DeleteVolume to unmount the export after a controller restart without re-querying the agent. | Optional | |
publishedNodes VolumePublication array | publishedNodes lists every node the volume is currently published to by ControllerPublishVolume. ControllerPublishVolume rejects a publish that is incompatible with an existing entry (for example a second node for a SINGLE_NODE_* access mode); ControllerUnpublishVolume removes the entry after the agent revoked the node’s access; DeleteVolume refuses to delete a volume while this list is non-empty. Entries are also the exact initiator set the storage target’s ACL must contain. | Optional | |
exportSpec VolumeExportSpec | exportSpec is the export configuration the controller requested at CreateVolume time. It is the durable desired state the resync controller uses to re-create the export after the storage node loses its target state. Volumes created before this field existed have no exportSpec and are reported via the ExportReconciled condition instead of being recovered. | Optional | |
localAttachNode string | localAttachNode is the storage node on which the volume was last attached directly. It is set in the same update that reserves a local publication and cleared only after the agent confirmed the backend device is no longer held on that node and returned the export to serving remote initiators. While it is set the export serves no I/O to remote initiators, including after an agent restart. | Optional | |
publicationGeneration integer | publicationGeneration is a monotonically increasing counter bumped by exactly 1 on every status update that changes publishedNodes or sets deleting. The value committed by that update is sent to the agent as the fencing generation on AllowInitiator, DenyInitiator, UnexportVolume and ReconcileState; the agent rejects any request carrying a lower generation than the one it last applied. This closes the window where a stale (former leader) controller’s in-flight RPC lands after a new leader already changed the publication set. | Minimum: 0 Optional | |
deleting boolean | deleting is set by DeleteVolume before it removes the export and the backend resource. It is written by a resourceVersion compare-and-swap that only succeeds while publishedNodes is empty, so a volume can never be concurrently published and deleted. ControllerPublishVolume rejects reservations while deleting is true, and state resync skips the volume. | Optional | |
conditions Condition array | conditions represent the current observed state of the PillarVolumeState. Known condition types: • “BackendCreated” – the backend storage resource exists on the agent. • “ExportCreated” – the network export exists on the agent. • “Ready” – both backend and export exist; volume is usable. | Optional |
ProtocolOverrides
ProtocolOverrides is the per-binding or per-volume override document for the transport protocol. Exactly one member must be set, and it must match the protocol member configured on the referenced PillarProtocol.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
nvmeofTcp NVMeOFTCPOverrides | nvmeofTcp overrides NVMe-oF/TCP tunables; valid only when the protocol’s member is nvmeofTcp. | Optional | |
iscsi ISCSIOverrides | iscsi overrides iSCSI tunables; valid only when the protocol’s member is iscsi. | Optional | |
nfs NFSOverrides | nfs is an empty override member; NFS settings are structural and fixed by the referenced PillarProtocol. | Optional |
ProtocolSpec
ProtocolSpec describes the transport protocol of a PillarProtocol. Exactly one member must be set: the member name selects the protocol (nvmeofTcp, iscsi, or nfs) and its value carries that protocol’s configuration.
Per-binding and per-volume override documents use ProtocolOverrides, which keeps only the tunable subset.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
nvmeofTcp NVMeOFTCPConfig | nvmeofTcp holds NVMe-oF/TCP configuration. | Optional | |
iscsi ISCSIConfig | iscsi holds iSCSI configuration. | Optional | |
nfs NFSConfig | nfs holds NFS configuration. | Optional |
ReclaimPolicy
Underlying type: string
ReclaimPolicy mirrors corev1.PersistentVolumeReclaimPolicy for inline use.
Validation:
- Enum: [Delete Retain]
Appears in:
| Field | Description |
|---|---|
Delete | |
Retain |
ResolvedVolumeConfig
ResolvedVolumeConfig is the durable record of the effective configuration a volume was provisioned with. The shapes reuse the CRD union documents so the stored object reads exactly like the layers it was resolved from.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
backend BackendSpec | backend is the effective storage backend configuration: the store’s spec.backend with binding, StorageClass-document and PVC tunable overrides applied. | Required | |
protocol ProtocolSpec | protocol is the effective transport configuration: the protocol’s spec.protocol with binding, StorageClass-document and PVC tunable overrides applied. | Required | |
filesystem FilesystemConfig | filesystem is the effective filesystem configuration the node applies when the volume is a Filesystem-mode mount. | Optional | |
localAttach boolean | localAttach records the volume’s resolved attachment mode. Default-driver volumes may bypass the protocol on their PillarAgent’s node; publishes on other nodes use the protocol. For filesystem adoption, true means local-only attachment with no network export or NFS manager dependency. Single-node file volumes always record true; multi-node file volumes record false and require a working NFS manager. | Optional |
StorageClassOverrides
StorageClassOverrides is the optional layer of per-binding parameter overrides applied on top of the store and protocol defaults.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
backend BackendOverrides | backend contains backend tunable overrides (same shape as the pillar-csi.bhyoo.com/backend PVC annotation document). | Optional | |
protocol ProtocolOverrides | protocol contains protocol tunable overrides (same shape as the pillar-csi.bhyoo.com/protocol PVC annotation document). | Optional |
StorageClassTemplate
StorageClassTemplate defines the parameters used to generate a Kubernetes StorageClass from this binding.
A StorageClass is immutable apart from allowVolumeExpansion, so a change to reclaimPolicy or volumeBindingMode makes the controller delete and re-create the StorageClass. Tunable overrides do not feed the StorageClass parameters — they are resolved from live CRs at CreateVolume — so editing them never forces a StorageClass recreation.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | name is the name of the generated StorageClass. Defaults to the PillarStorageClass’s own name when omitted. Immutable: PVCs reference their StorageClass by name. | MinLength: 1 Optional | |
reclaimPolicy ReclaimPolicy | reclaimPolicy determines what happens to a PersistentVolume when its PersistentVolumeClaim is deleted. | Delete | Enum: [Delete Retain] Optional |
volumeBindingMode VolumeBindingMode | volumeBindingMode controls when volume binding and dynamic provisioning occur. | Immediate | Enum: [Immediate WaitForFirstConsumer] Optional |
allowVolumeExpansion boolean | allowVolumeExpansion enables online volume expansion. When unset the controller derives the value from backend capabilities. | Optional |
StoreCapacity
StoreCapacity reports the measured capacity of the pool.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
total Quantity | total is the gross capacity of the pool. | Optional | |
available Quantity | available is the free capacity available for new volumes. | Optional | |
used Quantity | used is the amount of capacity already consumed. | Optional |
VolumeBindingMode
Underlying type: string
VolumeBindingMode mirrors storagev1.VolumeBindingMode for inline use.
Validation:
- Enum: [Immediate WaitForFirstConsumer]
Appears in:
| Field | Description |
|---|---|
Immediate | |
WaitForFirstConsumer |
VolumeClaimRef
VolumeClaimRef identifies the PersistentVolumeClaim a volume was provisioned for. The UID pins one claim: a claim deleted and re-created under the same name is a different claim.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
uid string | uid is the UID of the PersistentVolumeClaim. | MinLength: 1 Required | |
namespace string | namespace is the namespace of the PersistentVolumeClaim. | Optional | |
name string |
VolumeExportInfo
VolumeExportInfo holds the network export information returned by the agent’s ExportVolume RPC. These values are stored durably so that DeleteVolume can tear down the export after a controller restart.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
targetID string | targetID is the protocol-specific export identifier: NQN for NVMe-oF, IQN for iSCSI, or the server export path for NFS. | Optional | |
address string | address is the IP address of the storage node (same as PillarAgent.Status.ResolvedAddress with the port stripped). | Optional | |
port integer | port is the TCP port on which the protocol target listens. NFS uses its fixed port 2049. | Optional | |
volumeRef string | volumeRef is the protocol-level reference for this volume. | Optional |
VolumeExportSpec
VolumeExportSpec is the export configuration requested from the agent at CreateVolume time. It is the durable desired state from which the controller re-creates the export after the storage node loses its target state (agent restart, node reboot), independent of later StorageClass or PillarProtocol changes.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
bindAddress string | bindAddress is the storage node address the target listens on. | MinLength: 1 Required | |
port integer | port is the TCP port the target listens on; 0 selects the protocol’s default port, exactly as in the original export request. | Maximum: 65535 Minimum: 0 Required | |
aclEnabled boolean | aclEnabled is true when the target admits only the initiators of published nodes; false admits any initiator. | Required | |
inCapsuleDataSize integer | inCapsuleDataSize is the NVMe-oF/TCP in-capsule data size in bytes the export requires on its port; absent when the export accepts the port’s value. NVMe-oF/TCP only. | Minimum: 1024 Optional | |
maxDataTransferSize integer | maxDataTransferSize is the NVMe-oF/TCP maximum data transfer size in bytes (0 = no limit) the export allows its port to advertise at most; absent when the export accepts the port’s value. NVMe-oF/TCP only. | Enum: [0 8192 16384 32768 65536 131072 262144 524288 1048576 2097152 4194304 8388608 16777216 33554432 67108864 134217728 268435456 536870912 1073741824] Optional | |
nfs NFSExportSpec | nfs contains the durable NFS-specific export configuration. | Optional |
VolumePublication
VolumePublication records one node to which ControllerPublishVolume granted access to this volume. The list of publications is the durable source of truth for CSI publish exclusivity (a SINGLE_NODE_* volume may be published to at most one node) and for the initiator ACL set the storage target must hold. An entry is written before the agent grants access and removed only after the agent revoked it, so a crash between the two steps leaves the record fail-closed.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
nodeID string | nodeID is the CSI node_id (Kubernetes node name) the volume is published to. | MinLength: 1 Required | |
initiatorID string | initiatorID is the protocol-specific initiator identity granted access (NVMe-oF host NQN, iSCSI IQN, or the node ID for file protocols). It is recorded so the grant can be revoked even after the node’s CSINode object is gone. | MinLength: 1 Required | |
accessMode string | accessMode is the CSI VolumeCapability access mode name requested by the publish (e.g. “SINGLE_NODE_WRITER”, “MULTI_NODE_READER_ONLY”). | MinLength: 1 Required | |
readonly boolean | readonly mirrors ControllerPublishVolumeRequest.readonly. | Optional | |
revoking boolean | revoking is set by ControllerUnpublishVolume in the same update that allocates the fencing generation for the revoke, and the record is removed once the agent revoked the initiator. A revoking record still occupies the volume for exclusivity (fail-closed) but is not part of the initiator set the target should grant: state recovery must exclude it, and a publish to the same node is rejected until the unpublish finishes. | Optional | |
local boolean | local is true when the publication attaches the backend device directly on the storage node instead of through the network export (localAttach enabled and nodeID is the node of the volume’s PillarAgent). A local publication grants no initiator: it is excluded from the export’s ACL set and its unpublish revokes nothing on the target. | Optional |
VolumeRecoveryIntent
VolumeRecoveryIntent pins the operator-declared recovery intent for a volume born in phase RecoveryPending: which retired lifecycle’s adopted backend resource transfers into this record, under which policy, and bound to which signed RecoveryAuthorization.
The operator cannot know this record’s metadata.uid or produce the authorization before the record exists, so intent is declared in two steps: oldVolumeUID, oldGeneration, source and newGeneration are set at creation and immutable; newVolumeUID (which MUST equal metadata.uid) and authorizationDigest may be empty at creation and are write-once afterwards — each can be set exactly once and then never changed or cleared.
Authorization (the raw serialized grant) is deliberately not compared by CEL: Kubernetes CEL cannot reliably compare byte-format fields across updates, and the grant’s identity is already pinned by the write-once authorizationDigest. The controller requires the digest of whatever authorization bytes it uses to equal authorizationDigest, and the agent verifies the grant’s signature against its trust anchor, so a re-supplied or different payload can never authorize anything the digest does not name. The controller performs the transfer only once all fields are populated and consistent.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
oldVolumeUID string | oldVolumeUID is the UID of the retired PillarVolumeState lifecycle whose backend resource is recovered (the fence mark’s current volume_uid). Immutable from creation. | MinLength: 1 Required | |
oldGeneration integer | oldGeneration is the exact publication generation recorded in the old lifecycle’s fence mark. Exact equality required. Immutable from creation. | Minimum: 0 Required | |
source LVMSourceRef | source pins the adopted LVM logical volume being recovered by name and stable VG/LV UUIDs; its preserveOriginal is the recovery preserve policy. Immutable from creation. | Required | |
newVolumeUID string | newVolumeUID is the destination lifecycle UID; when set it MUST equal this PillarVolumeState’s metadata.uid. It is unknowable at create (the API server assigns metadata.uid), so it may be empty at creation and is write-once once populated. The transfer requires it to be set. | MinLength: 1 Optional | |
newGeneration integer | newGeneration is the generation the agent writes into the transferred fence mark for the new lifecycle. Immutable from creation. | Minimum: 0 Required | |
authorization integer array | authorization is the serialized RecoveryAuthorization protobuf (the operator-signed grant). It may be empty at creation — the operator can only sign once metadata.uid exists. It is not write-once at the schema level (CEL does not compare these raw bytes); it may be re-supplied on retry, but only bytes whose canonical digest equals authorizationDigest are ever used, and the agent verifies the signature. When absent at transfer time the authorization must be supplied out-of-band, with authorizationDigest pinning its identity. | Optional | |
authorizationDigest string | authorizationDigest is the lowercase hex SHA-256 of the RecoveryAuthorization’s deterministic protobuf encoding with its signature field cleared. It pins the exact grant this record may consume; the fence mark stores the same digest after transfer. It may be empty at creation and is write-once once populated. The transfer requires it to be set. | MaxLength: 64 MinLength: 64 Pattern: ^[0-9a-f]\{64\}$ Optional |
ZFSBackendConfig
ZFSBackendConfig holds ZFS-specific pool and dataset settings.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
volumeType ZFSVolumeType | volumeType selects the ZFS volume kind. | zvol | Enum: [zvol dataset] Optional |
pool string | pool is the ZFS pool name (e.g. “hot-data”). | MinLength: 1 Required | |
parentDataset string | parentDataset is the ZFS dataset path under which pillar-csi will create per-volume zvols or datasets (e.g. “k8s”). It must equal the parentDataset of the agent’s backend configuration for this pool. | Optional | |
properties object (keys:string, values:string) | properties are arbitrary ZFS properties applied to every volume created in this pool (e.g. compression, volblocksize). | Optional |
ZFSBackendOverrides
ZFSBackendOverrides holds the per-volume-tunable subset of ZFSBackendConfig. Structural placement fields (pool, parentDataset, volumeType) are not part of this type and are rejected with their path by the shared document decoder.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
properties object (keys:string, values:string) | properties are arbitrary ZFS properties that override pool defaults (e.g. volblocksize, compression). Entries merge key-wise onto the PillarStore’s zfs.properties. | Optional |
ZFSVolumeType
Underlying type: string
ZFSVolumeType enumerates the ZFS volume kinds the driver can create.
Validation:
- Enum: [zvol dataset]
Appears in:
| Field | Description |
|---|---|
zvol | ZFSVolumeTypeZvol creates block-device zvols. |
dataset | ZFSVolumeTypeDataset creates filesystem ZFS datasets. |