v1beta2

package
v1.6.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 71

Documentation

Overview

Package v1beta2 is the v1beta2 version of the API. +groupName=longhorn.io

Index

Constants

View Source
const (
	BackingImageParameterName                 = "backingImage"
	BackingImageParameterDataSourceType       = "backingImageDataSourceType"
	BackingImageParameterChecksum             = "backingImageChecksum"
	BackingImageParameterDataSourceParameters = "backingImageDataSourceParameters"
)
View Source
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")
)
View Source
const (
	DataSourceTypeDownloadParameterURL      = "url"
	DataSourceTypeExportParameterExportType = "export-type"
	DataSourceTypeExportParameterVolumeName = "volume-name"
)
View Source
const (
	BackingImageDataSourceTypeDownload         = BackingImageDataSourceType("download")
	BackingImageDataSourceTypeUpload           = BackingImageDataSourceType("upload")
	BackingImageDataSourceTypeExportFromVolume = BackingImageDataSourceType("export-from-volume")
	BackingImageDataSourceTypeRestore          = BackingImageDataSourceType("restore")

	DataSourceTypeExportFromVolumeParameterVolumeName                = "volume-name"
	DataSourceTypeExportFromVolumeParameterVolumeSize                = "volume-size"
	DataSourceTypeExportFromVolumeParameterSnapshotName              = "snapshot-name"
	DataSourceTypeExportFromVolumeParameterSenderAddress             = "sender-address"
	DataSourceTypeExportFromVolumeParameterFileSyncHTTPClientTimeout = "file-sync-http-client-timeout"
	DataSourceTypeRestoreParameterBackupURL                          = "backup-url"
	DataSourceTypeRestoreParameterConcurrentLimit                    = "concurrent-limit"
)
View Source
const (
	BackingImageManagerStateError    = BackingImageManagerState("error")
	BackingImageManagerStateRunning  = BackingImageManagerState("running")
	BackingImageManagerStateStopped  = BackingImageManagerState("stopped")
	BackingImageManagerStateStarting = BackingImageManagerState("starting")
	BackingImageManagerStateUnknown  = BackingImageManagerState("unknown")
)
View Source
const (
	// non-final state
	BackupStateNew        = BackupState("")
	BackupStatePending    = BackupState("Pending")
	BackupStateInProgress = BackupState("InProgress")
	// final state
	BackupStateCompleted = BackupState("Completed")
	BackupStateError     = BackupState("Error")
	BackupStateUnknown   = BackupState("Unknown")
)
View Source
const (
	BackupCompressionMethodNone = BackupCompressionMethod("none")
	BackupCompressionMethodLz4  = BackupCompressionMethod("lz4")
	BackupCompressionMethodGzip = BackupCompressionMethod("gzip")
)
View Source
const (
	BackupTargetConditionTypeUnavailable = "Unavailable"

	BackupTargetConditionReasonUnavailable = "Unavailable"
)
View Source
const (
	ReplicaModeRW  = ReplicaMode("RW")
	ReplicaModeWO  = ReplicaMode("WO")
	ReplicaModeERR = ReplicaMode("ERR")
)
View Source
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")
)
View Source
const (
	EngineImageConditionTypeReady = "ready"

	EngineImageConditionTypeReadyReasonDaemonSet = "daemonSet"
	EngineImageConditionTypeReadyReasonBinary    = "binary"
)
View Source
const (
	InstanceTypeEngine  = InstanceType("engine")
	InstanceTypeReplica = InstanceType("replica")
)
View Source
const (
	InstanceManagerStateError    = InstanceManagerState("error")
	InstanceManagerStateRunning  = InstanceManagerState("running")
	InstanceManagerStateStopped  = InstanceManagerState("stopped")
	InstanceManagerStateStarting = InstanceManagerState("starting")
	InstanceManagerStateUnknown  = InstanceManagerState("unknown")
)
View Source
const (
	InstanceManagerTypeAllInOne = InstanceManagerType("aio")
	// Deprecate
	InstanceManagerTypeEngine  = InstanceManagerType("engine")
	InstanceManagerTypeReplica = InstanceManagerType("replica")
)
View Source
const (
	InstanceStateRunning  = InstanceState("running")
	InstanceStateStopped  = InstanceState("stopped")
	InstanceStateError    = InstanceState("error")
	InstanceStateStarting = InstanceState("starting")
	InstanceStateStopping = InstanceState("stopping")
	InstanceStateUnknown  = InstanceState("unknown")
)
View Source
const (
	NodeConditionTypeReady            = "Ready"
	NodeConditionTypeMountPropagation = "MountPropagation"
	NodeConditionTypeSchedulable      = "Schedulable"
)
View Source
const (
	NodeConditionReasonManagerPodDown            = "ManagerPodDown"
	NodeConditionReasonManagerPodMissing         = "ManagerPodMissing"
	NodeConditionReasonKubernetesNodeGone        = "KubernetesNodeGone"
	NodeConditionReasonKubernetesNodeNotReady    = "KubernetesNodeNotReady"
	NodeConditionReasonKubernetesNodePressure    = "KubernetesNodePressure"
	NodeConditionReasonUnknownNodeConditionTrue  = "UnknownNodeConditionTrue"
	NodeConditionReasonNoMountPropagationSupport = "NoMountPropagationSupport"
	NodeConditionReasonKubernetesNodeCordoned    = "KubernetesNodeCordoned"
)
View Source
const (
	DiskConditionTypeSchedulable = "Schedulable"
	DiskConditionTypeReady       = "Ready"
	DiskConditionTypeError       = "Error"
)
View Source
const (
	DiskConditionReasonDiskPressure           = "DiskPressure"
	DiskConditionReasonDiskFilesystemChanged  = "DiskFilesystemChanged"
	DiskConditionReasonNoDiskInfo             = "NoDiskInfo"
	DiskConditionReasonDiskNotReady           = "DiskNotReady"
	DiskConditionReasonDiskServiceUnreachable = "DiskServiceUnreachable"
)
View Source
const (
	ErrorReplicaScheduleInsufficientStorage              = "insufficient storage"
	ErrorReplicaScheduleDiskNotFound                     = "disk not found"
	ErrorReplicaScheduleDiskUnavailable                  = "disks are unavailable"
	ErrorReplicaScheduleSchedulingSettingsRetrieveFailed = "failed to retrieve scheduling settings failed to retrieve"
	ErrorReplicaScheduleTagsNotFulfilled                 = "tags not fulfilled"
	ErrorReplicaScheduleNodeNotFound                     = "node not found"
	ErrorReplicaScheduleNodeUnavailable                  = "nodes are unavailable"
	ErrorReplicaScheduleEngineImageNotReady              = "none of the node candidates contains a ready engine image"
	ErrorReplicaScheduleHardNodeAffinityNotSatisfied     = "hard affinity cannot be satisfied"
	ErrorReplicaScheduleSchedulingFailed                 = "replica scheduling failed"
)
View Source
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")
)
View Source
const (
	OrphanConditionTypeError         = "Error"
	OrphanConditionTypeDataCleanable = "DataCleanable"

	OrphanConditionTypeDataCleanableReasonNodeUnavailable = "NodeUnavailable"
	OrphanConditionTypeDataCleanableReasonNodeEvicted     = "NodeEvicted"
	OrphanConditionTypeDataCleanableReasonDiskInvalid     = "DiskInvalid"
	OrphanConditionTypeDataCleanableReasonDiskEvicted     = "DiskEvicted"
	OrphanConditionTypeDataCleanableReasonDiskChanged     = "DiskChanged"
)
View Source
const (
	OrphanDataName = "DataName"
	OrphanDiskName = "DiskName"
	OrphanDiskUUID = "DiskUUID"
	OrphanDiskPath = "DiskPath"
	OrphanDiskType = "DiskType"
)
View Source
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"
)
View Source
const (
	// error messages captured from the gRPC error code
	ReplicaRebuildFailedCanceledErrorMSG         = "rpc error: code = Canceled"
	ReplicaRebuildFailedDeadlineExceededErrorMSG = "rpc error: code = DeadlineExceeded"
	ReplicaRebuildFailedUnavailableErrorMSG      = "rpc error: code = Unavailable"
)
View Source
const (
	ReplicaConditionTypeRebuildFailed                = "RebuildFailed"
	ReplicaConditionTypeWaitForBackingImage          = "WaitForBackingImage"
	ReplicaConditionReasonWaitForBackingImageFailed  = "GetBackingImageFailed"
	ReplicaConditionReasonWaitForBackingImageWaiting = "Waiting"

	ReplicaConditionReasonRebuildFailedDisconnection = "Disconnection"
	ReplicaConditionReasonRebuildFailedGeneral       = "General"
)
View Source
const (
	ShareManagerStateUnknown  = ShareManagerState("unknown")
	ShareManagerStateStarting = ShareManagerState("starting")
	ShareManagerStateRunning  = ShareManagerState("running")
	ShareManagerStateStopping = ShareManagerState("stopping")
	ShareManagerStateStopped  = ShareManagerState("stopped")
	ShareManagerStateError    = ShareManagerState("error")
)
View Source
const (
	SnapshotHashStatusNew        = SnapshotHashStatus("")
	SnapshotHashStatusInProgress = SnapshotHashStatus("in_progress")
	SnapshotHashStatusCompleted  = SnapshotHashStatus("complete")
	SnapshotHashStatusError      = SnapshotHashStatus("error")
)
View Source
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")
)
View Source
const (
	SystemBackupStateDeleting     = SystemBackupState("Deleting")
	SystemBackupStateError        = SystemBackupState("Error")
	SystemBackupStateGenerating   = SystemBackupState("Generating")
	SystemBackupStateNone         = SystemBackupState("")
	SystemBackupStateReady        = SystemBackupState("Ready")
	SystemBackupStateSyncing      = SystemBackupState("Syncing")
	SystemBackupStateUploading    = SystemBackupState("Uploading")
	SystemBackupStateVolumeBackup = SystemBackupState("CreatingVolumeBackups")

	SystemBackupConditionTypeError = "Error"

	SystemBackupConditionReasonDelete   = "Delete"
	SystemBackupConditionReasonGenerate = "Generate"
	SystemBackupConditionReasonUpload   = "Upload"
	SystemBackupConditionReasonSync     = "Sync"
)
View Source
const (
	SystemBackupCreateVolumeBackupPolicyAlways       = SystemBackupCreateVolumeBackupPolicy("always")
	SystemBackupCreateVolumeBackupPolicyDisabled     = SystemBackupCreateVolumeBackupPolicy("disabled")
	SystemBackupCreateVolumeBackupPolicyIfNotPresent = SystemBackupCreateVolumeBackupPolicy("if-not-present")
)
View Source
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"
)
View Source
const (
	VolumeStateCreating  = VolumeState("creating")
	VolumeStateAttached  = VolumeState("attached")
	VolumeStateDetached  = VolumeState("detached")
	VolumeStateAttaching = VolumeState("attaching")
	VolumeStateDetaching = VolumeState("detaching")
	VolumeStateDeleting  = VolumeState("deleting")
)
View Source
const (
	VolumeRobustnessHealthy  = VolumeRobustness("healthy")  // during attached
	VolumeRobustnessDegraded = VolumeRobustness("degraded") // during attached
	VolumeRobustnessFaulted  = VolumeRobustness("faulted")  // during detached
	VolumeRobustnessUnknown  = VolumeRobustness("unknown")
)
View Source
const (
	VolumeFrontendBlockDev = VolumeFrontend("blockdev")
	VolumeFrontendISCSI    = VolumeFrontend("iscsi")
	VolumeFrontendNvmf     = VolumeFrontend("nvmf")
	VolumeFrontendEmpty    = VolumeFrontend("")
)
View Source
const (
	VolumeDataSourceTypeBackup   = VolumeDataSourceType("backup") // Planing to move FromBackup field into DataSource field
	VolumeDataSourceTypeSnapshot = VolumeDataSourceType("snapshot")
	VolumeDataSourceTypeVolume   = VolumeDataSourceType("volume")
)
View Source
const (
	DataLocalityDisabled    = DataLocality("disabled")
	DataLocalityBestEffort  = DataLocality("best-effort")
	DataLocalityStrictLocal = DataLocality("strict-local")
)
View Source
const (
	AccessModeReadWriteOnce = AccessMode("rwo")
	AccessModeReadWriteMany = AccessMode("rwx")
)
View Source
const (
	ReplicaAutoBalanceIgnored     = ReplicaAutoBalance("ignored")
	ReplicaAutoBalanceDisabled    = ReplicaAutoBalance("disabled")
	ReplicaAutoBalanceLeastEffort = ReplicaAutoBalance("least-effort")
	ReplicaAutoBalanceBestEffort  = ReplicaAutoBalance("best-effort")
)
View Source
const (
	UnmapMarkSnapChainRemovedIgnored  = UnmapMarkSnapChainRemoved("ignored")
	UnmapMarkSnapChainRemovedDisabled = UnmapMarkSnapChainRemoved("disabled")
	UnmapMarkSnapChainRemovedEnabled  = UnmapMarkSnapChainRemoved("enabled")
)
View Source
const (
	VolumeCloneStateEmpty     = VolumeCloneState("")
	VolumeCloneStateInitiated = VolumeCloneState("initiated")
	VolumeCloneStateCompleted = VolumeCloneState("completed")
	VolumeCloneStateFailed    = VolumeCloneState("failed")
)
View Source
const (
	VolumeConditionTypeScheduled           = "Scheduled"
	VolumeConditionTypeRestore             = "Restore"
	VolumeConditionTypeTooManySnapshots    = "TooManySnapshots"
	VolumeConditionTypeWaitForBackingImage = "WaitForBackingImage"
)
View Source
const (
	VolumeConditionReasonReplicaSchedulingFailure      = "ReplicaSchedulingFailure"
	VolumeConditionReasonLocalReplicaSchedulingFailure = "LocalReplicaSchedulingFailure"
	VolumeConditionReasonRestoreInProgress             = "RestoreInProgress"
	VolumeConditionReasonRestoreFailure                = "RestoreFailure"
	VolumeConditionReasonTooManySnapshots              = "TooManySnapshots"
	VolumeConditionReasonWaitForBackingImageFailed     = "GetBackingImageFailed"
	VolumeConditionReasonWaitForBackingImageWaiting    = "Waiting"
)
View Source
const (
	SnapshotDataIntegrityIgnored   = SnapshotDataIntegrity("ignored")
	SnapshotDataIntegrityDisabled  = SnapshotDataIntegrity("disabled")
	SnapshotDataIntegrityEnabled   = SnapshotDataIntegrity("enabled")
	SnapshotDataIntegrityFastCheck = SnapshotDataIntegrity("fast-check")
)
View Source
const (
	RestoreVolumeRecurringJobDefault  = RestoreVolumeRecurringJobType("ignored")
	RestoreVolumeRecurringJobEnabled  = RestoreVolumeRecurringJobType("enabled")
	RestoreVolumeRecurringJobDisabled = RestoreVolumeRecurringJobType("disabled")
)
View Source
const (
	ReplicaSoftAntiAffinityDefault  = ReplicaSoftAntiAffinity("ignored")
	ReplicaSoftAntiAffinityEnabled  = ReplicaSoftAntiAffinity("enabled")
	ReplicaSoftAntiAffinityDisabled = ReplicaSoftAntiAffinity("disabled")
)
View Source
const (
	ReplicaZoneSoftAntiAffinityDefault  = ReplicaZoneSoftAntiAffinity("ignored")
	ReplicaZoneSoftAntiAffinityEnabled  = ReplicaZoneSoftAntiAffinity("enabled")
	ReplicaZoneSoftAntiAffinityDisabled = ReplicaZoneSoftAntiAffinity("disabled")
)
View Source
const (
	ReplicaDiskSoftAntiAffinityDefault  = ReplicaDiskSoftAntiAffinity("ignored")
	ReplicaDiskSoftAntiAffinityEnabled  = ReplicaDiskSoftAntiAffinity("enabled")
	ReplicaDiskSoftAntiAffinityDisabled = ReplicaDiskSoftAntiAffinity("disabled")
)
View Source
const (
	BackendStoreDriverTypeV1  = BackendStoreDriverType("v1")
	BackendStoreDriverTypeV2  = BackendStoreDriverType("v2")
	BackendStoreDriverTypeAll = BackendStoreDriverType("all")
)
View Source
const (
	DataEngineTypeV1  = DataEngineType("v1")
	DataEngineTypeV2  = DataEngineType("v2")
	DataEngineTypeAll = DataEngineType("all")
)
View Source
const (
	OfflineReplicaRebuildingIgnored  = OfflineReplicaRebuilding("ignored")
	OfflineReplicaRebuildingEnabled  = OfflineReplicaRebuilding("enabled")
	OfflineReplicaRebuildingDisabled = OfflineReplicaRebuilding("disabled")
)
View Source
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")
	AttacherTypeShareManagerController           = AttacherType("share-manager-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")
)
View Source
const (
	AttacherPriorityLevelVolumeRestoreController          = 2000
	AttacherPriorityLevelVolumeExpansionController        = 2000
	AttacherPriorityLevelLonghornAPI                      = 1000
	AttacherPriorityLevelCSIAttacher                      = 900
	AttacherPriorityLevelSalvageController                = 900
	AttacherPriorityLevelShareManagerController           = 900
	AttacherPriorityLevelSnapshotController               = 800
	AttacherPriorityLevelBackupController                 = 800
	AttacherPriorityLevelVolumeCloneController            = 800
	AttacherPriorityLevelVolumeEvictionController         = 800
	AttacherPriorityLevelBackingImageDataSourceController = 800
	AttachedPriorityLevelVolumeRebuildingController       = 800
)
View Source
const (
	TrueValue  = "true"
	FalseValue = "false"
	AnyValue   = "any"

	AttachmentParameterDisableFrontend = "disableFrontend"
	AttachmentParameterLastAttachedBy  = "lastAttachedBy"
)
View Source
const (
	AttachmentStatusConditionTypeSatisfied = "Satisfied"

	AttachmentStatusConditionReasonAttachedWithIncompatibleParameters = "AttachedWithIncompatibleParameters"
)
View Source
const (
	InstanceConditionReasonInstanceCreationFailure = "InstanceCreationFailure"
)
View Source
const (
	InstanceConditionTypeInstanceCreation = "InstanceCreation"
)
View Source
const (
	OrphanTypeReplica = OrphanType("replica")
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
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 IsAttachmentTicketSatisfied added in v1.5.0

func IsAttachmentTicketSatisfied(attachmentID string, va *VolumeAttachment) bool

func Resource

func Resource(resource string) schema.GroupResource

Types

type AccessMode

type AccessMode string

+kubebuilder:validation:Enum=rwo;rwx

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

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 BackendStoreDriverType added in v1.5.0

type BackendStoreDriverType string

Deprecated.

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

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackingImageDataSourceList.

func (*BackingImageDataSourceList) DeepCopyInto

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackingImageDataSourceSpec.

func (*BackingImageDataSourceSpec) DeepCopyInto

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackingImageDataSourceStatus.

func (*BackingImageDataSourceStatus) DeepCopyInto

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

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackingImageDiskFileStatus.

func (*BackingImageDiskFileStatus) DeepCopyInto

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
	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

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

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

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackingImageManagerStatus.

func (*BackingImageManagerStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BackingImageSpec

type BackingImageSpec struct {
	// +optional
	Disks map[string]string `json:"disks"`
	// +optional
	Checksum string `json:"checksum"`
	// +optional
	SourceType BackingImageDataSourceType `json:"sourceType"`
	// +optional
	SourceParameters map[string]string `json:"sourceParameters"`
}

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"`
	// +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

func (in *Backup) DeepCopy() *Backup

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backup.

func (*Backup) DeepCopyInto

func (in *Backup) DeepCopyInto(out *Backup)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Backup) DeepCopyObject

func (in *Backup) DeepCopyObject() runtime.Object

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

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

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

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 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"`
}

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"`
}

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

func (in *Condition) DeepCopy() *Condition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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 DiskSpec

type DiskSpec struct {
	// +kubebuilder:validation:Enum=filesystem;block
	// +optional
	Type DiskType `json:"diskType"`
	// +optional
	Path string `json:"path"`
	// +optional
	AllowScheduling bool `json:"allowScheduling"`
	// +optional
	EvictionRequested bool `json:"evictionRequested"`
	// +optional
	StorageReserved int64 `json:"storageReserved"`
	// +optional
	Tags []string `json:"tags"`
}

func (*DiskSpec) DeepCopy

func (in *DiskSpec) DeepCopy() *DiskSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiskSpec.

func (*DiskSpec) DeepCopyInto

func (in *DiskSpec) DeepCopyInto(out *DiskSpec)

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
	Type DiskType `json:"diskType"`
	// +optional
	FSType string `json:"filesystemType"`
}

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 DiskType added in v1.5.0

type DiskType string

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

func (in *Engine) DeepCopy() *Engine

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Engine.

func (*Engine) DeepCopyInto

func (in *Engine) DeepCopyInto(out *Engine)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Engine) DeepCopyObject

func (in *Engine) DeepCopyObject() runtime.Object

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
	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

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 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

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
	Conditions map[string]bool `json:"conditions"`
	// +optional
	Listen string `json:"listen"`
	// +optional
	PortEnd int32 `json:"portEnd"`
	// +optional
	PortStart int32 `json:"portStart"`
	// +optional
	State InstanceState `json:"state"`
	// +optional
	Type InstanceType `json:"type"`
	// +optional
	ResourceVersion int64 `json:"resourceVersion"`
}

func (*InstanceProcessStatus) DeepCopy

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

func (in *Node) DeepCopy() *Node

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Node.

func (*Node) DeepCopyInto

func (in *Node) DeepCopyInto(out *Node)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Node) DeepCopyObject

func (in *Node) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Node) Hub

func (n *Node) Hub()

Hub defines the current version (v1beta2) is the storage version so mark this as Hub

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

func (in *NodeList) DeepCopy() *NodeList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeList.

func (*NodeList) DeepCopyInto

func (in *NodeList) DeepCopyInto(out *NodeList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeList) DeepCopyObject

func (in *NodeList) DeepCopyObject() runtime.Object

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

func (in *NodeSpec) DeepCopy() *NodeSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSpec.

func (*NodeSpec) DeepCopyInto

func (in *NodeSpec) DeepCopyInto(out *NodeSpec)

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 OfflineReplicaRebuilding added in v1.5.0

type OfflineReplicaRebuilding string

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

func (in *Orphan) DeepCopy() *Orphan

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Orphan.

func (*Orphan) DeepCopyInto

func (in *Orphan) DeepCopyInto(out *Orphan)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Orphan) DeepCopyObject

func (in *Orphan) DeepCopyObject() runtime.Object

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"`
}

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"`
}

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

func (in *Replica) DeepCopy() *Replica

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Replica.

func (*Replica) DeepCopyInto

func (in *Replica) DeepCopyInto(out *Replica)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Replica) DeepCopyObject

func (in *Replica) DeepCopyObject() runtime.Object

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 string `json:"healthyAt"`
	// +optional
	FailedAt string `json:"failedAt"`
	// +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"`
}

Setting is where Longhorn stores setting object.

func (*Setting) DeepCopy

func (in *Setting) DeepCopy() *Setting

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Setting.

func (*Setting) DeepCopyInto

func (in *Setting) DeepCopyInto(out *Setting)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Setting) DeepCopyObject

func (in *Setting) DeepCopyObject() runtime.Object

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 ShareManager

type ShareManager struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ShareManagerSpec   `json:"spec,omitempty"`
	Status ShareManagerStatus `json:"status,omitempty"`
}

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 {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ShareManager `json:"items"`
}

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 {
	// Share manager image used for creating a share manager pod
	// +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 {
	// The node ID on which the controller is responsible to reconcile this share manager resource
	// +optional
	OwnerID string `json:"ownerID"`
	// The state of the share manager resource
	// +optional
	State ShareManagerState `json:"state"`
	// NFS endpoint that can access the mounted filesystem of the volume
	// +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

func (in *Snapshot) DeepCopy() *Snapshot

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Snapshot.

func (*Snapshot) DeepCopyInto

func (in *Snapshot) DeepCopyInto(out *Snapshot)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Snapshot) DeepCopyObject

func (in *Snapshot) DeepCopyObject() runtime.Object

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

func (in *Volume) DeepCopy() *Volume

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Volume.

func (*Volume) DeepCopyInto

func (in *Volume) DeepCopyInto(out *Volume)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Volume) DeepCopyObject

func (in *Volume) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Volume) Hub

func (v *Volume) Hub()

Hub defines the current version (v1beta2) is the storage version so mark this as Hub

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

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

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

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"`
}

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

type VolumeRecurringJob struct {
	Name    string `json:"name"`
	IsGroup bool   `json:"isGroup"`
}

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

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"`
	// OfflineReplicaRebuilding is used to determine if the offline replica rebuilding feature is enabled or not
	// +kubebuilder:validation:Enum=ignored;disabled;enabled
	// +optional
	OfflineReplicaRebuilding OfflineReplicaRebuilding `json:"offlineReplicaRebuilding"`
	// +optional
	SnapshotMaxCount int `json:"snapshotMaxCount"`
	// +kubebuilder:validation:Type=string
	// +optional
	SnapshotMaxSize int64 `json:"snapshotMaxSize,string"`
}

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"`
	// +optional
	ShareEndpoint string `json:"shareEndpoint"`
	// +optional
	ShareState ShareManagerState `json:"shareState"`
	// +optional
	OfflineReplicaRebuildingRequired bool `json:"offlineReplicaRebuildingRequired"`
}

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.

Jump to

Keyboard shortcuts

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