Documentation ¶
Overview ¶
Package v1beta2 is the v1beta2 version of the API. +groupName=longhorn.io
Index ¶
- Constants
- Variables
- func GetAttacherPriorityLevel(t AttacherType) int
- func GetAttachmentTicketID(attacherType AttacherType, id string) string
- func GetNodeIdOfAttachmentTicket(attachmentID string, va *VolumeAttachment) string
- func IsAttachmentTicketSatisfied(attachmentID string, va *VolumeAttachment) bool
- func Resource(resource string) schema.GroupResource
- type AccessMode
- type AttacherType
- type AttachmentTicket
- type AttachmentTicketStatus
- type BackendStoreDriverType
- type BackingImage
- type BackingImageDataSource
- type BackingImageDataSourceList
- type BackingImageDataSourceSpec
- type BackingImageDataSourceStatus
- type BackingImageDataSourceType
- type BackingImageDiskFileSpec
- type BackingImageDiskFileStatus
- type BackingImageDownloadState
- type BackingImageFileInfo
- type BackingImageList
- type BackingImageManager
- type BackingImageManagerList
- type BackingImageManagerSpec
- type BackingImageManagerState
- type BackingImageManagerStatus
- type BackingImageSpec
- type BackingImageState
- type BackingImageStatus
- type Backup
- type BackupBackingImage
- type BackupBackingImageList
- type BackupBackingImageSpec
- type BackupBackingImageStatus
- type BackupCompressionMethod
- type BackupList
- type BackupMode
- type BackupSpec
- type BackupState
- type BackupStatus
- type BackupTarget
- type BackupTargetList
- type BackupTargetSpec
- type BackupTargetStatus
- type BackupVolume
- type BackupVolumeList
- type BackupVolumeSpec
- type BackupVolumeStatus
- type Condition
- type ConditionStatus
- type DataEngineType
- type DataLocality
- type DiskDriver
- type DiskSpec
- type DiskStatus
- type DiskType
- type Engine
- type EngineBackupStatus
- type EngineImage
- type EngineImageList
- type EngineImageSpec
- type EngineImageState
- type EngineImageStatus
- type EngineList
- type EngineSpec
- type EngineStatus
- type EngineVersionDetails
- type FreezeFilesystemForSnapshot
- type HashStatus
- type InstanceManager
- type InstanceManagerList
- type InstanceManagerSpec
- type InstanceManagerState
- type InstanceManagerStatus
- type InstanceManagerType
- type InstanceProcess
- type InstanceProcessSpec
- type InstanceProcessStatus
- type InstanceSpec
- type InstanceState
- type InstanceStatus
- type InstanceType
- type KubernetesStatus
- type Node
- type NodeList
- type NodeSpec
- type NodeStatus
- type Orphan
- type OrphanList
- type OrphanSpec
- type OrphanStatus
- type OrphanType
- type PurgeStatus
- type RebuildStatus
- type RecurringJob
- type RecurringJobList
- type RecurringJobSpec
- type RecurringJobStatus
- type RecurringJobType
- type Replica
- type ReplicaAutoBalance
- type ReplicaDiskSoftAntiAffinity
- type ReplicaList
- type ReplicaMode
- type ReplicaSoftAntiAffinity
- type ReplicaSpec
- type ReplicaStatus
- type ReplicaZoneSoftAntiAffinity
- type RestoreStatus
- type RestoreVolumeRecurringJobType
- type Setting
- type SettingList
- type SettingStatus
- type ShareManager
- type ShareManagerList
- type ShareManagerSpec
- type ShareManagerState
- type ShareManagerStatus
- type Snapshot
- type SnapshotCheckStatus
- type SnapshotCloneStatus
- type SnapshotDataIntegrity
- type SnapshotHashStatus
- type SnapshotInfo
- type SnapshotList
- type SnapshotSpec
- type SnapshotStatus
- type SupportBundle
- type SupportBundleList
- type SupportBundleSpec
- type SupportBundleState
- type SupportBundleStatus
- type SystemBackup
- type SystemBackupCreateVolumeBackupPolicy
- type SystemBackupList
- type SystemBackupSpec
- type SystemBackupState
- type SystemBackupStatus
- type SystemRestore
- type SystemRestoreList
- type SystemRestoreSpec
- type SystemRestoreState
- type SystemRestoreStatus
- type UnmapMarkSnapChainRemoved
- type Volume
- type VolumeAttachment
- type VolumeAttachmentList
- type VolumeAttachmentSpec
- type VolumeAttachmentStatus
- type VolumeCloneState
- type VolumeCloneStatus
- type VolumeDataSource
- type VolumeDataSourceType
- type VolumeFrontend
- type VolumeList
- type VolumeRecurringJob
- type VolumeRecurringJobInfo
- type VolumeRobustness
- type VolumeSpec
- type VolumeState
- type VolumeStatus
- type WorkloadStatus
Constants ¶
const ( BackingImageParameterName = "backingImage" BackingImageParameterDataSourceType = "backingImageDataSourceType" BackingImageParameterChecksum = "backingImageChecksum" BackingImageParameterDataSourceParameters = "backingImageDataSourceParameters" BackingImageParameterMinNumberOfCopies = "backingImageMinNumberOfCopies" BackingImageParameterNodeSelector = "backingImageNodeSelector" BackingImageParameterDiskSelector = "backingImageDiskSelector" )
const ( BackingImageStatePending = BackingImageState("pending") BackingImageStateStarting = BackingImageState("starting") BackingImageStateReadyForTransfer = BackingImageState("ready-for-transfer") BackingImageStateReady = BackingImageState("ready") BackingImageStateInProgress = BackingImageState("in-progress") BackingImageStateFailed = BackingImageState("failed") BackingImageStateFailedAndCleanUp = BackingImageState("failed-and-cleanup") BackingImageStateUnknown = BackingImageState("unknown") )
const ( DataSourceTypeDownloadParameterURL = "url" DataSourceTypeExportParameterExportType = "export-type" DataSourceTypeExportParameterVolumeName = "volume-name" )
const ( BackingImageDataSourceTypeDownload = BackingImageDataSourceType("download") BackingImageDataSourceTypeUpload = BackingImageDataSourceType("upload") BackingImageDataSourceTypeExportFromVolume = BackingImageDataSourceType("export-from-volume") BackingImageDataSourceTypeRestore = BackingImageDataSourceType("restore") BackingImageDataSourceTypeClone = BackingImageDataSourceType("clone") DataSourceTypeExportFromVolumeParameterVolumeName = "volume-name" DataSourceTypeExportFromVolumeParameterVolumeSize = "volume-size" DataSourceTypeExportFromVolumeParameterSnapshotName = "snapshot-name" DataSourceTypeExportFromVolumeParameterSenderAddress = "sender-address" DataSourceTypeExportFromVolumeParameterFileSyncHTTPClientTimeout = "file-sync-http-client-timeout" DataSourceTypeRestoreParameterBackupURL = "backup-url" DataSourceTypeRestoreParameterConcurrentLimit = "concurrent-limit" DataSourceTypeCloneParameterBackingImage = "backing-image" DataSourceTypeCloneParameterBackingImageUUID = "backing-image-uuid" DataSourceTypeCloneParameterEncryption = "encryption" DataSourceTypeCloneParameterSecret = "secret" DataSourceTypeCloneParameterSecretNamespace = "secret-namespace" )
const ( BackingImageManagerStateError = BackingImageManagerState("error") BackingImageManagerStateRunning = BackingImageManagerState("running") BackingImageManagerStateStopped = BackingImageManagerState("stopped") BackingImageManagerStateStarting = BackingImageManagerState("starting") BackingImageManagerStateUnknown = BackingImageManagerState("unknown") )
const ( // non-final state BackupStateNew = BackupState("") BackupStatePending = BackupState("Pending") BackupStateInProgress = BackupState("InProgress") // final state BackupStateCompleted = BackupState("Completed") BackupStateError = BackupState("Error") BackupStateUnknown = BackupState("Unknown") )
const ( BackupCompressionMethodNone = BackupCompressionMethod("none") BackupCompressionMethodLz4 = BackupCompressionMethod("lz4") BackupCompressionMethodGzip = BackupCompressionMethod("gzip") )
const ( BackupModeFull = BackupMode("full") BackupModeIncremental = BackupMode("incremental") BackupModeIncrementalNone = BackupMode("") )
const ()
const ( ReplicaModeRW = ReplicaMode("RW") ReplicaModeWO = ReplicaMode("WO") ReplicaModeERR = ReplicaMode("ERR") )
const ( EngineImageStateDeploying = EngineImageState("deploying") EngineImageStateDeployed = EngineImageState("deployed") // EngineImageStateIncompatible is deprecated from 1.6.0. It has been replaced with `incompatible` of EngineImageStatus EngineImageStateIncompatible = EngineImageState("incompatible") EngineImageStateError = EngineImageState("error") )
const ( EngineImageConditionTypeReady = "ready" EngineImageConditionTypeReadyReasonDaemonSet = "daemonSet" EngineImageConditionTypeReadyReasonBinary = "binary" )
const ( InstanceTypeEngine = InstanceType("engine") InstanceTypeReplica = InstanceType("replica") InstanceTypeNone = InstanceType("") )
const ( InstanceManagerStateError = InstanceManagerState("error") InstanceManagerStateRunning = InstanceManagerState("running") InstanceManagerStateStopped = InstanceManagerState("stopped") InstanceManagerStateStarting = InstanceManagerState("starting") InstanceManagerStateUnknown = InstanceManagerState("unknown") )
const ( InstanceManagerTypeAllInOne = InstanceManagerType("aio") // Deprecate InstanceManagerTypeEngine = InstanceManagerType("engine") InstanceManagerTypeReplica = InstanceManagerType("replica") )
const ( InstanceStateRunning = InstanceState("running") InstanceStateStopped = InstanceState("stopped") InstanceStateError = InstanceState("error") InstanceStateStarting = InstanceState("starting") InstanceStateStopping = InstanceState("stopping") InstanceStateUnknown = InstanceState("unknown") )
const ( NodeConditionTypeReady = "Ready" NodeConditionTypeMountPropagation = "MountPropagation" NodeConditionTypeMultipathd = "Multipathd" NodeConditionTypeKernelModulesLoaded = "KernelModulesLoaded" NodeConditionTypeRequiredPackages = "RequiredPackages" NodeConditionTypeNFSClientInstalled = "NFSClientInstalled" NodeConditionTypeSchedulable = "Schedulable" )
const ( NodeConditionReasonManagerPodDown = "ManagerPodDown" NodeConditionReasonManagerPodMissing = "ManagerPodMissing" NodeConditionReasonKubernetesNodeGone = "KubernetesNodeGone" NodeConditionReasonKubernetesNodeNotReady = "KubernetesNodeNotReady" NodeConditionReasonKubernetesNodePressure = "KubernetesNodePressure" NodeConditionReasonUnknownNodeConditionTrue = "UnknownNodeConditionTrue" NodeConditionReasonNoMountPropagationSupport = "NoMountPropagationSupport" NodeConditionReasonMultipathdIsRunning = "MultipathdIsRunning" NodeConditionReasonUnknownOS = "UnknownOS" NodeConditionReasonNamespaceExecutorErr = "NamespaceExecutorErr" NodeConditionReasonKernelModulesNotLoaded = "KernelModulesNotLoaded" NodeConditionReasonPackagesNotInstalled = "PackagesNotInstalled" NodeConditionReasonCheckKernelConfigFailed = "CheckKernelConfigFailed" NodeConditionReasonNFSClientIsNotFound = "NFSClientIsNotFound" NodeConditionReasonKubernetesNodeCordoned = "KubernetesNodeCordoned" )
const ( DiskConditionTypeSchedulable = "Schedulable" DiskConditionTypeReady = "Ready" DiskConditionTypeError = "Error" )
const ( DiskConditionReasonDiskPressure = "DiskPressure" DiskConditionReasonDiskFilesystemChanged = "DiskFilesystemChanged" DiskConditionReasonNoDiskInfo = "NoDiskInfo" DiskConditionReasonDiskNotReady = "DiskNotReady" DiskConditionReasonDiskServiceUnreachable = "DiskServiceUnreachable" )
const ( ErrorReplicaScheduleInsufficientStorage = "insufficient storage" ErrorReplicaScheduleDiskNotFound = "disk not found" ErrorReplicaScheduleSchedulingSettingsRetrieveFailed = "failed to retrieve scheduling settings failed to retrieve" ErrorReplicaScheduleTagsNotFulfilled = "tags not fulfilled" ErrorReplicaScheduleNodeNotFound = "node not found" ErrorReplicaScheduleEngineImageNotReady = "none of the node candidates contains a ready engine image" ErrorReplicaScheduleHardNodeAffinityNotSatisfied = "hard affinity cannot be satisfied" ErrorReplicaScheduleSchedulingFailed = "replica scheduling failed" ErrorReplicaSchedulePrecheckNewReplicaFailed = "precheck new replica failed" )
const ( // DiskTypeFilesystem is the disk type for storing v1 replica directories DiskTypeFilesystem = DiskType("filesystem") // DiskTypeBlock is the disk type for storing v2 replica logical volumes DiskTypeBlock = DiskType("block") )
const ( DiskDriverNone = DiskDriver("") DiskDriverAuto = DiskDriver("auto") DiskDriverAio = DiskDriver("aio") )
const ( OrphanConditionTypeError = "Error" OrphanConditionTypeDataCleanable = "DataCleanable" OrphanConditionTypeDataCleanableReasonNodeEvicted = "NodeEvicted" OrphanConditionTypeDataCleanableReasonDiskInvalid = "DiskInvalid" OrphanConditionTypeDataCleanableReasonDiskEvicted = "DiskEvicted" OrphanConditionTypeDataCleanableReasonDiskChanged = "DiskChanged" )
const ( OrphanDataName = "DataName" OrphanDiskName = "DiskName" OrphanDiskUUID = "DiskUUID" OrphanDiskPath = "DiskPath" OrphanDiskType = "DiskType" )
const ( RecurringJobTypeSnapshot = RecurringJobType("snapshot") // periodically create snapshots except for old snapshots cleanup failed before creating new snapshots RecurringJobTypeSnapshotForceCreate = RecurringJobType("snapshot-force-create") // periodically create snapshots even if old snapshots cleanup failed RecurringJobTypeSnapshotCleanup = RecurringJobType("snapshot-cleanup") // periodically purge removable snapshots and system snapshots RecurringJobTypeSnapshotDelete = RecurringJobType("snapshot-delete") // periodically remove and purge all kinds of snapshots that exceed the retention count RecurringJobTypeBackup = RecurringJobType("backup") // periodically create snapshots then do backups RecurringJobTypeBackupForceCreate = RecurringJobType("backup-force-create") // periodically create snapshots then do backups even if old snapshots cleanup failed RecurringJobTypeFilesystemTrim = RecurringJobType("filesystem-trim") // periodically trim filesystem to reclaim disk space RecurringJobGroupDefault = "default" )
const ( // error messages captured from the gRPC error code ReplicaRebuildFailedCanceledErrorMSG = "rpc error: code = Canceled" ReplicaRebuildFailedDeadlineExceededErrorMSG = "rpc error: code = DeadlineExceeded" )
const ( ReplicaConditionTypeRebuildFailed = "RebuildFailed" ReplicaConditionTypeWaitForBackingImage = "WaitForBackingImage" ReplicaConditionReasonWaitForBackingImageFailed = "GetBackingImageFailed" ReplicaConditionReasonWaitForBackingImageWaiting = "Waiting" ReplicaConditionReasonRebuildFailedDisconnection = "Disconnection" ReplicaConditionReasonRebuildFailedGeneral = "General" )
const ()
const ( SnapshotHashStatusNew = SnapshotHashStatus("") SnapshotHashStatusInProgress = SnapshotHashStatus("in_progress") SnapshotHashStatusCompleted = SnapshotHashStatus("complete") SnapshotHashStatusError = SnapshotHashStatus("error") )
const ( SupportBundleConditionTypeError = "Error" SupportBundleConditionTypeManager = "Manager" SupportBundleMsgCreateManagerFmt = "Created deployment %v" SupportBundleMsgStartManagerFmt = "Started support bundle manager for %v" SupportBundleMsgGeneratedFmt = "Generated support bundle %v in %v" SupportBundleMsgInitFmt = "Initialized %v" SupportBundleStatePurging = SupportBundleState("Purging") SupportBundleStateDeleting = SupportBundleState("Deleting") SupportBundleStateError = SupportBundleState("Error") SupportBundleStateGenerating = SupportBundleState("Generating") SupportBundleStateNone = SupportBundleState("") SupportBundleStateReady = SupportBundleState("ReadyForDownload") SupportBundleStateReplaced = SupportBundleState("Replaced") SupportBundleStateStarted = SupportBundleState("Started") SupportBundleStateUnknown = SupportBundleState("Unknown") )
const ( SystemBackupStateDeleting = SystemBackupState("Deleting") SystemBackupStateError = SystemBackupState("Error") SystemBackupStateGenerating = SystemBackupState("Generating") SystemBackupStateNone = SystemBackupState("") SystemBackupStateReady = SystemBackupState("Ready") SystemBackupStateSyncing = SystemBackupState("Syncing") SystemBackupStateUploading = SystemBackupState("Uploading") SystemBackupStateVolumeBackup = SystemBackupState("CreatingVolumeBackups") SystemBackupStateBackingImageBackup = SystemBackupState("CreatingBackingImageBackups") SystemBackupConditionTypeError = "Error" SystemBackupConditionReasonDelete = "Delete" SystemBackupConditionReasonGenerate = "Generate" SystemBackupConditionReasonUpload = "Upload" SystemBackupConditionReasonSync = "Sync" )
const ( SystemBackupCreateVolumeBackupPolicyAlways = SystemBackupCreateVolumeBackupPolicy("always") SystemBackupCreateVolumeBackupPolicyDisabled = SystemBackupCreateVolumeBackupPolicy("disabled") SystemBackupCreateVolumeBackupPolicyIfNotPresent = SystemBackupCreateVolumeBackupPolicy("if-not-present") )
const ( SystemRestoreStateCompleted = SystemRestoreState("Completed") SystemRestoreStateDeleting = SystemRestoreState("Deleting") SystemRestoreStateDownloading = SystemRestoreState("Downloading") SystemRestoreStateError = SystemRestoreState("Error") SystemRestoreStateInitializing = SystemRestoreState("Initializing") SystemRestoreStateInProgress = SystemRestoreState("InProgress") SystemRestoreStateNone = SystemRestoreState("") SystemRestoreStatePending = SystemRestoreState("Pending") SystemRestoreStateRestoring = SystemRestoreState("Restoring") SystemRestoreStateUnknown = SystemRestoreState("Unknown") SystemRestoreStateUnpacking = SystemRestoreState("Unpacking") SystemRestoreConditionTypeError = "Error" SystemRestoreConditionReasonRestore = "Restore" SystemRestoreConditionReasonUnpack = "Unpack" SystemRestoreConditionMessageFailed = "failed to restore Longhorn system" SystemRestoreConditionMessageUnpackFailed = "failed to unpack system backup from file" )
const ( VolumeStateCreating = VolumeState("creating") VolumeStateAttached = VolumeState("attached") VolumeStateDetached = VolumeState("detached") VolumeStateAttaching = VolumeState("attaching") VolumeStateDetaching = VolumeState("detaching") VolumeStateDeleting = VolumeState("deleting") )
const ( VolumeRobustnessHealthy = VolumeRobustness("healthy") // during attached VolumeRobustnessDegraded = VolumeRobustness("degraded") // during attached VolumeRobustnessFaulted = VolumeRobustness("faulted") // during detached VolumeRobustnessUnknown = VolumeRobustness("unknown") )
const ( VolumeFrontendBlockDev = VolumeFrontend("blockdev") VolumeFrontendISCSI = VolumeFrontend("iscsi") VolumeFrontendNvmf = VolumeFrontend("nvmf") VolumeFrontendEmpty = VolumeFrontend("") )
const ( VolumeDataSourceTypeBackup = VolumeDataSourceType("backup") // Planing to move FromBackup field into DataSource field VolumeDataSourceTypeSnapshot = VolumeDataSourceType("snapshot") VolumeDataSourceTypeVolume = VolumeDataSourceType("volume") )
const ( DataLocalityDisabled = DataLocality("disabled") DataLocalityBestEffort = DataLocality("best-effort") DataLocalityStrictLocal = DataLocality("strict-local") )
const ( AccessModeReadWriteOnce = AccessMode("rwo") AccessModeReadWriteMany = AccessMode("rwx") )
const ( ReplicaAutoBalanceIgnored = ReplicaAutoBalance("ignored") ReplicaAutoBalanceDisabled = ReplicaAutoBalance("disabled") ReplicaAutoBalanceLeastEffort = ReplicaAutoBalance("least-effort") ReplicaAutoBalanceBestEffort = ReplicaAutoBalance("best-effort") )
const ( UnmapMarkSnapChainRemovedIgnored = UnmapMarkSnapChainRemoved("ignored") UnmapMarkSnapChainRemovedDisabled = UnmapMarkSnapChainRemoved("disabled") UnmapMarkSnapChainRemovedEnabled = UnmapMarkSnapChainRemoved("enabled") )
const ( VolumeCloneStateEmpty = VolumeCloneState("") VolumeCloneStateInitiated = VolumeCloneState("initiated") VolumeCloneStateCompleted = VolumeCloneState("completed") VolumeCloneStateFailed = VolumeCloneState("failed") )
const ( VolumeConditionTypeScheduled = "Scheduled" VolumeConditionTypeRestore = "Restore" VolumeConditionTypeTooManySnapshots = "TooManySnapshots" VolumeConditionTypeWaitForBackingImage = "WaitForBackingImage" )
const ( VolumeConditionReasonReplicaSchedulingFailure = "ReplicaSchedulingFailure" VolumeConditionReasonLocalReplicaSchedulingFailure = "LocalReplicaSchedulingFailure" VolumeConditionReasonRestoreInProgress = "RestoreInProgress" VolumeConditionReasonRestoreFailure = "RestoreFailure" VolumeConditionReasonTooManySnapshots = "TooManySnapshots" VolumeConditionReasonWaitForBackingImageFailed = "GetBackingImageFailed" VolumeConditionReasonWaitForBackingImageWaiting = "Waiting" )
const ( SnapshotDataIntegrityIgnored = SnapshotDataIntegrity("ignored") SnapshotDataIntegrityDisabled = SnapshotDataIntegrity("disabled") SnapshotDataIntegrityEnabled = SnapshotDataIntegrity("enabled") SnapshotDataIntegrityFastCheck = SnapshotDataIntegrity("fast-check") )
const ( RestoreVolumeRecurringJobDefault = RestoreVolumeRecurringJobType("ignored") RestoreVolumeRecurringJobEnabled = RestoreVolumeRecurringJobType("enabled") RestoreVolumeRecurringJobDisabled = RestoreVolumeRecurringJobType("disabled") )
const ( ReplicaSoftAntiAffinityDefault = ReplicaSoftAntiAffinity("ignored") ReplicaSoftAntiAffinityEnabled = ReplicaSoftAntiAffinity("enabled") ReplicaSoftAntiAffinityDisabled = ReplicaSoftAntiAffinity("disabled") )
const ( ReplicaZoneSoftAntiAffinityDefault = ReplicaZoneSoftAntiAffinity("ignored") ReplicaZoneSoftAntiAffinityEnabled = ReplicaZoneSoftAntiAffinity("enabled") ReplicaZoneSoftAntiAffinityDisabled = ReplicaZoneSoftAntiAffinity("disabled") )
const ( ReplicaDiskSoftAntiAffinityDefault = ReplicaDiskSoftAntiAffinity("ignored") ReplicaDiskSoftAntiAffinityEnabled = ReplicaDiskSoftAntiAffinity("enabled") ReplicaDiskSoftAntiAffinityDisabled = ReplicaDiskSoftAntiAffinity("disabled") )
const ( FreezeFilesystemForSnapshotDefault = FreezeFilesystemForSnapshot("ignored") FreezeFilesystemForSnapshotEnabled = FreezeFilesystemForSnapshot("enabled") FreezeFilesystemForSnapshotDisabled = FreezeFilesystemForSnapshot("disabled") )
const ( BackendStoreDriverTypeV1 = BackendStoreDriverType("v1") BackendStoreDriverTypeV2 = BackendStoreDriverType("v2") BackendStoreDriverTypeAll = BackendStoreDriverType("all") )
const ( DataEngineTypeV1 = DataEngineType("v1") DataEngineTypeV2 = DataEngineType("v2") DataEngineTypeAll = DataEngineType("all") )
const ( AttacherTypeCSIAttacher = AttacherType("csi-attacher") AttacherTypeLonghornAPI = AttacherType("longhorn-api") AttacherTypeSnapshotController = AttacherType("snapshot-controller") AttacherTypeBackupController = AttacherType("backup-controller") AttacherTypeVolumeCloneController = AttacherType("volume-clone-controller") AttacherTypeSalvageController = AttacherType("salvage-controller") AttacherTypeVolumeRestoreController = AttacherType("volume-restore-controller") AttacherTypeVolumeEvictionController = AttacherType("volume-eviction-controller") AttacherTypeVolumeExpansionController = AttacherType("volume-expansion-controller") AttacherTypeBackingImageDataSourceController = AttacherType("bim-ds-controller") AttacherTypeVolumeRebuildingController = AttacherType("volume-rebuilding-controller") )
const ( AttacherPriorityLevelVolumeRestoreController = 2000 AttacherPriorityLevelVolumeExpansionController = 2000 AttacherPriorityLevelLonghornAPI = 1000 AttacherPriorityLevelCSIAttacher = 900 AttacherPriorityLevelSalvageController = 900 AttacherPriorityLevelSnapshotController = 800 AttacherPriorityLevelBackupController = 800 AttacherPriorityLevelVolumeCloneController = 800 AttacherPriorityLevelVolumeEvictionController = 800 AttacherPriorityLevelBackingImageDataSourceController = 800 AttachedPriorityLevelVolumeRebuildingController = 800 )
const ( TrueValue = "true" FalseValue = "false" AnyValue = "any" AttachmentParameterDisableFrontend = "disableFrontend" AttachmentParameterLastAttachedBy = "lastAttachedBy" )
const ( AttachmentStatusConditionTypeSatisfied = "Satisfied" AttachmentStatusConditionReasonAttachedWithIncompatibleParameters = "AttachedWithIncompatibleParameters" )
const (
InstanceConditionReasonInstanceCreationFailure = "InstanceCreationFailure"
)
const (
InstanceConditionTypeInstanceCreation = "InstanceCreation"
)
const (
OrphanTypeReplica = OrphanType("replica")
)
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: longhorn.GroupName, Version: "v1beta2"}
Functions ¶
func GetAttacherPriorityLevel ¶ added in v1.5.0
func GetAttacherPriorityLevel(t AttacherType) int
func GetAttachmentTicketID ¶ added in v1.5.0
func GetAttachmentTicketID(attacherType AttacherType, id string) string
func GetNodeIdOfAttachmentTicket ¶ added in v1.5.4
func GetNodeIdOfAttachmentTicket(attachmentID string, va *VolumeAttachment) string
func IsAttachmentTicketSatisfied ¶ added in v1.5.0
func IsAttachmentTicketSatisfied(attachmentID string, va *VolumeAttachment) bool
func Resource ¶
func Resource(resource string) schema.GroupResource
Types ¶
type AttacherType ¶ added in v1.5.0
type AttacherType string
type AttachmentTicket ¶ added in v1.5.0
type AttachmentTicket struct { // The unique ID of this attachment. Used to differentiate different attachments of the same volume. // +optional ID string `json:"id"` // +optional Type AttacherType `json:"type"` // The node that this attachment is requesting // +optional NodeID string `json:"nodeID"` // Optional additional parameter for this attachment // +optional Parameters map[string]string `json:"parameters"` // A sequence number representing a specific generation of the desired state. // Populated by the system. Read-only. // +optional Generation int64 `json:"generation"` }
func (*AttachmentTicket) DeepCopy ¶ added in v1.5.0
func (in *AttachmentTicket) DeepCopy() *AttachmentTicket
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttachmentTicket.
func (*AttachmentTicket) DeepCopyInto ¶ added in v1.5.0
func (in *AttachmentTicket) DeepCopyInto(out *AttachmentTicket)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AttachmentTicketStatus ¶ added in v1.5.0
type AttachmentTicketStatus struct { // The unique ID of this attachment. Used to differentiate different attachments of the same volume. // +optional ID string `json:"id"` // Indicate whether this attachment ticket has been satisfied Satisfied bool `json:"satisfied"` // Record any error when trying to fulfill this attachment // +nullable Conditions []Condition `json:"conditions"` // A sequence number representing a specific generation of the desired state. // Populated by the system. Read-only. // +optional Generation int64 `json:"generation"` }
func (*AttachmentTicketStatus) DeepCopy ¶ added in v1.5.0
func (in *AttachmentTicketStatus) DeepCopy() *AttachmentTicketStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttachmentTicketStatus.
func (*AttachmentTicketStatus) DeepCopyInto ¶ added in v1.5.0
func (in *AttachmentTicketStatus) DeepCopyInto(out *AttachmentTicketStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackingImage ¶
type BackingImage struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BackingImageSpec `json:"spec,omitempty"` Status BackingImageStatus `json:"status,omitempty"` }
BackingImage is where Longhorn stores backing image object.
func (*BackingImage) DeepCopy ¶
func (in *BackingImage) DeepCopy() *BackingImage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackingImage.
func (*BackingImage) DeepCopyInto ¶
func (in *BackingImage) DeepCopyInto(out *BackingImage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackingImage) DeepCopyObject ¶
func (in *BackingImage) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*BackingImage) Hub ¶
func (bi *BackingImage) Hub()
Hub defines the current version (v1beta2) is the storage version so mark this as Hub
type BackingImageDataSource ¶
type BackingImageDataSource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BackingImageDataSourceSpec `json:"spec,omitempty"` Status BackingImageDataSourceStatus `json:"status,omitempty"` }
BackingImageDataSource is where Longhorn stores backing image data source object.
func (*BackingImageDataSource) DeepCopy ¶
func (in *BackingImageDataSource) DeepCopy() *BackingImageDataSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackingImageDataSource.
func (*BackingImageDataSource) DeepCopyInto ¶
func (in *BackingImageDataSource) DeepCopyInto(out *BackingImageDataSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackingImageDataSource) DeepCopyObject ¶
func (in *BackingImageDataSource) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackingImageDataSourceList ¶
type BackingImageDataSourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []BackingImageDataSource `json:"items"` }
BackingImageDataSourceList is a list of BackingImageDataSources.
func (*BackingImageDataSourceList) DeepCopy ¶
func (in *BackingImageDataSourceList) DeepCopy() *BackingImageDataSourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackingImageDataSourceList.
func (*BackingImageDataSourceList) DeepCopyInto ¶
func (in *BackingImageDataSourceList) DeepCopyInto(out *BackingImageDataSourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackingImageDataSourceList) DeepCopyObject ¶
func (in *BackingImageDataSourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackingImageDataSourceSpec ¶
type BackingImageDataSourceSpec struct { // +optional NodeID string `json:"nodeID"` // +optional UUID string `json:"uuid"` // +optional DiskUUID string `json:"diskUUID"` // +optional DiskPath string `json:"diskPath"` // +optional Checksum string `json:"checksum"` // +optional SourceType BackingImageDataSourceType `json:"sourceType"` // +optional Parameters map[string]string `json:"parameters"` // +optional FileTransferred bool `json:"fileTransferred"` }
BackingImageDataSourceSpec defines the desired state of the Longhorn backing image data source
func (*BackingImageDataSourceSpec) DeepCopy ¶
func (in *BackingImageDataSourceSpec) DeepCopy() *BackingImageDataSourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackingImageDataSourceSpec.
func (*BackingImageDataSourceSpec) DeepCopyInto ¶
func (in *BackingImageDataSourceSpec) DeepCopyInto(out *BackingImageDataSourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackingImageDataSourceStatus ¶
type BackingImageDataSourceStatus struct { // +optional OwnerID string `json:"ownerID"` // +optional // +nullable RunningParameters map[string]string `json:"runningParameters"` // +optional CurrentState BackingImageState `json:"currentState"` // +optional IP string `json:"ip"` // +optional StorageIP string `json:"storageIP"` // +optional Size int64 `json:"size"` // +optional Progress int `json:"progress"` // +optional Checksum string `json:"checksum"` // +optional Message string `json:"message"` }
BackingImageDataSourceStatus defines the observed state of the Longhorn backing image data source
func (*BackingImageDataSourceStatus) DeepCopy ¶
func (in *BackingImageDataSourceStatus) DeepCopy() *BackingImageDataSourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackingImageDataSourceStatus.
func (*BackingImageDataSourceStatus) DeepCopyInto ¶
func (in *BackingImageDataSourceStatus) DeepCopyInto(out *BackingImageDataSourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackingImageDataSourceType ¶
type BackingImageDataSourceType string
+kubebuilder:validation:Enum=download;upload;export-from-volume;restore;clone
type BackingImageDiskFileSpec ¶ added in v1.7.0
type BackingImageDiskFileSpec struct { // +optional EvictionRequested bool `json:"evictionRequested"` }
func (*BackingImageDiskFileSpec) DeepCopy ¶ added in v1.7.0
func (in *BackingImageDiskFileSpec) DeepCopy() *BackingImageDiskFileSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackingImageDiskFileSpec.
func (*BackingImageDiskFileSpec) DeepCopyInto ¶ added in v1.7.0
func (in *BackingImageDiskFileSpec) DeepCopyInto(out *BackingImageDiskFileSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackingImageDiskFileStatus ¶
type BackingImageDiskFileStatus struct { // +optional State BackingImageState `json:"state"` // +optional Progress int `json:"progress"` // +optional Message string `json:"message"` // +optional LastStateTransitionTime string `json:"lastStateTransitionTime"` }
func (*BackingImageDiskFileStatus) DeepCopy ¶
func (in *BackingImageDiskFileStatus) DeepCopy() *BackingImageDiskFileStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackingImageDiskFileStatus.
func (*BackingImageDiskFileStatus) DeepCopyInto ¶
func (in *BackingImageDiskFileStatus) DeepCopyInto(out *BackingImageDiskFileStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackingImageDownloadState ¶
type BackingImageDownloadState string
BackingImageDownloadState is replaced by BackingImageState.
type BackingImageFileInfo ¶
type BackingImageFileInfo struct { // +optional Name string `json:"name"` // +optional UUID string `json:"uuid"` // +optional Size int64 `json:"size"` // +optional VirtualSize int64 `json:"virtualSize"` // +optional State BackingImageState `json:"state"` // +optional CurrentChecksum string `json:"currentChecksum"` // +optional Message string `json:"message"` // +optional SendingReference int `json:"sendingReference"` // +optional SenderManagerAddress string `json:"senderManagerAddress"` // +optional Progress int `json:"progress"` }
func (*BackingImageFileInfo) DeepCopy ¶
func (in *BackingImageFileInfo) DeepCopy() *BackingImageFileInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackingImageFileInfo.
func (*BackingImageFileInfo) DeepCopyInto ¶
func (in *BackingImageFileInfo) DeepCopyInto(out *BackingImageFileInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackingImageList ¶
type BackingImageList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []BackingImage `json:"items"` }
BackingImageList is a list of BackingImages.
func (*BackingImageList) DeepCopy ¶
func (in *BackingImageList) DeepCopy() *BackingImageList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackingImageList.
func (*BackingImageList) DeepCopyInto ¶
func (in *BackingImageList) DeepCopyInto(out *BackingImageList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackingImageList) DeepCopyObject ¶
func (in *BackingImageList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackingImageManager ¶
type BackingImageManager struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BackingImageManagerSpec `json:"spec,omitempty"` Status BackingImageManagerStatus `json:"status,omitempty"` }
BackingImageManager is where Longhorn stores backing image manager object.
func (*BackingImageManager) DeepCopy ¶
func (in *BackingImageManager) DeepCopy() *BackingImageManager
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackingImageManager.
func (*BackingImageManager) DeepCopyInto ¶
func (in *BackingImageManager) DeepCopyInto(out *BackingImageManager)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackingImageManager) DeepCopyObject ¶
func (in *BackingImageManager) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackingImageManagerList ¶
type BackingImageManagerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []BackingImageManager `json:"items"` }
BackingImageManagerList is a list of BackingImageManagers.
func (*BackingImageManagerList) DeepCopy ¶
func (in *BackingImageManagerList) DeepCopy() *BackingImageManagerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackingImageManagerList.
func (*BackingImageManagerList) DeepCopyInto ¶
func (in *BackingImageManagerList) DeepCopyInto(out *BackingImageManagerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackingImageManagerList) DeepCopyObject ¶
func (in *BackingImageManagerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackingImageManagerSpec ¶
type BackingImageManagerSpec struct { // +optional Image string `json:"image"` // +optional NodeID string `json:"nodeID"` // +optional DiskUUID string `json:"diskUUID"` // +optional DiskPath string `json:"diskPath"` // +optional BackingImages map[string]string `json:"backingImages"` }
BackingImageManagerSpec defines the desired state of the Longhorn backing image manager
func (*BackingImageManagerSpec) DeepCopy ¶
func (in *BackingImageManagerSpec) DeepCopy() *BackingImageManagerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackingImageManagerSpec.
func (*BackingImageManagerSpec) DeepCopyInto ¶
func (in *BackingImageManagerSpec) DeepCopyInto(out *BackingImageManagerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackingImageManagerState ¶
type BackingImageManagerState string
type BackingImageManagerStatus ¶
type BackingImageManagerStatus struct { // +optional OwnerID string `json:"ownerID"` // +optional CurrentState BackingImageManagerState `json:"currentState"` // +optional // +nullable BackingImageFileMap map[string]BackingImageFileInfo `json:"backingImageFileMap"` // +optional IP string `json:"ip"` // +optional StorageIP string `json:"storageIP"` // +optional APIMinVersion int `json:"apiMinVersion"` // +optional APIVersion int `json:"apiVersion"` }
BackingImageManagerStatus defines the observed state of the Longhorn backing image manager
func (*BackingImageManagerStatus) DeepCopy ¶
func (in *BackingImageManagerStatus) DeepCopy() *BackingImageManagerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackingImageManagerStatus.
func (*BackingImageManagerStatus) DeepCopyInto ¶
func (in *BackingImageManagerStatus) DeepCopyInto(out *BackingImageManagerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackingImageSpec ¶
type BackingImageSpec struct { // Deprecated. We are now using DiskFileSpecMap to assign different spec to the file on different disks. // +optional Disks map[string]string `json:"disks"` // +optional DiskFileSpecMap map[string]*BackingImageDiskFileSpec `json:"diskFileSpecMap"` // +optional Checksum string `json:"checksum"` // +optional SourceType BackingImageDataSourceType `json:"sourceType"` // +optional SourceParameters map[string]string `json:"sourceParameters"` // +optional MinNumberOfCopies int `json:"minNumberOfCopies"` // +optional DiskSelector []string `json:"diskSelector"` // +optional NodeSelector []string `json:"nodeSelector"` // +optional Secret string `json:"secret"` // +optional SecretNamespace string `json:"secretNamespace"` }
BackingImageSpec defines the desired state of the Longhorn backing image
func (*BackingImageSpec) DeepCopy ¶
func (in *BackingImageSpec) DeepCopy() *BackingImageSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackingImageSpec.
func (*BackingImageSpec) DeepCopyInto ¶
func (in *BackingImageSpec) DeepCopyInto(out *BackingImageSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackingImageState ¶
type BackingImageState string
type BackingImageStatus ¶
type BackingImageStatus struct { // +optional OwnerID string `json:"ownerID"` // +optional UUID string `json:"uuid"` // +optional Size int64 `json:"size"` // Virtual size of image, which may be larger than physical size. Will be zero until known (e.g. while a backing image is uploading) // +optional VirtualSize int64 `json:"virtualSize"` // +optional Checksum string `json:"checksum"` // +optional // +nullable DiskFileStatusMap map[string]*BackingImageDiskFileStatus `json:"diskFileStatusMap"` // +optional // +nullable DiskLastRefAtMap map[string]string `json:"diskLastRefAtMap"` }
BackingImageStatus defines the observed state of the Longhorn backing image status
func (*BackingImageStatus) DeepCopy ¶
func (in *BackingImageStatus) DeepCopy() *BackingImageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackingImageStatus.
func (*BackingImageStatus) DeepCopyInto ¶
func (in *BackingImageStatus) DeepCopyInto(out *BackingImageStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Backup ¶
type Backup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BackupSpec `json:"spec,omitempty"` Status BackupStatus `json:"status,omitempty"` }
Backup is where Longhorn stores backup object.
func (*Backup) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backup.
func (*Backup) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Backup) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackupBackingImage ¶ added in v1.6.0
type BackupBackingImage struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BackupBackingImageSpec `json:"spec,omitempty"` Status BackupBackingImageStatus `json:"status,omitempty"` }
BackupBackingImage is where Longhorn stores backing image backup object.
func (*BackupBackingImage) DeepCopy ¶ added in v1.6.0
func (in *BackupBackingImage) DeepCopy() *BackupBackingImage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupBackingImage.
func (*BackupBackingImage) DeepCopyInto ¶ added in v1.6.0
func (in *BackupBackingImage) DeepCopyInto(out *BackupBackingImage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackupBackingImage) DeepCopyObject ¶ added in v1.6.0
func (in *BackupBackingImage) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackupBackingImageList ¶ added in v1.6.0
type BackupBackingImageList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []BackupBackingImage `json:"items"` }
BackupBackingImageList is a list of backing image backup.
func (*BackupBackingImageList) DeepCopy ¶ added in v1.6.0
func (in *BackupBackingImageList) DeepCopy() *BackupBackingImageList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupBackingImageList.
func (*BackupBackingImageList) DeepCopyInto ¶ added in v1.6.0
func (in *BackupBackingImageList) DeepCopyInto(out *BackupBackingImageList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackupBackingImageList) DeepCopyObject ¶ added in v1.6.0
func (in *BackupBackingImageList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackupBackingImageSpec ¶ added in v1.6.0
type BackupBackingImageSpec struct { // The time to request run sync the remote backing image backup. // +optional // +nullable SyncRequestedAt metav1.Time `json:"syncRequestedAt"` // Is this CR created by user through API or UI. // Required UserCreated bool `json:"userCreated"` // The labels of backing image backup. // +optional Labels map[string]string `json:"labels"` }
BackupBackingImageSpec defines the desired state of the Longhorn backing image backup
func (*BackupBackingImageSpec) DeepCopy ¶ added in v1.6.0
func (in *BackupBackingImageSpec) DeepCopy() *BackupBackingImageSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupBackingImageSpec.
func (*BackupBackingImageSpec) DeepCopyInto ¶ added in v1.6.0
func (in *BackupBackingImageSpec) DeepCopyInto(out *BackupBackingImageSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupBackingImageStatus ¶ added in v1.6.0
type BackupBackingImageStatus struct { // The backing image name. // +optional BackingImage string `json:"backingImage"` // The node ID on which the controller is responsible to reconcile this CR. // +optional OwnerID string `json:"ownerID"` // The checksum of the backing image. // +optional Checksum string `json:"checksum"` // The backing image backup URL. // +optional URL string `json:"url"` // The backing image size. // +optional Size int64 `json:"size"` // The labels of backing image backup. // +optional // +nullable Labels map[string]string `json:"labels"` // The backing image backup creation state. // Can be "", "InProgress", "Completed", "Error", "Unknown". // +optional State BackupState `json:"state"` // The backing image backup progress. // +optional Progress int `json:"progress"` // The error message when taking the backing image backup. // +optional Error string `json:"error,omitempty"` // The error messages when listing or inspecting backing image backup. // +optional // +nullable Messages map[string]string `json:"messages"` // The address of the backing image manager that runs backing image backup. // +optional ManagerAddress string `json:"managerAddress"` // The backing image backup upload finished time. // +optional BackupCreatedAt string `json:"backupCreatedAt"` // The last time that the backing image backup was synced with the remote backup target. // +optional // +nullable LastSyncedAt metav1.Time `json:"lastSyncedAt"` // Compression method // +optional CompressionMethod BackupCompressionMethod `json:"compressionMethod"` }
BackupBackingImageStatus defines the observed state of the Longhorn backing image backup
func (*BackupBackingImageStatus) DeepCopy ¶ added in v1.6.0
func (in *BackupBackingImageStatus) DeepCopy() *BackupBackingImageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupBackingImageStatus.
func (*BackupBackingImageStatus) DeepCopyInto ¶ added in v1.6.0
func (in *BackupBackingImageStatus) DeepCopyInto(out *BackupBackingImageStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupCompressionMethod ¶ added in v1.5.0
type BackupCompressionMethod string
type BackupList ¶
type BackupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Backup `json:"items"` }
BackupList is a list of Backups.
func (*BackupList) DeepCopy ¶
func (in *BackupList) DeepCopy() *BackupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupList.
func (*BackupList) DeepCopyInto ¶
func (in *BackupList) DeepCopyInto(out *BackupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackupList) DeepCopyObject ¶
func (in *BackupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackupMode ¶ added in v1.7.0
type BackupMode string
+kubebuilder:validation:Enum=full;incremental;""
type BackupSpec ¶
type BackupSpec struct { // The time to request run sync the remote backup. // +optional // +nullable SyncRequestedAt metav1.Time `json:"syncRequestedAt"` // The snapshot name. // +optional SnapshotName string `json:"snapshotName"` // The labels of snapshot backup. // +optional Labels map[string]string `json:"labels"` // The backup mode of this backup. // Can be "full" or "incremental" // +optional BackupMode BackupMode `json:"backupMode"` }
BackupSpec defines the desired state of the Longhorn backup
func (*BackupSpec) DeepCopy ¶
func (in *BackupSpec) DeepCopy() *BackupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupSpec.
func (*BackupSpec) DeepCopyInto ¶
func (in *BackupSpec) DeepCopyInto(out *BackupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupState ¶
type BackupState string
type BackupStatus ¶
type BackupStatus struct { // The node ID on which the controller is responsible to reconcile this backup CR. // +optional OwnerID string `json:"ownerID"` // The backup creation state. // Can be "", "InProgress", "Completed", "Error", "Unknown". // +optional State BackupState `json:"state"` // The snapshot backup progress. // +optional Progress int `json:"progress"` // The address of the replica that runs snapshot backup. // +optional ReplicaAddress string `json:"replicaAddress"` // The error message when taking the snapshot backup. // +optional Error string `json:"error,omitempty"` // The snapshot backup URL. // +optional URL string `json:"url"` // The snapshot name. // +optional SnapshotName string `json:"snapshotName"` // The snapshot creation time. // +optional SnapshotCreatedAt string `json:"snapshotCreatedAt"` // The snapshot backup upload finished time. // +optional BackupCreatedAt string `json:"backupCreatedAt"` // The snapshot size. // +optional Size string `json:"size"` // The labels of snapshot backup. // +optional // +nullable Labels map[string]string `json:"labels"` // The error messages when calling longhorn engine on listing or inspecting backups. // +optional // +nullable Messages map[string]string `json:"messages"` // The volume name. // +optional VolumeName string `json:"volumeName"` // The volume size. // +optional VolumeSize string `json:"volumeSize"` // The volume creation time. // +optional VolumeCreated string `json:"volumeCreated"` // The volume's backing image name. // +optional VolumeBackingImageName string `json:"volumeBackingImageName"` // The last time that the backup was synced with the remote backup target. // +optional // +nullable LastSyncedAt metav1.Time `json:"lastSyncedAt"` // Compression method // +optional CompressionMethod BackupCompressionMethod `json:"compressionMethod"` // Size in bytes of newly uploaded data // +optional NewlyUploadedDataSize string `json:"newlyUploadDataSize"` // Size in bytes of reuploaded data // +optional ReUploadedDataSize string `json:"reUploadedDataSize"` }
BackupStatus defines the observed state of the Longhorn backup
func (*BackupStatus) DeepCopy ¶
func (in *BackupStatus) DeepCopy() *BackupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupStatus.
func (*BackupStatus) DeepCopyInto ¶
func (in *BackupStatus) DeepCopyInto(out *BackupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupTarget ¶
type BackupTarget struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BackupTargetSpec `json:"spec,omitempty"` Status BackupTargetStatus `json:"status,omitempty"` }
BackupTarget is where Longhorn stores backup target object.
func (*BackupTarget) DeepCopy ¶
func (in *BackupTarget) DeepCopy() *BackupTarget
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupTarget.
func (*BackupTarget) DeepCopyInto ¶
func (in *BackupTarget) DeepCopyInto(out *BackupTarget)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackupTarget) DeepCopyObject ¶
func (in *BackupTarget) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*BackupTarget) Hub ¶
func (bt *BackupTarget) Hub()
Hub defines the current version (v1beta2) is the storage version so mark this as Hub
type BackupTargetList ¶
type BackupTargetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []BackupTarget `json:"items"` }
BackupTargetList is a list of BackupTargets.
func (*BackupTargetList) DeepCopy ¶
func (in *BackupTargetList) DeepCopy() *BackupTargetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupTargetList.
func (*BackupTargetList) DeepCopyInto ¶
func (in *BackupTargetList) DeepCopyInto(out *BackupTargetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackupTargetList) DeepCopyObject ¶
func (in *BackupTargetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackupTargetSpec ¶
type BackupTargetSpec struct { // The backup target URL. // +optional BackupTargetURL string `json:"backupTargetURL"` // The backup target credential secret. // +optional CredentialSecret string `json:"credentialSecret"` // The interval that the cluster needs to run sync with the backup target. // +optional PollInterval metav1.Duration `json:"pollInterval"` // The time to request run sync the remote backup target. // +optional // +nullable SyncRequestedAt metav1.Time `json:"syncRequestedAt"` }
BackupTargetSpec defines the desired state of the Longhorn backup target
func (*BackupTargetSpec) DeepCopy ¶
func (in *BackupTargetSpec) DeepCopy() *BackupTargetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupTargetSpec.
func (*BackupTargetSpec) DeepCopyInto ¶
func (in *BackupTargetSpec) DeepCopyInto(out *BackupTargetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupTargetStatus ¶
type BackupTargetStatus struct { // The node ID on which the controller is responsible to reconcile this backup target CR. // +optional OwnerID string `json:"ownerID"` // Available indicates if the remote backup target is available or not. // +optional Available bool `json:"available"` // Records the reason on why the backup target is unavailable. // +optional // +nullable Conditions []Condition `json:"conditions"` // The last time that the controller synced with the remote backup target. // +optional // +nullable LastSyncedAt metav1.Time `json:"lastSyncedAt"` }
BackupTargetStatus defines the observed state of the Longhorn backup target
func (*BackupTargetStatus) DeepCopy ¶
func (in *BackupTargetStatus) DeepCopy() *BackupTargetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupTargetStatus.
func (*BackupTargetStatus) DeepCopyInto ¶
func (in *BackupTargetStatus) DeepCopyInto(out *BackupTargetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupVolume ¶
type BackupVolume struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BackupVolumeSpec `json:"spec,omitempty"` Status BackupVolumeStatus `json:"status,omitempty"` }
BackupVolume is where Longhorn stores backup volume object.
func (*BackupVolume) DeepCopy ¶
func (in *BackupVolume) DeepCopy() *BackupVolume
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupVolume.
func (*BackupVolume) DeepCopyInto ¶
func (in *BackupVolume) DeepCopyInto(out *BackupVolume)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackupVolume) DeepCopyObject ¶
func (in *BackupVolume) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackupVolumeList ¶
type BackupVolumeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []BackupVolume `json:"items"` }
BackupVolumeList is a list of BackupVolumes.
func (*BackupVolumeList) DeepCopy ¶
func (in *BackupVolumeList) DeepCopy() *BackupVolumeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupVolumeList.
func (*BackupVolumeList) DeepCopyInto ¶
func (in *BackupVolumeList) DeepCopyInto(out *BackupVolumeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackupVolumeList) DeepCopyObject ¶
func (in *BackupVolumeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackupVolumeSpec ¶
type BackupVolumeSpec struct { // The time to request run sync the remote backup volume. // +optional // +nullable SyncRequestedAt metav1.Time `json:"syncRequestedAt"` }
BackupVolumeSpec defines the desired state of the Longhorn backup volume
func (*BackupVolumeSpec) DeepCopy ¶
func (in *BackupVolumeSpec) DeepCopy() *BackupVolumeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupVolumeSpec.
func (*BackupVolumeSpec) DeepCopyInto ¶
func (in *BackupVolumeSpec) DeepCopyInto(out *BackupVolumeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupVolumeStatus ¶
type BackupVolumeStatus struct { // The node ID on which the controller is responsible to reconcile this backup volume CR. // +optional OwnerID string `json:"ownerID"` // The backup volume config last modification time. // +optional // +nullable LastModificationTime metav1.Time `json:"lastModificationTime"` // The backup volume size. // +optional Size string `json:"size"` // The backup volume labels. // +optional // +nullable Labels map[string]string `json:"labels"` // The backup volume creation time. // +optional CreatedAt string `json:"createdAt"` // The latest volume backup name. // +optional LastBackupName string `json:"lastBackupName"` // The latest volume backup time. // +optional LastBackupAt string `json:"lastBackupAt"` // The backup volume block count. // +optional DataStored string `json:"dataStored"` // The error messages when call longhorn engine on list or inspect backup volumes. // +optional // +nullable Messages map[string]string `json:"messages"` // The backing image name. // +optional BackingImageName string `json:"backingImageName"` // the backing image checksum. // +optional BackingImageChecksum string `json:"backingImageChecksum"` // the storage class name of pv/pvc binding with the volume. // +optional StorageClassName string `json:"storageClassName"` // The last time that the backup volume was synced into the cluster. // +optional // +nullable LastSyncedAt metav1.Time `json:"lastSyncedAt"` }
BackupVolumeStatus defines the observed state of the Longhorn backup volume
func (*BackupVolumeStatus) DeepCopy ¶
func (in *BackupVolumeStatus) DeepCopy() *BackupVolumeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupVolumeStatus.
func (*BackupVolumeStatus) DeepCopyInto ¶
func (in *BackupVolumeStatus) DeepCopyInto(out *BackupVolumeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Condition ¶
type Condition struct { // Type is the type of the condition. // +optional Type string `json:"type"` // Status is the status of the condition. // Can be True, False, Unknown. // +optional Status ConditionStatus `json:"status"` // Last time we probed the condition. // +optional LastProbeTime string `json:"lastProbeTime"` // Last time the condition transitioned from one status to another. // +optional LastTransitionTime string `json:"lastTransitionTime"` // Unique, one-word, CamelCase reason for the condition's last transition. // +optional Reason string `json:"reason"` // Human-readable message indicating details about last transition. // +optional Message string `json:"message"` }
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionStatus ¶
type ConditionStatus string
const ( ConditionStatusTrue ConditionStatus = "True" ConditionStatusFalse ConditionStatus = "False" ConditionStatusUnknown ConditionStatus = "Unknown" )
type DataEngineType ¶ added in v1.6.0
type DataEngineType string
type DataLocality ¶
type DataLocality string
+kubebuilder:validation:Enum=disabled;best-effort;strict-local
type DiskDriver ¶ added in v1.7.0
type DiskDriver string
type DiskSpec ¶
type DiskSpec struct { // +kubebuilder:validation:Enum=filesystem;block // +optional Type DiskType `json:"diskType"` // +optional Path string `json:"path"` // +kubebuilder:validation:Enum="";auto;aio // +optional DiskDriver DiskDriver `json:"diskDriver"` // +optional AllowScheduling bool `json:"allowScheduling"` // +optional EvictionRequested bool `json:"evictionRequested"` // +optional StorageReserved int64 `json:"storageReserved"` // +optional Tags []string `json:"tags"` }
func (*DiskSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiskSpec.
func (*DiskSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DiskStatus ¶
type DiskStatus struct { // +optional // +nullable Conditions []Condition `json:"conditions"` // +optional StorageAvailable int64 `json:"storageAvailable"` // +optional StorageScheduled int64 `json:"storageScheduled"` // +optional StorageMaximum int64 `json:"storageMaximum"` // +optional // +nullable ScheduledReplica map[string]int64 `json:"scheduledReplica"` // +optional DiskUUID string `json:"diskUUID"` // +optional DiskName string `json:"diskName"` // +optional DiskPath string `json:"diskPath"` // +optional Type DiskType `json:"diskType"` // +optional DiskDriver DiskDriver `json:"diskDriver"` // +optional FSType string `json:"filesystemType"` // +optional InstanceManagerName string `json:"instanceManagerName"` }
func (*DiskStatus) DeepCopy ¶
func (in *DiskStatus) DeepCopy() *DiskStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiskStatus.
func (*DiskStatus) DeepCopyInto ¶
func (in *DiskStatus) DeepCopyInto(out *DiskStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Engine ¶
type Engine struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec EngineSpec `json:"spec,omitempty"` Status EngineStatus `json:"status,omitempty"` }
Engine is where Longhorn stores engine object.
func (*Engine) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Engine.
func (*Engine) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Engine) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EngineBackupStatus ¶
type EngineBackupStatus struct { // +optional Progress int `json:"progress"` // +optional BackupURL string `json:"backupURL,omitempty"` // +optional Error string `json:"error,omitempty"` // +optional SnapshotName string `json:"snapshotName"` // +optional State string `json:"state"` // +optional ReplicaAddress string `json:"replicaAddress"` }
func (*EngineBackupStatus) DeepCopy ¶
func (in *EngineBackupStatus) DeepCopy() *EngineBackupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EngineBackupStatus.
func (*EngineBackupStatus) DeepCopyInto ¶
func (in *EngineBackupStatus) DeepCopyInto(out *EngineBackupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EngineImage ¶
type EngineImage struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec EngineImageSpec `json:"spec,omitempty"` Status EngineImageStatus `json:"status,omitempty"` }
EngineImage is where Longhorn stores engine image object.
func (*EngineImage) DeepCopy ¶
func (in *EngineImage) DeepCopy() *EngineImage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EngineImage.
func (*EngineImage) DeepCopyInto ¶
func (in *EngineImage) DeepCopyInto(out *EngineImage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EngineImage) DeepCopyObject ¶
func (in *EngineImage) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*EngineImage) Hub ¶
func (ei *EngineImage) Hub()
Hub defines the current version (v1beta2) is the storage version so mark this as Hub
type EngineImageList ¶
type EngineImageList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []EngineImage `json:"items"` }
EngineImageList is a list of EngineImages.
func (*EngineImageList) DeepCopy ¶
func (in *EngineImageList) DeepCopy() *EngineImageList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EngineImageList.
func (*EngineImageList) DeepCopyInto ¶
func (in *EngineImageList) DeepCopyInto(out *EngineImageList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EngineImageList) DeepCopyObject ¶
func (in *EngineImageList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EngineImageSpec ¶
type EngineImageSpec struct { // +kubebuilder:validation:MinLength:=1 Image string `json:"image"` }
EngineImageSpec defines the desired state of the Longhorn engine image
func (*EngineImageSpec) DeepCopy ¶
func (in *EngineImageSpec) DeepCopy() *EngineImageSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EngineImageSpec.
func (*EngineImageSpec) DeepCopyInto ¶
func (in *EngineImageSpec) DeepCopyInto(out *EngineImageSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EngineImageState ¶
type EngineImageState string
type EngineImageStatus ¶
type EngineImageStatus struct { // +optional OwnerID string `json:"ownerID"` // +optional State EngineImageState `json:"state"` // +optional RefCount int `json:"refCount"` // +optional NoRefSince string `json:"noRefSince"` // +optional Incompatible bool `json:"incompatible"` // +optional // +nullable Conditions []Condition `json:"conditions"` // +optional // +nullable NodeDeploymentMap map[string]bool `json:"nodeDeploymentMap"` EngineVersionDetails `json:""` }
EngineImageStatus defines the observed state of the Longhorn engine image
func (*EngineImageStatus) DeepCopy ¶
func (in *EngineImageStatus) DeepCopy() *EngineImageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EngineImageStatus.
func (*EngineImageStatus) DeepCopyInto ¶
func (in *EngineImageStatus) DeepCopyInto(out *EngineImageStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EngineList ¶
type EngineList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Engine `json:"items"` }
EngineList is a list of Engines.
func (*EngineList) DeepCopy ¶
func (in *EngineList) DeepCopy() *EngineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EngineList.
func (*EngineList) DeepCopyInto ¶
func (in *EngineList) DeepCopyInto(out *EngineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EngineList) DeepCopyObject ¶
func (in *EngineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EngineSpec ¶
type EngineSpec struct { InstanceSpec `json:""` // +optional Frontend VolumeFrontend `json:"frontend"` // +optional ReplicaAddressMap map[string]string `json:"replicaAddressMap"` // +optional UpgradedReplicaAddressMap map[string]string `json:"upgradedReplicaAddressMap"` // +optional BackupVolume string `json:"backupVolume"` // +optional RequestedBackupRestore string `json:"requestedBackupRestore"` // +optional RequestedDataSource VolumeDataSource `json:"requestedDataSource"` // +optional DisableFrontend bool `json:"disableFrontend"` // +optional RevisionCounterDisabled bool `json:"revisionCounterDisabled"` // +optional UnmapMarkSnapChainRemovedEnabled bool `json:"unmapMarkSnapChainRemovedEnabled"` // +optional Active bool `json:"active"` // +optional SnapshotMaxCount int `json:"snapshotMaxCount"` // +kubebuilder:validation:Type=string // +optional SnapshotMaxSize int64 `json:"snapshotMaxSize,string"` }
EngineSpec defines the desired state of the Longhorn engine
func (*EngineSpec) DeepCopy ¶
func (in *EngineSpec) DeepCopy() *EngineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EngineSpec.
func (*EngineSpec) DeepCopyInto ¶
func (in *EngineSpec) DeepCopyInto(out *EngineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EngineStatus ¶
type EngineStatus struct { InstanceStatus `json:""` // +kubebuilder:validation:Type=string // +optional CurrentSize int64 `json:"currentSize,string"` // +optional // +nullable CurrentReplicaAddressMap map[string]string `json:"currentReplicaAddressMap"` // +optional // +nullable ReplicaModeMap map[string]ReplicaMode `json:"replicaModeMap"` // +optional // ReplicaTransitionTimeMap records the time a replica in ReplicaModeMap transitions from one mode to another (or // from not being in the ReplicaModeMap to being in it). This information is sometimes required by other controllers // (e.g. the volume controller uses it to determine the correct value for replica.Spec.lastHealthyAt). ReplicaTransitionTimeMap map[string]string `json:"replicaTransitionTimeMap"` // +optional Endpoint string `json:"endpoint"` // +optional LastRestoredBackup string `json:"lastRestoredBackup"` // +optional // +nullable BackupStatus map[string]*EngineBackupStatus `json:"backupStatus"` // +optional // +nullable RestoreStatus map[string]*RestoreStatus `json:"restoreStatus"` // +optional // +nullable PurgeStatus map[string]*PurgeStatus `json:"purgeStatus"` // +optional // +nullable RebuildStatus map[string]*RebuildStatus `json:"rebuildStatus"` // +optional // +nullable CloneStatus map[string]*SnapshotCloneStatus `json:"cloneStatus"` // +optional // +nullable Snapshots map[string]*SnapshotInfo `json:"snapshots"` // +optional SnapshotsError string `json:"snapshotsError"` // +optional IsExpanding bool `json:"isExpanding"` // +optional LastExpansionError string `json:"lastExpansionError"` // +optional LastExpansionFailedAt string `json:"lastExpansionFailedAt"` // +optional UnmapMarkSnapChainRemovedEnabled bool `json:"unmapMarkSnapChainRemovedEnabled"` // +optional SnapshotMaxCount int `json:"snapshotMaxCount"` // +kubebuilder:validation:Type=string // +optional SnapshotMaxSize int64 `json:"snapshotMaxSize,string"` }
EngineStatus defines the observed state of the Longhorn engine
func (*EngineStatus) DeepCopy ¶
func (in *EngineStatus) DeepCopy() *EngineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EngineStatus.
func (*EngineStatus) DeepCopyInto ¶
func (in *EngineStatus) DeepCopyInto(out *EngineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EngineVersionDetails ¶
type EngineVersionDetails struct { // +optional Version string `json:"version"` // +optional GitCommit string `json:"gitCommit"` // +optional BuildDate string `json:"buildDate"` // +optional CLIAPIVersion int `json:"cliAPIVersion"` // +optional CLIAPIMinVersion int `json:"cliAPIMinVersion"` // +optional ControllerAPIVersion int `json:"controllerAPIVersion"` // +optional ControllerAPIMinVersion int `json:"controllerAPIMinVersion"` // +optional DataFormatVersion int `json:"dataFormatVersion"` // +optional DataFormatMinVersion int `json:"dataFormatMinVersion"` }
func (*EngineVersionDetails) DeepCopy ¶
func (in *EngineVersionDetails) DeepCopy() *EngineVersionDetails
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EngineVersionDetails.
func (*EngineVersionDetails) DeepCopyInto ¶
func (in *EngineVersionDetails) DeepCopyInto(out *EngineVersionDetails)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FreezeFilesystemForSnapshot ¶ added in v1.7.0
type FreezeFilesystemForSnapshot string
+kubebuilder:validation:Enum=ignored;enabled;disabled
type HashStatus ¶ added in v1.4.0
type HashStatus struct { // +optional State string `json:"state"` // +optional Checksum string `json:"checksum"` // +optional Error string `json:"error"` // +optional SilentlyCorrupted bool `json:"silentlyCorrupted"` }
func (*HashStatus) DeepCopy ¶ added in v1.4.0
func (in *HashStatus) DeepCopy() *HashStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HashStatus.
func (*HashStatus) DeepCopyInto ¶ added in v1.4.0
func (in *HashStatus) DeepCopyInto(out *HashStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceManager ¶
type InstanceManager struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec InstanceManagerSpec `json:"spec,omitempty"` Status InstanceManagerStatus `json:"status,omitempty"` }
InstanceManager is where Longhorn stores instance manager object.
func (*InstanceManager) DeepCopy ¶
func (in *InstanceManager) DeepCopy() *InstanceManager
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceManager.
func (*InstanceManager) DeepCopyInto ¶
func (in *InstanceManager) DeepCopyInto(out *InstanceManager)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InstanceManager) DeepCopyObject ¶
func (in *InstanceManager) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InstanceManagerList ¶
type InstanceManagerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []InstanceManager `json:"items"` }
InstanceManagerList is a list of InstanceManagers.
func (*InstanceManagerList) DeepCopy ¶
func (in *InstanceManagerList) DeepCopy() *InstanceManagerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceManagerList.
func (*InstanceManagerList) DeepCopyInto ¶
func (in *InstanceManagerList) DeepCopyInto(out *InstanceManagerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InstanceManagerList) DeepCopyObject ¶
func (in *InstanceManagerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InstanceManagerSpec ¶
type InstanceManagerSpec struct { // +optional Image string `json:"image"` // +optional NodeID string `json:"nodeID"` // +optional Type InstanceManagerType `json:"type"` // +optional DataEngine DataEngineType `json:"dataEngine"` }
InstanceManagerSpec defines the desired state of the Longhorn instance manager
func (*InstanceManagerSpec) DeepCopy ¶
func (in *InstanceManagerSpec) DeepCopy() *InstanceManagerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceManagerSpec.
func (*InstanceManagerSpec) DeepCopyInto ¶
func (in *InstanceManagerSpec) DeepCopyInto(out *InstanceManagerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceManagerState ¶
type InstanceManagerState string
type InstanceManagerStatus ¶
type InstanceManagerStatus struct { // +optional OwnerID string `json:"ownerID"` // +optional CurrentState InstanceManagerState `json:"currentState"` // +optional // +nullable InstanceEngines map[string]InstanceProcess `json:"instanceEngines,omitempty"` // +optional // +nullable InstanceReplicas map[string]InstanceProcess `json:"instanceReplicas,omitempty"` // +optional IP string `json:"ip"` // +optional APIMinVersion int `json:"apiMinVersion"` // +optional APIVersion int `json:"apiVersion"` // +optional ProxyAPIMinVersion int `json:"proxyApiMinVersion"` // +optional ProxyAPIVersion int `json:"proxyApiVersion"` // Deprecated: Replaced by InstanceEngines and InstanceReplicas // +optional // +nullable Instances map[string]InstanceProcess `json:"instances,omitempty"` }
InstanceManagerStatus defines the observed state of the Longhorn instance manager
func (*InstanceManagerStatus) DeepCopy ¶
func (in *InstanceManagerStatus) DeepCopy() *InstanceManagerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceManagerStatus.
func (*InstanceManagerStatus) DeepCopyInto ¶
func (in *InstanceManagerStatus) DeepCopyInto(out *InstanceManagerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceManagerType ¶
type InstanceManagerType string
+kubebuilder:validation:Enum=aio;engine;replica
type InstanceProcess ¶
type InstanceProcess struct { // +optional Spec InstanceProcessSpec `json:"spec"` // +optional Status InstanceProcessStatus `json:"status"` }
func (*InstanceProcess) DeepCopy ¶
func (in *InstanceProcess) DeepCopy() *InstanceProcess
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceProcess.
func (*InstanceProcess) DeepCopyInto ¶
func (in *InstanceProcess) DeepCopyInto(out *InstanceProcess)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceProcessSpec ¶
type InstanceProcessSpec struct { // +optional Name string `json:"name"` // Deprecated:Replaced by field `dataEngine`. // +optional BackendStoreDriver BackendStoreDriverType `json:"backendStoreDriver"` // +optional DataEngine DataEngineType `json:"dataEngine"` }
func (*InstanceProcessSpec) DeepCopy ¶
func (in *InstanceProcessSpec) DeepCopy() *InstanceProcessSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceProcessSpec.
func (*InstanceProcessSpec) DeepCopyInto ¶
func (in *InstanceProcessSpec) DeepCopyInto(out *InstanceProcessSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceProcessStatus ¶
type InstanceProcessStatus struct { // +optional Endpoint string `json:"endpoint"` // +optional ErrorMsg string `json:"errorMsg"` //+optional //+nullable Conditions map[string]bool `json:"conditions"` // +optional Listen string `json:"listen"` // +optional PortEnd int32 `json:"portEnd"` // +optional PortStart int32 `json:"portStart"` // +optional TargetPortEnd int32 `json:"targetPortEnd"` // +optional TargetPortStart int32 `json:"targetPortStart"` // +optional State InstanceState `json:"state"` // +optional Type InstanceType `json:"type"` // +optional ResourceVersion int64 `json:"resourceVersion"` }
func (*InstanceProcessStatus) DeepCopy ¶
func (in *InstanceProcessStatus) DeepCopy() *InstanceProcessStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceProcessStatus.
func (*InstanceProcessStatus) DeepCopyInto ¶
func (in *InstanceProcessStatus) DeepCopyInto(out *InstanceProcessStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceSpec ¶
type InstanceSpec struct { // +optional VolumeName string `json:"volumeName"` // +kubebuilder:validation:Type=string // +optional VolumeSize int64 `json:"volumeSize,string"` // +optional NodeID string `json:"nodeID"` // Deprecated: Replaced by field `image`. // +optional EngineImage string `json:"engineImage"` // +optional Image string `json:"image"` // +optional DesireState InstanceState `json:"desireState"` // +optional LogRequested bool `json:"logRequested"` // +optional SalvageRequested bool `json:"salvageRequested"` // Deprecated:Replaced by field `dataEngine`. // +optional BackendStoreDriver BackendStoreDriverType `json:"backendStoreDriver"` // +kubebuilder:validation:Enum=v1;v2 // +optional DataEngine DataEngineType `json:"dataEngine"` }
func (*InstanceSpec) DeepCopy ¶
func (in *InstanceSpec) DeepCopy() *InstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpec.
func (*InstanceSpec) DeepCopyInto ¶
func (in *InstanceSpec) DeepCopyInto(out *InstanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceState ¶
type InstanceState string
type InstanceStatus ¶
type InstanceStatus struct { // +optional OwnerID string `json:"ownerID"` // +optional InstanceManagerName string `json:"instanceManagerName"` // +optional CurrentState InstanceState `json:"currentState"` // +optional CurrentImage string `json:"currentImage"` // +optional IP string `json:"ip"` // +optional StorageIP string `json:"storageIP"` // +optional Port int `json:"port"` // +optional Started bool `json:"started"` // +optional LogFetched bool `json:"logFetched"` // +optional SalvageExecuted bool `json:"salvageExecuted"` // +optional // +nullable Conditions []Condition `json:"conditions"` }
func (*InstanceStatus) DeepCopy ¶
func (in *InstanceStatus) DeepCopy() *InstanceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceStatus.
func (*InstanceStatus) DeepCopyInto ¶
func (in *InstanceStatus) DeepCopyInto(out *InstanceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceType ¶
type InstanceType string
type KubernetesStatus ¶
type KubernetesStatus struct { // +optional PVName string `json:"pvName"` // +optional PVStatus string `json:"pvStatus"` // determine if PVC/Namespace is history or not // +optional Namespace string `json:"namespace"` // +optional PVCName string `json:"pvcName"` // +optional LastPVCRefAt string `json:"lastPVCRefAt"` // determine if Pod/Workload is history or not // +optional // +nullable WorkloadsStatus []WorkloadStatus `json:"workloadsStatus"` // +optional LastPodRefAt string `json:"lastPodRefAt"` }
func (*KubernetesStatus) DeepCopy ¶
func (in *KubernetesStatus) DeepCopy() *KubernetesStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesStatus.
func (*KubernetesStatus) DeepCopyInto ¶
func (in *KubernetesStatus) DeepCopyInto(out *KubernetesStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Node ¶
type Node struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NodeSpec `json:"spec,omitempty"` Status NodeStatus `json:"status,omitempty"` }
Node is where Longhorn stores Longhorn node object.
func (*Node) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Node.
func (*Node) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Node) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeList ¶
type NodeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Node `json:"items"` }
NodeList is a list of Nodes.
func (*NodeList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeList.
func (*NodeList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeSpec ¶
type NodeSpec struct { // +optional Name string `json:"name"` // +optional Disks map[string]DiskSpec `json:"disks"` // +optional AllowScheduling bool `json:"allowScheduling"` // +optional EvictionRequested bool `json:"evictionRequested"` // +optional Tags []string `json:"tags"` // +optional InstanceManagerCPURequest int `json:"instanceManagerCPURequest"` }
NodeSpec defines the desired state of the Longhorn node
func (*NodeSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSpec.
func (*NodeSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeStatus ¶
type NodeStatus struct { // +optional // +nullable Conditions []Condition `json:"conditions"` // +optional // +nullable DiskStatus map[string]*DiskStatus `json:"diskStatus"` // +optional Region string `json:"region"` // +optional Zone string `json:"zone"` // +optional SnapshotCheckStatus SnapshotCheckStatus `json:"snapshotCheckStatus"` // +optional AutoEvicting bool `json:"autoEvicting"` }
NodeStatus defines the observed state of the Longhorn node
func (*NodeStatus) DeepCopy ¶
func (in *NodeStatus) DeepCopy() *NodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeStatus.
func (*NodeStatus) DeepCopyInto ¶
func (in *NodeStatus) DeepCopyInto(out *NodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Orphan ¶
type Orphan struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec OrphanSpec `json:"spec,omitempty"` Status OrphanStatus `json:"status,omitempty"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:resource:shortName=lho +kubebuilder:subresource:status +kubebuilder:storageversion +kubebuilder:printcolumn:name="Type",type=string,JSONPath=`.spec.orphanType`,description="The type of the orphan" +kubebuilder:printcolumn:name="Node",type=string,JSONPath=`.spec.nodeID`,description="The node that the orphan is on" Orphan is where Longhorn stores orphan object.
func (*Orphan) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Orphan.
func (*Orphan) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Orphan) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type OrphanList ¶
type OrphanList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Orphan `json:"items"` }
OrphanList is a list of orphans.
func (*OrphanList) DeepCopy ¶
func (in *OrphanList) DeepCopy() *OrphanList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrphanList.
func (*OrphanList) DeepCopyInto ¶
func (in *OrphanList) DeepCopyInto(out *OrphanList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OrphanList) DeepCopyObject ¶
func (in *OrphanList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type OrphanSpec ¶
type OrphanSpec struct { // The node ID on which the controller is responsible to reconcile this orphan CR. // +optional NodeID string `json:"nodeID"` // The type of the orphaned data. // Can be "replica". // +optional Type OrphanType `json:"orphanType"` // The parameters of the orphaned data // +optional Parameters map[string]string `json:"parameters"` }
OrphanSpec defines the desired state of the Longhorn orphaned data
func (*OrphanSpec) DeepCopy ¶
func (in *OrphanSpec) DeepCopy() *OrphanSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrphanSpec.
func (*OrphanSpec) DeepCopyInto ¶
func (in *OrphanSpec) DeepCopyInto(out *OrphanSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OrphanStatus ¶
type OrphanStatus struct { // +optional OwnerID string `json:"ownerID"` // +optional // +nullable Conditions []Condition `json:"conditions"` }
OrphanStatus defines the observed state of the Longhorn orphaned data
func (*OrphanStatus) DeepCopy ¶
func (in *OrphanStatus) DeepCopy() *OrphanStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrphanStatus.
func (*OrphanStatus) DeepCopyInto ¶
func (in *OrphanStatus) DeepCopyInto(out *OrphanStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OrphanType ¶
type OrphanType string
type PurgeStatus ¶
type PurgeStatus struct { // +optional Error string `json:"error"` // +optional IsPurging bool `json:"isPurging"` // +optional Progress int `json:"progress"` // +optional State string `json:"state"` }
func (*PurgeStatus) DeepCopy ¶
func (in *PurgeStatus) DeepCopy() *PurgeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PurgeStatus.
func (*PurgeStatus) DeepCopyInto ¶
func (in *PurgeStatus) DeepCopyInto(out *PurgeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RebuildStatus ¶
type RebuildStatus struct { // +optional Error string `json:"error"` // +optional IsRebuilding bool `json:"isRebuilding"` // +optional Progress int `json:"progress"` // +optional State string `json:"state"` // +optional FromReplicaAddress string `json:"fromReplicaAddress"` }
func (*RebuildStatus) DeepCopy ¶
func (in *RebuildStatus) DeepCopy() *RebuildStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RebuildStatus.
func (*RebuildStatus) DeepCopyInto ¶
func (in *RebuildStatus) DeepCopyInto(out *RebuildStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RecurringJob ¶
type RecurringJob struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RecurringJobSpec `json:"spec,omitempty"` Status RecurringJobStatus `json:"status,omitempty"` }
RecurringJob is where Longhorn stores recurring job object.
func (*RecurringJob) DeepCopy ¶
func (in *RecurringJob) DeepCopy() *RecurringJob
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RecurringJob.
func (*RecurringJob) DeepCopyInto ¶
func (in *RecurringJob) DeepCopyInto(out *RecurringJob)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RecurringJob) DeepCopyObject ¶
func (in *RecurringJob) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RecurringJobList ¶
type RecurringJobList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RecurringJob `json:"items"` }
RecurringJobList is a list of RecurringJobs.
func (*RecurringJobList) DeepCopy ¶
func (in *RecurringJobList) DeepCopy() *RecurringJobList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RecurringJobList.
func (*RecurringJobList) DeepCopyInto ¶
func (in *RecurringJobList) DeepCopyInto(out *RecurringJobList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RecurringJobList) DeepCopyObject ¶
func (in *RecurringJobList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RecurringJobSpec ¶
type RecurringJobSpec struct { // The recurring job name. // +optional Name string `json:"name"` // The recurring job group. // +optional Groups []string `json:"groups,omitempty"` // The recurring job task. // Can be "snapshot", "snapshot-force-create", "snapshot-cleanup", "snapshot-delete", "backup", "backup-force-create" or "filesystem-trim" // +optional Task RecurringJobType `json:"task"` // The cron setting. // +optional Cron string `json:"cron"` // The retain count of the snapshot/backup. // +optional Retain int `json:"retain"` // The concurrency of taking the snapshot/backup. // +optional Concurrency int `json:"concurrency"` // The label of the snapshot/backup. // +optional Labels map[string]string `json:"labels,omitempty"` // The parameters of the snapshot/backup. // Support parameters: "full-backup-interval". // +optional Parameters map[string]string `json:"parameters,omitempty"` }
RecurringJobSpec defines the desired state of the Longhorn recurring job
func (*RecurringJobSpec) DeepCopy ¶
func (in *RecurringJobSpec) DeepCopy() *RecurringJobSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RecurringJobSpec.
func (*RecurringJobSpec) DeepCopyInto ¶
func (in *RecurringJobSpec) DeepCopyInto(out *RecurringJobSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RecurringJobStatus ¶
type RecurringJobStatus struct { // The owner ID which is responsible to reconcile this recurring job CR. // +optional OwnerID string `json:"ownerID"` // The number of jobs that have been triggered. // +optional ExecutionCount int `json:"executionCount"` }
RecurringJobStatus defines the observed state of the Longhorn recurring job
func (*RecurringJobStatus) DeepCopy ¶
func (in *RecurringJobStatus) DeepCopy() *RecurringJobStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RecurringJobStatus.
func (*RecurringJobStatus) DeepCopyInto ¶
func (in *RecurringJobStatus) DeepCopyInto(out *RecurringJobStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RecurringJobType ¶
type RecurringJobType string
+kubebuilder:validation:Enum=snapshot;snapshot-force-create;snapshot-cleanup;snapshot-delete;backup;backup-force-create;filesystem-trim
type Replica ¶
type Replica struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ReplicaSpec `json:"spec,omitempty"` Status ReplicaStatus `json:"status,omitempty"` }
Replica is where Longhorn stores replica object.
func (*Replica) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Replica.
func (*Replica) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Replica) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReplicaAutoBalance ¶
type ReplicaAutoBalance string
+kubebuilder:validation:Enum=ignored;disabled;least-effort;best-effort
type ReplicaDiskSoftAntiAffinity ¶ added in v1.6.0
type ReplicaDiskSoftAntiAffinity string
+kubebuilder:validation:Enum=ignored;enabled;disabled
type ReplicaList ¶
type ReplicaList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Replica `json:"items"` }
ReplicaList is a list of Replicas.
func (*ReplicaList) DeepCopy ¶
func (in *ReplicaList) DeepCopy() *ReplicaList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaList.
func (*ReplicaList) DeepCopyInto ¶
func (in *ReplicaList) DeepCopyInto(out *ReplicaList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ReplicaList) DeepCopyObject ¶
func (in *ReplicaList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReplicaMode ¶
type ReplicaMode string
type ReplicaSoftAntiAffinity ¶ added in v1.5.0
type ReplicaSoftAntiAffinity string
+kubebuilder:validation:Enum=ignored;enabled;disabled
type ReplicaSpec ¶
type ReplicaSpec struct { InstanceSpec `json:""` // +optional EngineName string `json:"engineName"` // +optional // HealthyAt is set the first time a replica becomes read/write in an engine after creation or rebuild. HealthyAt // indicates the time the last successful rebuild occurred. When HealthyAt is set, a replica is likely to have // useful (though possibly stale) data. HealthyAt is cleared before a rebuild. HealthyAt may be later than the // corresponding entry in an engine's replicaTransitionTimeMap because it is set when the volume controller // acknowledges the change. HealthyAt string `json:"healthyAt"` // +optional // LastHealthyAt is set every time a replica becomes read/write in an engine. Unlike HealthyAt, LastHealthyAt is // never cleared. LastHealthyAt is not a reliable indicator of the state of a replica's data. For example, a // replica with LastHealthyAt set may be in the middle of a rebuild. However, because it is never cleared, it can be // compared to LastFailedAt to help prevent dangerous replica deletion in some corner cases. LastHealthyAt may be // later than the corresponding entry in an engine's replicaTransitionTimeMap because it is set when the volume // controller acknowledges the change. LastHealthyAt string `json:"lastHealthyAt"` // +optional // FailedAt is set when a running replica fails or when a running engine is unable to use a replica for any reason. // FailedAt indicates the time the failure occurred. When FailedAt is set, a replica is likely to have useful // (though possibly stale) data. A replica with FailedAt set must be rebuilt from a non-failed replica (or it can // be used in a salvage if all replicas are failed). FailedAt is cleared before a rebuild or salvage. FailedAt may // be later than the corresponding entry in an engine's replicaTransitionTimeMap because it is set when the volume // controller acknowledges the change. FailedAt string `json:"failedAt"` // +optional // LastFailedAt is always set at the same time as FailedAt. Unlike FailedAt, LastFailedAt is never cleared. // LastFailedAt is not a reliable indicator of the state of a replica's data. For example, a replica with // LastFailedAt may already be healthy and in use again. However, because it is never cleared, it can be compared to // LastHealthyAt to help prevent dangerous replica deletion in some corner cases. LastFailedAt may be later than the // corresponding entry in an engine's replicaTransitionTimeMap because it is set when the volume controller // acknowledges the change. LastFailedAt string `json:"lastFailedAt"` // +optional DiskID string `json:"diskID"` // +optional DiskPath string `json:"diskPath"` // +optional DataDirectoryName string `json:"dataDirectoryName"` // +optional BackingImage string `json:"backingImage"` // +optional Active bool `json:"active"` // +optional HardNodeAffinity string `json:"hardNodeAffinity"` // +optional RevisionCounterDisabled bool `json:"revisionCounterDisabled"` // +optional UnmapMarkDiskChainRemovedEnabled bool `json:"unmapMarkDiskChainRemovedEnabled"` // +optional RebuildRetryCount int `json:"rebuildRetryCount"` // +optional EvictionRequested bool `json:"evictionRequested"` // +optional SnapshotMaxCount int `json:"snapshotMaxCount"` // +kubebuilder:validation:Type=string // +optional SnapshotMaxSize int64 `json:"snapshotMaxSize,string"` }
ReplicaSpec defines the desired state of the Longhorn replica
func (*ReplicaSpec) DeepCopy ¶
func (in *ReplicaSpec) DeepCopy() *ReplicaSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSpec.
func (*ReplicaSpec) DeepCopyInto ¶
func (in *ReplicaSpec) DeepCopyInto(out *ReplicaSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReplicaStatus ¶
type ReplicaStatus struct { InstanceStatus `json:""` // Deprecated: Replaced by field `spec.evictionRequested`. // +optional EvictionRequested bool `json:"evictionRequested"` }
ReplicaStatus defines the observed state of the Longhorn replica
func (*ReplicaStatus) DeepCopy ¶
func (in *ReplicaStatus) DeepCopy() *ReplicaStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaStatus.
func (*ReplicaStatus) DeepCopyInto ¶
func (in *ReplicaStatus) DeepCopyInto(out *ReplicaStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReplicaZoneSoftAntiAffinity ¶ added in v1.5.0
type ReplicaZoneSoftAntiAffinity string
+kubebuilder:validation:Enum=ignored;enabled;disabled
type RestoreStatus ¶
type RestoreStatus struct { // +optional IsRestoring bool `json:"isRestoring"` // +optional LastRestored string `json:"lastRestored"` // +optional CurrentRestoringBackup string `json:"currentRestoringBackup"` // +optional Progress int `json:"progress,omitempty"` // +optional Error string `json:"error,omitempty"` // +optional Filename string `json:"filename,omitempty"` // +optional State string `json:"state"` // +optional BackupURL string `json:"backupURL"` }
func (*RestoreStatus) DeepCopy ¶
func (in *RestoreStatus) DeepCopy() *RestoreStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreStatus.
func (*RestoreStatus) DeepCopyInto ¶
func (in *RestoreStatus) DeepCopyInto(out *RestoreStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RestoreVolumeRecurringJobType ¶ added in v1.4.0
type RestoreVolumeRecurringJobType string
+kubebuilder:validation:Enum=ignored;enabled;disabled
type Setting ¶
type Setting struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // The value of the setting. Value string `json:"value"` // The status of the setting. Status SettingStatus `json:"status,omitempty"` }
Setting is where Longhorn stores setting object.
func (*Setting) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Setting.
func (*Setting) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Setting) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SettingList ¶
type SettingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Setting `json:"items"` }
SettingList is a list of Settings.
func (*SettingList) DeepCopy ¶
func (in *SettingList) DeepCopy() *SettingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SettingList.
func (*SettingList) DeepCopyInto ¶
func (in *SettingList) DeepCopyInto(out *SettingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SettingList) DeepCopyObject ¶
func (in *SettingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SettingStatus ¶ added in v1.7.0
type SettingStatus struct { // The setting is applied. Applied bool `json:"applied"` }
SettingStatus defines the observed state of the Longhorn setting
func (*SettingStatus) DeepCopy ¶ added in v1.7.0
func (in *SettingStatus) DeepCopy() *SettingStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SettingStatus.
func (*SettingStatus) DeepCopyInto ¶ added in v1.7.0
func (in *SettingStatus) DeepCopyInto(out *SettingStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ShareManager ¶
type ShareManager struct {}
ShareManager is where Longhorn stores share manager object.
func (*ShareManager) DeepCopy ¶
func (in *ShareManager) DeepCopy() *ShareManager
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ShareManager.
func (*ShareManager) DeepCopyInto ¶
func (in *ShareManager) DeepCopyInto(out *ShareManager)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ShareManager) DeepCopyObject ¶
func (in *ShareManager) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ShareManagerList ¶
type ShareManagerList struct {}
ShareManagerList is a list of ShareManagers.
func (*ShareManagerList) DeepCopy ¶
func (in *ShareManagerList) DeepCopy() *ShareManagerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ShareManagerList.
func (*ShareManagerList) DeepCopyInto ¶
func (in *ShareManagerList) DeepCopyInto(out *ShareManagerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ShareManagerList) DeepCopyObject ¶
func (in *ShareManagerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ShareManagerSpec ¶
type ShareManagerSpec struct { // +optional Image string `json:"image"` }
ShareManagerSpec defines the desired state of the Longhorn share manager
func (*ShareManagerSpec) DeepCopy ¶
func (in *ShareManagerSpec) DeepCopy() *ShareManagerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ShareManagerSpec.
func (*ShareManagerSpec) DeepCopyInto ¶
func (in *ShareManagerSpec) DeepCopyInto(out *ShareManagerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ShareManagerState ¶
type ShareManagerState string
type ShareManagerStatus ¶
type ShareManagerStatus struct { // +optional OwnerID string `json:"ownerID"` // +optional State ShareManagerState `json:"state"` // +optional Endpoint string `json:"endpoint"` }
ShareManagerStatus defines the observed state of the Longhorn share manager
func (*ShareManagerStatus) DeepCopy ¶
func (in *ShareManagerStatus) DeepCopy() *ShareManagerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ShareManagerStatus.
func (*ShareManagerStatus) DeepCopyInto ¶
func (in *ShareManagerStatus) DeepCopyInto(out *ShareManagerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Snapshot ¶
type Snapshot struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SnapshotSpec `json:"spec,omitempty"` Status SnapshotStatus `json:"status,omitempty"` }
Snapshot is the Schema for the snapshots API
func (*Snapshot) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Snapshot.
func (*Snapshot) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Snapshot) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SnapshotCheckStatus ¶ added in v1.4.0
type SnapshotCheckStatus struct { // +optional LastPeriodicCheckedAt metav1.Time `json:"lastPeriodicCheckedAt"` }
func (*SnapshotCheckStatus) DeepCopy ¶ added in v1.4.0
func (in *SnapshotCheckStatus) DeepCopy() *SnapshotCheckStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotCheckStatus.
func (*SnapshotCheckStatus) DeepCopyInto ¶ added in v1.4.0
func (in *SnapshotCheckStatus) DeepCopyInto(out *SnapshotCheckStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnapshotCloneStatus ¶
type SnapshotCloneStatus struct { // +optional IsCloning bool `json:"isCloning"` // +optional Error string `json:"error"` // +optional Progress int `json:"progress"` // +optional State string `json:"state"` // +optional FromReplicaAddress string `json:"fromReplicaAddress"` // +optional SnapshotName string `json:"snapshotName"` }
func (*SnapshotCloneStatus) DeepCopy ¶
func (in *SnapshotCloneStatus) DeepCopy() *SnapshotCloneStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotCloneStatus.
func (*SnapshotCloneStatus) DeepCopyInto ¶
func (in *SnapshotCloneStatus) DeepCopyInto(out *SnapshotCloneStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnapshotDataIntegrity ¶ added in v1.4.0
type SnapshotDataIntegrity string
type SnapshotHashStatus ¶ added in v1.4.0
type SnapshotHashStatus string
type SnapshotInfo ¶
type SnapshotInfo struct { // +optional Name string `json:"name"` // +optional Parent string `json:"parent"` // +optional // +nullable Children map[string]bool `json:"children"` // +optional Removed bool `json:"removed"` // +optional UserCreated bool `json:"usercreated"` // +optional Created string `json:"created"` // +optional Size string `json:"size"` // +optional // +nullable Labels map[string]string `json:"labels"` }
func (*SnapshotInfo) DeepCopy ¶
func (in *SnapshotInfo) DeepCopy() *SnapshotInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotInfo.
func (*SnapshotInfo) DeepCopyInto ¶
func (in *SnapshotInfo) DeepCopyInto(out *SnapshotInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnapshotList ¶
type SnapshotList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Snapshot `json:"items"` }
SnapshotList contains a list of Snapshot
func (*SnapshotList) DeepCopy ¶
func (in *SnapshotList) DeepCopy() *SnapshotList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotList.
func (*SnapshotList) DeepCopyInto ¶
func (in *SnapshotList) DeepCopyInto(out *SnapshotList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SnapshotList) DeepCopyObject ¶
func (in *SnapshotList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SnapshotSpec ¶
type SnapshotSpec struct { // the volume that this snapshot belongs to. // This field is immutable after creation. // Required Volume string `json:"volume"` // require creating a new snapshot // +optional CreateSnapshot bool `json:"createSnapshot"` // The labels of snapshot // +optional // +nullable Labels map[string]string `json:"labels"` }
SnapshotSpec defines the desired state of Longhorn Snapshot
func (*SnapshotSpec) DeepCopy ¶
func (in *SnapshotSpec) DeepCopy() *SnapshotSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotSpec.
func (*SnapshotSpec) DeepCopyInto ¶
func (in *SnapshotSpec) DeepCopyInto(out *SnapshotSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnapshotStatus ¶
type SnapshotStatus struct { // +optional Parent string `json:"parent"` // +optional // +nullable Children map[string]bool `json:"children"` // +optional MarkRemoved bool `json:"markRemoved"` // +optional UserCreated bool `json:"userCreated"` // +optional CreationTime string `json:"creationTime"` // +optional Size int64 `json:"size"` // +optional // +nullable Labels map[string]string `json:"labels"` // +optional OwnerID string `json:"ownerID"` // +optional Error string `json:"error,omitempty"` // +optional RestoreSize int64 `json:"restoreSize"` // +optional ReadyToUse bool `json:"readyToUse"` // +optional Checksum string `json:"checksum"` }
SnapshotStatus defines the observed state of Longhorn Snapshot
func (*SnapshotStatus) DeepCopy ¶
func (in *SnapshotStatus) DeepCopy() *SnapshotStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotStatus.
func (*SnapshotStatus) DeepCopyInto ¶
func (in *SnapshotStatus) DeepCopyInto(out *SnapshotStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SupportBundle ¶ added in v1.4.0
type SupportBundle struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SupportBundleSpec `json:"spec,omitempty"` Status SupportBundleStatus `json:"status,omitempty"` }
SupportBundle is where Longhorn stores support bundle object
func (*SupportBundle) DeepCopy ¶ added in v1.4.0
func (in *SupportBundle) DeepCopy() *SupportBundle
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupportBundle.
func (*SupportBundle) DeepCopyInto ¶ added in v1.4.0
func (in *SupportBundle) DeepCopyInto(out *SupportBundle)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SupportBundle) DeepCopyObject ¶ added in v1.4.0
func (in *SupportBundle) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SupportBundleList ¶ added in v1.4.0
type SupportBundleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SupportBundle `json:"items"` }
SupportBundleList is a list of SupportBundles
func (*SupportBundleList) DeepCopy ¶ added in v1.4.0
func (in *SupportBundleList) DeepCopy() *SupportBundleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupportBundleList.
func (*SupportBundleList) DeepCopyInto ¶ added in v1.4.0
func (in *SupportBundleList) DeepCopyInto(out *SupportBundleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SupportBundleList) DeepCopyObject ¶ added in v1.4.0
func (in *SupportBundleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SupportBundleSpec ¶ added in v1.4.0
type SupportBundleSpec struct { // The preferred responsible controller node ID. // +optional NodeID string `json:"nodeID"` // The issue URL // +optional // +nullable IssueURL string `json:"issueURL"` // A brief description of the issue Description string `json:"description"` }
SupportBundleSpec defines the desired state of the Longhorn SupportBundle
func (*SupportBundleSpec) DeepCopy ¶ added in v1.4.0
func (in *SupportBundleSpec) DeepCopy() *SupportBundleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupportBundleSpec.
func (*SupportBundleSpec) DeepCopyInto ¶ added in v1.4.0
func (in *SupportBundleSpec) DeepCopyInto(out *SupportBundleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SupportBundleState ¶ added in v1.4.0
type SupportBundleState string
type SupportBundleStatus ¶ added in v1.4.0
type SupportBundleStatus struct { // The current responsible controller node ID // +optional OwnerID string `json:"ownerID"` // The support bundle manager image // +optional Image string `json:"image"` // The support bundle manager IP // +optional IP string `json:"managerIP"` // +optional State SupportBundleState `json:"state,omitempty"` // +optional Progress int `json:"progress"` // +optional Filename string `json:"filename,omitempty"` // +optional Filesize int64 `json:"filesize,omitempty"` // +optional Conditions []Condition `json:"conditions,omitempty"` }
SupportBundleStatus defines the observed state of the Longhorn SupportBundle
func (*SupportBundleStatus) DeepCopy ¶ added in v1.4.0
func (in *SupportBundleStatus) DeepCopy() *SupportBundleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupportBundleStatus.
func (*SupportBundleStatus) DeepCopyInto ¶ added in v1.4.0
func (in *SupportBundleStatus) DeepCopyInto(out *SupportBundleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SystemBackup ¶ added in v1.4.0
type SystemBackup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SystemBackupSpec `json:"spec,omitempty"` Status SystemBackupStatus `json:"status,omitempty"` }
SystemBackup is where Longhorn stores system backup object
func (*SystemBackup) DeepCopy ¶ added in v1.4.0
func (in *SystemBackup) DeepCopy() *SystemBackup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SystemBackup.
func (*SystemBackup) DeepCopyInto ¶ added in v1.4.0
func (in *SystemBackup) DeepCopyInto(out *SystemBackup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SystemBackup) DeepCopyObject ¶ added in v1.4.0
func (in *SystemBackup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SystemBackupCreateVolumeBackupPolicy ¶ added in v1.5.0
type SystemBackupCreateVolumeBackupPolicy string
type SystemBackupList ¶ added in v1.4.0
type SystemBackupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SystemBackup `json:"items"` }
SystemBackupList is a list of SystemBackups
func (*SystemBackupList) DeepCopy ¶ added in v1.4.0
func (in *SystemBackupList) DeepCopy() *SystemBackupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SystemBackupList.
func (*SystemBackupList) DeepCopyInto ¶ added in v1.4.0
func (in *SystemBackupList) DeepCopyInto(out *SystemBackupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SystemBackupList) DeepCopyObject ¶ added in v1.4.0
func (in *SystemBackupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SystemBackupSpec ¶ added in v1.4.0
type SystemBackupSpec struct { // The create volume backup policy // Can be "if-not-present", "always" or "disabled" // +optional // +nullable VolumeBackupPolicy SystemBackupCreateVolumeBackupPolicy `json:"volumeBackupPolicy"` }
SystemBackupSpec defines the desired state of the Longhorn SystemBackup
func (*SystemBackupSpec) DeepCopy ¶ added in v1.4.0
func (in *SystemBackupSpec) DeepCopy() *SystemBackupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SystemBackupSpec.
func (*SystemBackupSpec) DeepCopyInto ¶ added in v1.4.0
func (in *SystemBackupSpec) DeepCopyInto(out *SystemBackupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SystemBackupState ¶ added in v1.4.0
type SystemBackupState string
type SystemBackupStatus ¶ added in v1.4.0
type SystemBackupStatus struct { // The node ID of the responsible controller to reconcile this SystemBackup. // +optional OwnerID string `json:"ownerID"` // The saved Longhorn version. // +optional // +nullable Version string `json:"version"` // The saved Longhorn manager git commit. // +optional // +nullable GitCommit string `json:"gitCommit"` // The saved manager image. // +optional ManagerImage string `json:"managerImage"` // The system backup state. // +optional State SystemBackupState `json:"state"` // +optional // +nullable Conditions []Condition `json:"conditions"` // The system backup creation time. // +optional CreatedAt metav1.Time `json:"createdAt"` // The last time that the system backup was synced into the cluster. // +optional // +nullable LastSyncedAt metav1.Time `json:"lastSyncedAt"` }
SystemBackupStatus defines the observed state of the Longhorn SystemBackup
func (*SystemBackupStatus) DeepCopy ¶ added in v1.4.0
func (in *SystemBackupStatus) DeepCopy() *SystemBackupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SystemBackupStatus.
func (*SystemBackupStatus) DeepCopyInto ¶ added in v1.4.0
func (in *SystemBackupStatus) DeepCopyInto(out *SystemBackupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SystemRestore ¶ added in v1.4.0
type SystemRestore struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SystemRestoreSpec `json:"spec,omitempty"` Status SystemRestoreStatus `json:"status,omitempty"` }
SystemRestore is where Longhorn stores system restore object
func (*SystemRestore) DeepCopy ¶ added in v1.4.0
func (in *SystemRestore) DeepCopy() *SystemRestore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SystemRestore.
func (*SystemRestore) DeepCopyInto ¶ added in v1.4.0
func (in *SystemRestore) DeepCopyInto(out *SystemRestore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SystemRestore) DeepCopyObject ¶ added in v1.4.0
func (in *SystemRestore) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SystemRestoreList ¶ added in v1.4.0
type SystemRestoreList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SystemRestore `json:"items"` }
SystemRestoreList is a list of SystemRestores
func (*SystemRestoreList) DeepCopy ¶ added in v1.4.0
func (in *SystemRestoreList) DeepCopy() *SystemRestoreList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SystemRestoreList.
func (*SystemRestoreList) DeepCopyInto ¶ added in v1.4.0
func (in *SystemRestoreList) DeepCopyInto(out *SystemRestoreList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SystemRestoreList) DeepCopyObject ¶ added in v1.4.0
func (in *SystemRestoreList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SystemRestoreSpec ¶ added in v1.4.0
type SystemRestoreSpec struct { // The system backup name in the object store. SystemBackup string `json:"systemBackup"` }
SystemRestoreSpec defines the desired state of the Longhorn SystemRestore
func (*SystemRestoreSpec) DeepCopy ¶ added in v1.4.0
func (in *SystemRestoreSpec) DeepCopy() *SystemRestoreSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SystemRestoreSpec.
func (*SystemRestoreSpec) DeepCopyInto ¶ added in v1.4.0
func (in *SystemRestoreSpec) DeepCopyInto(out *SystemRestoreSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SystemRestoreState ¶ added in v1.4.0
type SystemRestoreState string
type SystemRestoreStatus ¶ added in v1.4.0
type SystemRestoreStatus struct { // The node ID of the responsible controller to reconcile this SystemRestore. // +optional OwnerID string `json:"ownerID"` // The system restore state. // +optional State SystemRestoreState `json:"state,omitempty"` // The source system backup URL. // +optional SourceURL string `json:"sourceURL,omitempty"` // +optional // +nullable Conditions []Condition `json:"conditions"` }
SystemRestoreStatus defines the observed state of the Longhorn SystemRestore
func (*SystemRestoreStatus) DeepCopy ¶ added in v1.4.0
func (in *SystemRestoreStatus) DeepCopy() *SystemRestoreStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SystemRestoreStatus.
func (*SystemRestoreStatus) DeepCopyInto ¶ added in v1.4.0
func (in *SystemRestoreStatus) DeepCopyInto(out *SystemRestoreStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UnmapMarkSnapChainRemoved ¶ added in v1.4.0
type UnmapMarkSnapChainRemoved string
+kubebuilder:validation:Enum=ignored;disabled;enabled
type Volume ¶
type Volume struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VolumeSpec `json:"spec,omitempty"` Status VolumeStatus `json:"status,omitempty"` }
Volume is where Longhorn stores volume object.
func (*Volume) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Volume.
func (*Volume) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Volume) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumeAttachment ¶ added in v1.5.0
type VolumeAttachment struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VolumeAttachmentSpec `json:"spec,omitempty"` Status VolumeAttachmentStatus `json:"status,omitempty"` }
VolumeAttachment stores attachment information of a Longhorn volume
func (*VolumeAttachment) DeepCopy ¶ added in v1.5.0
func (in *VolumeAttachment) DeepCopy() *VolumeAttachment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachment.
func (*VolumeAttachment) DeepCopyInto ¶ added in v1.5.0
func (in *VolumeAttachment) DeepCopyInto(out *VolumeAttachment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VolumeAttachment) DeepCopyObject ¶ added in v1.5.0
func (in *VolumeAttachment) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumeAttachmentList ¶ added in v1.5.0
type VolumeAttachmentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []VolumeAttachment `json:"items"` }
VolumeAttachmentList contains a list of VolumeAttachments
func (*VolumeAttachmentList) DeepCopy ¶ added in v1.5.0
func (in *VolumeAttachmentList) DeepCopy() *VolumeAttachmentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentList.
func (*VolumeAttachmentList) DeepCopyInto ¶ added in v1.5.0
func (in *VolumeAttachmentList) DeepCopyInto(out *VolumeAttachmentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VolumeAttachmentList) DeepCopyObject ¶ added in v1.5.0
func (in *VolumeAttachmentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumeAttachmentSpec ¶ added in v1.5.0
type VolumeAttachmentSpec struct { // +optional AttachmentTickets map[string]*AttachmentTicket `json:"attachmentTickets"` // The name of Longhorn volume of this VolumeAttachment Volume string `json:"volume"` }
VolumeAttachmentSpec defines the desired state of Longhorn VolumeAttachment
func (*VolumeAttachmentSpec) DeepCopy ¶ added in v1.5.0
func (in *VolumeAttachmentSpec) DeepCopy() *VolumeAttachmentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentSpec.
func (*VolumeAttachmentSpec) DeepCopyInto ¶ added in v1.5.0
func (in *VolumeAttachmentSpec) DeepCopyInto(out *VolumeAttachmentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeAttachmentStatus ¶ added in v1.5.0
type VolumeAttachmentStatus struct { // +optional AttachmentTicketStatuses map[string]*AttachmentTicketStatus `json:"attachmentTicketStatuses"` }
VolumeAttachmentStatus defines the observed state of Longhorn VolumeAttachment
func (*VolumeAttachmentStatus) DeepCopy ¶ added in v1.5.0
func (in *VolumeAttachmentStatus) DeepCopy() *VolumeAttachmentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentStatus.
func (*VolumeAttachmentStatus) DeepCopyInto ¶ added in v1.5.0
func (in *VolumeAttachmentStatus) DeepCopyInto(out *VolumeAttachmentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeCloneState ¶
type VolumeCloneState string
type VolumeCloneStatus ¶
type VolumeCloneStatus struct { // +optional SourceVolume string `json:"sourceVolume"` // +optional Snapshot string `json:"snapshot"` // +optional State VolumeCloneState `json:"state"` // +optional AttemptCount int `json:"attemptCount"` // +optional NextAllowedAttemptAt string `json:"nextAllowedAttemptAt"` }
func (*VolumeCloneStatus) DeepCopy ¶
func (in *VolumeCloneStatus) DeepCopy() *VolumeCloneStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeCloneStatus.
func (*VolumeCloneStatus) DeepCopyInto ¶
func (in *VolumeCloneStatus) DeepCopyInto(out *VolumeCloneStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeDataSource ¶
type VolumeDataSource string
type VolumeDataSourceType ¶
type VolumeDataSourceType string
type VolumeFrontend ¶
type VolumeFrontend string
+kubebuilder:validation:Enum=blockdev;iscsi;nvmf;""
type VolumeList ¶
type VolumeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Volume `json:"items"` }
VolumeList is a list of Volumes.
func (*VolumeList) DeepCopy ¶
func (in *VolumeList) DeepCopy() *VolumeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeList.
func (*VolumeList) DeepCopyInto ¶
func (in *VolumeList) DeepCopyInto(out *VolumeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VolumeList) DeepCopyObject ¶
func (in *VolumeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumeRecurringJob ¶
func (*VolumeRecurringJob) DeepCopy ¶
func (in *VolumeRecurringJob) DeepCopy() *VolumeRecurringJob
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeRecurringJob.
func (*VolumeRecurringJob) DeepCopyInto ¶
func (in *VolumeRecurringJob) DeepCopyInto(out *VolumeRecurringJob)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeRecurringJobInfo ¶ added in v1.4.0
type VolumeRecurringJobInfo struct { JobSpec RecurringJobSpec `json:"jobSpec"` FromGroup []string `json:"fromGroup,omitempty"` FromJob bool `json:"fromJob"` }
VolumeRecurringJobInfo defines the Longhorn recurring job information stored in the backup volume configuration
func (*VolumeRecurringJobInfo) DeepCopy ¶ added in v1.4.0
func (in *VolumeRecurringJobInfo) DeepCopy() *VolumeRecurringJobInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeRecurringJobInfo.
func (*VolumeRecurringJobInfo) DeepCopyInto ¶ added in v1.4.0
func (in *VolumeRecurringJobInfo) DeepCopyInto(out *VolumeRecurringJobInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeRobustness ¶
type VolumeRobustness string
type VolumeSpec ¶
type VolumeSpec struct { // +kubebuilder:validation:Type=string // +optional Size int64 `json:"size,string"` // +optional Frontend VolumeFrontend `json:"frontend"` // +optional FromBackup string `json:"fromBackup"` // +optional RestoreVolumeRecurringJob RestoreVolumeRecurringJobType `json:"restoreVolumeRecurringJob"` // +optional DataSource VolumeDataSource `json:"dataSource"` // +optional DataLocality DataLocality `json:"dataLocality"` // +optional StaleReplicaTimeout int `json:"staleReplicaTimeout"` // +optional NodeID string `json:"nodeID"` // +optional MigrationNodeID string `json:"migrationNodeID"` // Deprecated: Replaced by field `image`. // +optional EngineImage string `json:"engineImage"` // +optional Image string `json:"image"` // +optional BackingImage string `json:"backingImage"` // +optional Standby bool `json:"Standby"` // +optional DiskSelector []string `json:"diskSelector"` // +optional NodeSelector []string `json:"nodeSelector"` // +optional DisableFrontend bool `json:"disableFrontend"` // +optional RevisionCounterDisabled bool `json:"revisionCounterDisabled"` // +optional UnmapMarkSnapChainRemoved UnmapMarkSnapChainRemoved `json:"unmapMarkSnapChainRemoved"` // Replica soft anti affinity of the volume. Set enabled to allow replicas to be scheduled on the same node. // +optional ReplicaSoftAntiAffinity ReplicaSoftAntiAffinity `json:"replicaSoftAntiAffinity"` // Replica zone soft anti affinity of the volume. Set enabled to allow replicas to be scheduled in the same zone. // +optional ReplicaZoneSoftAntiAffinity ReplicaZoneSoftAntiAffinity `json:"replicaZoneSoftAntiAffinity"` // Replica disk soft anti affinity of the volume. Set enabled to allow replicas to be scheduled in the same disk. // +optional ReplicaDiskSoftAntiAffinity ReplicaDiskSoftAntiAffinity `json:"replicaDiskSoftAntiAffinity"` // +optional LastAttachedBy string `json:"lastAttachedBy"` // +optional AccessMode AccessMode `json:"accessMode"` // +optional Migratable bool `json:"migratable"` // +optional Encrypted bool `json:"encrypted"` // +optional NumberOfReplicas int `json:"numberOfReplicas"` // +optional ReplicaAutoBalance ReplicaAutoBalance `json:"replicaAutoBalance"` // +kubebuilder:validation:Enum=ignored;disabled;enabled;fast-check // +optional SnapshotDataIntegrity SnapshotDataIntegrity `json:"snapshotDataIntegrity"` // +kubebuilder:validation:Enum=none;lz4;gzip // +optional BackupCompressionMethod BackupCompressionMethod `json:"backupCompressionMethod"` // Deprecated:Replaced by field `dataEngine`.' // +optional BackendStoreDriver BackendStoreDriverType `json:"backendStoreDriver"` // +kubebuilder:validation:Enum=v1;v2 // +optional DataEngine DataEngineType `json:"dataEngine"` // +optional SnapshotMaxCount int `json:"snapshotMaxCount"` // +kubebuilder:validation:Type=string // +optional SnapshotMaxSize int64 `json:"snapshotMaxSize,string"` // Setting that freezes the filesystem on the root partition before a snapshot is created. // +optional FreezeFilesystemForSnapshot FreezeFilesystemForSnapshot `json:"freezeFilesystemForSnapshot"` }
VolumeSpec defines the desired state of the Longhorn volume
func (*VolumeSpec) DeepCopy ¶
func (in *VolumeSpec) DeepCopy() *VolumeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSpec.
func (*VolumeSpec) DeepCopyInto ¶
func (in *VolumeSpec) DeepCopyInto(out *VolumeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeState ¶
type VolumeState string
type VolumeStatus ¶
type VolumeStatus struct { // +optional OwnerID string `json:"ownerID"` // +optional State VolumeState `json:"state"` // +optional Robustness VolumeRobustness `json:"robustness"` // +optional CurrentNodeID string `json:"currentNodeID"` // +optional CurrentImage string `json:"currentImage"` // +optional KubernetesStatus KubernetesStatus `json:"kubernetesStatus"` // +optional // +nullable Conditions []Condition `json:"conditions"` // +optional LastBackup string `json:"lastBackup"` // +optional LastBackupAt string `json:"lastBackupAt"` // Deprecated. // +optional PendingNodeID string `json:"pendingNodeID"` // the node that this volume is currently migrating to // +optional CurrentMigrationNodeID string `json:"currentMigrationNodeID"` // +optional FrontendDisabled bool `json:"frontendDisabled"` // +optional RestoreRequired bool `json:"restoreRequired"` // +optional RestoreInitiated bool `json:"restoreInitiated"` // +optional CloneStatus VolumeCloneStatus `json:"cloneStatus"` // +optional RemountRequestedAt string `json:"remountRequestedAt"` // +optional ExpansionRequired bool `json:"expansionRequired"` // +optional IsStandby bool `json:"isStandby"` // +optional ActualSize int64 `json:"actualSize"` // +optional LastDegradedAt string `json:"lastDegradedAt"` ShareEndpoint string `json:"shareEndpoint"` ShareState ShareManagerState `json:"shareState"` }
VolumeStatus defines the observed state of the Longhorn volume
func (*VolumeStatus) DeepCopy ¶
func (in *VolumeStatus) DeepCopy() *VolumeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeStatus.
func (*VolumeStatus) DeepCopyInto ¶
func (in *VolumeStatus) DeepCopyInto(out *VolumeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadStatus ¶
type WorkloadStatus struct { // +optional PodName string `json:"podName"` // +optional PodStatus string `json:"podStatus"` // +optional WorkloadName string `json:"workloadName"` // +optional WorkloadType string `json:"workloadType"` }
func (*WorkloadStatus) DeepCopy ¶
func (in *WorkloadStatus) DeepCopy() *WorkloadStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadStatus.
func (*WorkloadStatus) DeepCopyInto ¶
func (in *WorkloadStatus) DeepCopyInto(out *WorkloadStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Source Files ¶
- backingimage.go
- backingimagedatasource.go
- backingimagemanager.go
- backup.go
- backupbackingimage.go
- backuptarget.go
- backupvolume.go
- doc.go
- engine.go
- engineimage.go
- instancemanager.go
- misc.go
- node.go
- orphan.go
- recurringjob.go
- register.go
- replica.go
- setting.go
- sharemanager.go
- snapshot.go
- supportbundle.go
- systembackup.go
- systemrestore.go
- volume.go
- volumeattachment.go
- zz_generated.deepcopy.go