v1beta1

package
v1.6.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 14

Documentation

Overview

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

Index

Constants

View Source
const (
	BackingImageStatePending          = BackingImageState("pending")
	BackingImageStateStarting         = BackingImageState("starting")
	BackingImageStateReadyForTransfer = BackingImageState("ready-for-transfer")
	BackingImageStateReady            = BackingImageState("ready")
	BackingImageStateInProgress       = BackingImageState("in-progress")
	BackingImageStateFailed           = BackingImageState("failed")
	BackingImageStateUnknown          = BackingImageState("unknown")
)
View Source
const (
	BackingImageDataSourceTypeDownload         = BackingImageDataSourceType("download")
	BackingImageDataSourceTypeUpload           = BackingImageDataSourceType("upload")
	BackingImageDataSourceTypeExportFromVolume = BackingImageDataSourceType("export-from-volume")
)
View Source
const (
	BackingImageManagerStateError    = BackingImageManagerState("error")
	BackingImageManagerStateRunning  = BackingImageManagerState("running")
	BackingImageManagerStateStopped  = BackingImageManagerState("stopped")
	BackingImageManagerStateStarting = BackingImageManagerState("starting")
	BackingImageManagerStateUnknown  = BackingImageManagerState("unknown")
)
View Source
const (
	BackupStateNew        = BackupState("")
	BackupStatePending    = BackupState("Pending")
	BackupStateInProgress = BackupState("InProgress")
	BackupStateCompleted  = BackupState("Completed")
	BackupStateError      = BackupState("Error")
	BackupStateUnknown    = BackupState("Unknown")
)
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 = 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 (
	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"
)
View Source
const (
	DiskConditionReasonDiskPressure          = "DiskPressure"
	DiskConditionReasonDiskFilesystemChanged = "DiskFilesystemChanged"
	DiskConditionReasonNoDiskInfo            = "NoDiskInfo"
	DiskConditionReasonDiskNotReady          = "DiskNotReady"
)
View Source
const (
	RecurringJobTypeSnapshot = RecurringJobType("snapshot")
	RecurringJobTypeBackup   = RecurringJobType("backup")

	RecurringJobGroupDefault = "default"
)
View Source
const (
	ShareManagerStateUnknown  = ShareManagerState("unknown")
	ShareManagerStateStarting = ShareManagerState("starting")
	ShareManagerStateRunning  = ShareManagerState("running")
	ShareManagerStateStopping = ShareManagerState("stopping")
	ShareManagerStateStopped  = ShareManagerState("stopped")
	ShareManagerStateError    = ShareManagerState("error")
)
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")
	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")
)
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 (
	VolumeCloneStateEmpty     = VolumeCloneState("")
	VolumeCloneStateInitiated = VolumeCloneState("initiated")
	VolumeCloneStateCompleted = VolumeCloneState("completed")
	VolumeCloneStateFailed    = VolumeCloneState("failed")
)
View Source
const (
	VolumeConditionTypeScheduled        = "scheduled"
	VolumeConditionTypeRestore          = "restore"
	VolumeConditionTypeTooManySnapshots = "toomanysnapshots"
)
View Source
const (
	VolumeConditionReasonReplicaSchedulingFailure      = "ReplicaSchedulingFailure"
	VolumeConditionReasonLocalReplicaSchedulingFailure = "LocalReplicaSchedulingFailure"
	VolumeConditionReasonRestoreInProgress             = "RestoreInProgress"
	VolumeConditionReasonRestoreFailure                = "RestoreFailure"
	VolumeConditionReasonTooManySnapshots              = "TooManySnapshots"
)
View Source
const (
	DataSourceTypeDownloadParameterURL = "url"
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: longhorn.GroupName, Version: "v1beta1"}

Functions

func Resource

func Resource(resource string) schema.GroupResource

Types

type AccessMode added in v1.2.3

type AccessMode string

type BackingImage added in v1.1.1

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

	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Spec BackingImageSpec `json:"spec,omitempty"`
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Status BackingImageStatus `json:"status,omitempty"`
}

BackingImage is where Longhorn stores backing image object.

func (*BackingImage) ConvertFrom added in v1.3.0

func (bi *BackingImage) ConvertFrom(src conversion.Hub) error

ConvertFrom converts from hub version (v1beta2) to spoke version (v1beta1)

func (*BackingImage) ConvertTo added in v1.3.0

func (bi *BackingImage) ConvertTo(dst conversion.Hub) error

ConvertTo converts from spoke version (v1beta1) to hub version (v1beta2)

func (*BackingImage) DeepCopy added in v1.1.1

func (in *BackingImage) DeepCopy() *BackingImage

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

func (*BackingImage) DeepCopyInto added in v1.1.1

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

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

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

type BackingImageDataSource added in v1.2.0

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

	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Spec BackingImageDataSourceSpec `json:"spec,omitempty"`
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Status BackingImageDataSourceStatus `json:"status,omitempty"`
}

BackingImageDataSource is where Longhorn stores backing image data source object.

func (*BackingImageDataSource) DeepCopy added in v1.2.0

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

func (*BackingImageDataSource) DeepCopyInto added in v1.2.0

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

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

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

type BackingImageDataSourceList added in v1.2.0

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

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

func (*BackingImageDataSourceList) DeepCopyInto added in v1.2.0

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

func (*BackingImageDataSourceList) DeepCopyObject added in v1.2.0

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

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

type BackingImageDataSourceSpec added in v1.2.3

type BackingImageDataSourceSpec struct {
	NodeID          string                     `json:"nodeID"`
	DiskUUID        string                     `json:"diskUUID"`
	DiskPath        string                     `json:"diskPath"`
	Checksum        string                     `json:"checksum"`
	SourceType      BackingImageDataSourceType `json:"sourceType"`
	Parameters      map[string]string          `json:"parameters"`
	FileTransferred bool                       `json:"fileTransferred"`
}

BackingImageDataSourceSpec defines the desired state of the Longhorn backing image data source

func (*BackingImageDataSourceSpec) DeepCopy added in v1.2.3

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

func (*BackingImageDataSourceSpec) DeepCopyInto added in v1.2.3

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

type BackingImageDataSourceStatus added in v1.2.3

type BackingImageDataSourceStatus struct {
	OwnerID           string            `json:"ownerID"`
	RunningParameters map[string]string `json:"runningParameters"`
	CurrentState      BackingImageState `json:"currentState"`
	Size              int64             `json:"size"`
	Progress          int               `json:"progress"`
	Checksum          string            `json:"checksum"`
	Message           string            `json:"message"`
}

BackingImageDataSourceStatus defines the observed state of the Longhorn backing image data source

func (*BackingImageDataSourceStatus) DeepCopy added in v1.2.3

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

func (*BackingImageDataSourceStatus) DeepCopyInto added in v1.2.3

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

type BackingImageDataSourceType added in v1.2.3

type BackingImageDataSourceType string

type BackingImageDiskFileStatus added in v1.2.3

type BackingImageDiskFileStatus struct {
	State                   BackingImageState `json:"state"`
	Progress                int               `json:"progress"`
	Message                 string            `json:"message"`
	LastStateTransitionTime string            `json:"lastStateTransitionTime"`
}

func (*BackingImageDiskFileStatus) DeepCopy added in v1.2.3

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

func (*BackingImageDiskFileStatus) DeepCopyInto added in v1.2.3

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

type BackingImageDownloadState added in v1.2.3

type BackingImageDownloadState string

BackingImageDownloadState is replaced by BackingImageState.

type BackingImageFileInfo added in v1.2.3

type BackingImageFileInfo struct {
	Name                 string            `json:"name"`
	UUID                 string            `json:"uuid"`
	Size                 int64             `json:"size"`
	State                BackingImageState `json:"state"`
	CurrentChecksum      string            `json:"currentChecksum"`
	Message              string            `json:"message"`
	SendingReference     int               `json:"sendingReference"`
	SenderManagerAddress string            `json:"senderManagerAddress"`
	Progress             int               `json:"progress"`

	// Deprecated: This field is useless now. The manager of backing image files doesn't care if a file is downloaded and how.
	URL string `json:"url"`
	// Deprecated: This field is useless.
	Directory string `json:"directory"`
	// Deprecated: This field is renamed to `Progress`.
	DownloadProgress int `json:"downloadProgress"`
}

func (*BackingImageFileInfo) DeepCopy added in v1.2.3

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

func (*BackingImageFileInfo) DeepCopyInto added in v1.2.3

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

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

func (in *BackingImageList) DeepCopy() *BackingImageList

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

func (*BackingImageList) DeepCopyInto added in v1.1.1

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

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

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

type BackingImageManager added in v1.1.1

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

	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Spec BackingImageManagerSpec `json:"spec,omitempty"`
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Status BackingImageManagerStatus `json:"status,omitempty"`
}

BackingImageManager is where Longhorn stores backing image manager object.

func (*BackingImageManager) DeepCopy added in v1.1.1

func (in *BackingImageManager) DeepCopy() *BackingImageManager

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

func (*BackingImageManager) DeepCopyInto added in v1.1.1

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

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

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

type BackingImageManagerList added in v1.1.1

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

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

func (*BackingImageManagerList) DeepCopyInto added in v1.1.1

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

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

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

type BackingImageManagerSpec added in v1.2.3

type BackingImageManagerSpec struct {
	Image         string            `json:"image"`
	NodeID        string            `json:"nodeID"`
	DiskUUID      string            `json:"diskUUID"`
	DiskPath      string            `json:"diskPath"`
	BackingImages map[string]string `json:"backingImages"`
}

BackingImageManagerSpec defines the desired state of the Longhorn backing image manager

func (*BackingImageManagerSpec) DeepCopy added in v1.2.3

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

func (*BackingImageManagerSpec) DeepCopyInto added in v1.2.3

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

type BackingImageManagerState string

type BackingImageManagerStatus added in v1.2.3

type BackingImageManagerStatus struct {
	OwnerID             string                          `json:"ownerID"`
	CurrentState        BackingImageManagerState        `json:"currentState"`
	BackingImageFileMap map[string]BackingImageFileInfo `json:"backingImageFileMap"`
	IP                  string                          `json:"ip"`
	APIMinVersion       int                             `json:"apiMinVersion"`
	APIVersion          int                             `json:"apiVersion"`
}

BackingImageManagerStatus defines the observed state of the Longhorn backing image manager

func (*BackingImageManagerStatus) DeepCopy added in v1.2.3

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

func (*BackingImageManagerStatus) DeepCopyInto added in v1.2.3

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

type BackingImageSpec added in v1.2.3

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

	// Deprecated: This kind of info will be included in the related BackingImageDataSource.
	ImageURL string `json:"imageURL"`
}

BackingImageSpec defines the desired state of the Longhorn backing image

func (*BackingImageSpec) DeepCopy added in v1.2.3

func (in *BackingImageSpec) DeepCopy() *BackingImageSpec

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

func (*BackingImageSpec) DeepCopyInto added in v1.2.3

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

type BackingImageState string

type BackingImageStatus added in v1.2.3

type BackingImageStatus struct {
	OwnerID           string                                 `json:"ownerID"`
	UUID              string                                 `json:"uuid"`
	Size              int64                                  `json:"size"`
	Checksum          string                                 `json:"checksum"`
	DiskFileStatusMap map[string]*BackingImageDiskFileStatus `json:"diskFileStatusMap"`
	DiskLastRefAtMap  map[string]string                      `json:"diskLastRefAtMap"`

	// Deprecated: Replaced by field `State` in `DiskFileStatusMap`.
	DiskDownloadStateMap map[string]BackingImageDownloadState `json:"diskDownloadStateMap"`
	// Deprecated: Replaced by field `Progress` in `DiskFileStatusMap`.
	DiskDownloadProgressMap map[string]int `json:"diskDownloadProgressMap"`
}

BackingImageStatus defines the observed state of the Longhorn backing image status

func (*BackingImageStatus) DeepCopy added in v1.2.3

func (in *BackingImageStatus) DeepCopy() *BackingImageStatus

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

func (*BackingImageStatus) DeepCopyInto added in v1.2.3

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

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

	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Spec BackupSpec `json:"spec,omitempty"`
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Status BackupStatus `json:"status,omitempty"`
}

Backup is where Longhorn stores backup object.

func (*Backup) DeepCopy added in v1.2.0

func (in *Backup) DeepCopy() *Backup

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

func (*Backup) DeepCopyInto added in v1.2.0

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

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

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

type BackupList added in v1.2.0

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

func (in *BackupList) DeepCopy() *BackupList

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

func (*BackupList) DeepCopyInto added in v1.2.0

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

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

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

type BackupSpec added in v1.2.3

type BackupSpec struct {
	// The time to request run sync the remote backup.
	SyncRequestedAt metav1.Time `json:"syncRequestedAt"`
	// The snapshot name.
	SnapshotName string `json:"snapshotName"`
	// The labels of snapshot backup.
	Labels map[string]string `json:"labels"`
}

BackupSpec defines the desired state of the Longhorn backup

func (*BackupSpec) DeepCopy added in v1.2.3

func (in *BackupSpec) DeepCopy() *BackupSpec

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

func (*BackupSpec) DeepCopyInto added in v1.2.3

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

type BackupState string

type BackupStatus added in v1.2.3

type BackupStatus struct {
	// The node ID on which the controller is responsible to reconcile this backup CR.
	OwnerID string `json:"ownerID"`
	// The backup creation state.
	// Can be "", "InProgress", "Completed", "Error", "Unknown".
	State BackupState `json:"state"`
	// The snapshot backup progress.
	Progress int `json:"progress"`
	// The address of the replica that runs snapshot backup.
	ReplicaAddress string `json:"replicaAddress"`
	// The error message when taking the snapshot backup.
	Error string `json:"error,omitempty"`
	// The snapshot backup URL.
	URL string `json:"url"`
	// The snapshot name.
	SnapshotName string `json:"snapshotName"`
	// The snapshot creation time.
	SnapshotCreatedAt string `json:"snapshotCreatedAt"`
	// The snapshot backup upload finished time.
	BackupCreatedAt string `json:"backupCreatedAt"`
	// The snapshot size.
	Size string `json:"size"`
	// The labels of snapshot backup.
	Labels map[string]string `json:"labels"`
	// The error messages when calling longhorn engine on listing or inspecting backups.
	Messages map[string]string `json:"messages"`
	// The volume name.
	VolumeName string `json:"volumeName"`
	// The volume size.
	VolumeSize string `json:"volumeSize"`
	// The volume creation time.
	VolumeCreated string `json:"volumeCreated"`
	// The volume's backing image name.
	VolumeBackingImageName string `json:"volumeBackingImageName"`
	// The last time that the backup was synced with the remote backup target.
	LastSyncedAt metav1.Time `json:"lastSyncedAt"`
}

BackupStatus defines the observed state of the Longhorn backup

func (*BackupStatus) DeepCopy added in v1.2.3

func (in *BackupStatus) DeepCopy() *BackupStatus

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

func (*BackupStatus) DeepCopyInto added in v1.2.3

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

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

	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Spec BackupTargetSpec `json:"spec,omitempty"`
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Status BackupTargetStatus `json:"status,omitempty"`
}

BackupTarget is where Longhorn stores backup target object.

func (*BackupTarget) ConvertFrom added in v1.3.0

func (bt *BackupTarget) ConvertFrom(src conversion.Hub) error

ConvertFrom converts from hub version (v1beta2) to spoke version (v1beta1)

func (*BackupTarget) ConvertTo added in v1.3.0

func (bt *BackupTarget) ConvertTo(dst conversion.Hub) error

ConvertTo converts from spoke version (v1beta1) to hub version (v1beta2)

func (*BackupTarget) DeepCopy added in v1.2.0

func (in *BackupTarget) DeepCopy() *BackupTarget

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

func (*BackupTarget) DeepCopyInto added in v1.2.0

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

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

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

type BackupTargetList added in v1.2.0

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

func (in *BackupTargetList) DeepCopy() *BackupTargetList

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

func (*BackupTargetList) DeepCopyInto added in v1.2.0

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

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

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

type BackupTargetSpec added in v1.2.3

type BackupTargetSpec struct {
	// The backup target URL.
	BackupTargetURL string `json:"backupTargetURL"`
	// The backup target credential secret.
	CredentialSecret string `json:"credentialSecret"`
	// The interval that the cluster needs to run sync with the backup target.
	PollInterval metav1.Duration `json:"pollInterval"`
	// The time to request run sync the remote backup target.
	SyncRequestedAt metav1.Time `json:"syncRequestedAt"`
}

BackupTargetSpec defines the desired state of the Longhorn backup target

func (*BackupTargetSpec) DeepCopy added in v1.2.3

func (in *BackupTargetSpec) DeepCopy() *BackupTargetSpec

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

func (*BackupTargetSpec) DeepCopyInto added in v1.2.3

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

type BackupTargetStatus struct {
	// The node ID on which the controller is responsible to reconcile this backup target CR.
	OwnerID string `json:"ownerID"`
	// Available indicates if the remote backup target is available or not.
	Available bool `json:"available"`
	// Records the reason on why the backup target is unavailable.
	Conditions map[string]Condition `json:"conditions"`
	// The last time that the controller synced with the remote backup target.
	LastSyncedAt metav1.Time `json:"lastSyncedAt"`
}

BackupTargetStatus defines the observed state of the Longhorn backup target

func (*BackupTargetStatus) DeepCopy added in v1.2.3

func (in *BackupTargetStatus) DeepCopy() *BackupTargetStatus

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

func (*BackupTargetStatus) DeepCopyInto added in v1.2.3

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

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

	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Spec BackupVolumeSpec `json:"spec,omitempty"`
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Status BackupVolumeStatus `json:"status,omitempty"`
}

BackupVolume is where Longhorn stores backup volume object.

func (*BackupVolume) DeepCopy added in v1.2.0

func (in *BackupVolume) DeepCopy() *BackupVolume

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

func (*BackupVolume) DeepCopyInto added in v1.2.0

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

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

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

type BackupVolumeList added in v1.2.0

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

func (in *BackupVolumeList) DeepCopy() *BackupVolumeList

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

func (*BackupVolumeList) DeepCopyInto added in v1.2.0

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

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

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

type BackupVolumeSpec added in v1.2.3

type BackupVolumeSpec struct {
	// The time to request run sync the remote backup volume.
	SyncRequestedAt metav1.Time `json:"syncRequestedAt"`
}

BackupVolumeSpec defines the desired state of the Longhorn backup volume

func (*BackupVolumeSpec) DeepCopy added in v1.2.3

func (in *BackupVolumeSpec) DeepCopy() *BackupVolumeSpec

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

func (*BackupVolumeSpec) DeepCopyInto added in v1.2.3

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

type BackupVolumeStatus struct {
	// The node ID on which the controller is responsible to reconcile this backup volume CR.
	OwnerID string `json:"ownerID"`
	// The backup volume config last modification time.
	LastModificationTime metav1.Time `json:"lastModificationTime"`
	// The backup volume size.
	Size string `json:"size"`
	// The backup volume labels.
	Labels map[string]string `json:"labels"`
	// The backup volume creation time.
	CreatedAt string `json:"createdAt"`
	// The latest volume backup name.
	LastBackupName string `json:"lastBackupName"`
	// The latest volume backup time.
	LastBackupAt string `json:"lastBackupAt"`
	// The backup volume block count.
	DataStored string `json:"dataStored"`
	// The error messages when call longhorn engine on list or inspect backup volumes.
	Messages map[string]string `json:"messages"`
	// The backing image name.
	BackingImageName string `json:"backingImageName"`
	// the backing image checksum.
	BackingImageChecksum string `json:"backingImageChecksum"`
	// The last time that the backup volume was synced into the cluster.
	LastSyncedAt metav1.Time `json:"lastSyncedAt"`
}

BackupVolumeStatus defines the observed state of the Longhorn backup volume

func (*BackupVolumeStatus) DeepCopy added in v1.2.3

func (in *BackupVolumeStatus) DeepCopy() *BackupVolumeStatus

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

func (*BackupVolumeStatus) DeepCopyInto added in v1.2.3

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

type Condition struct {
	// Type is the type of the condition.
	Type string `json:"type"`
	// Status is the status of the condition.
	// Can be True, False, Unknown.
	Status ConditionStatus `json:"status"`
	// Last time we probed the condition.
	LastProbeTime string `json:"lastProbeTime"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime string `json:"lastTransitionTime"`
	// Unique, one-word, CamelCase reason for the condition's last transition.
	Reason string `json:"reason"`
	// Human-readable message indicating details about last transition.
	Message string `json:"message"`
}

func (*Condition) DeepCopy added in v1.2.3

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto added in v1.2.3

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

type ConditionStatus string
const (
	ConditionStatusTrue    ConditionStatus = "True"
	ConditionStatusFalse   ConditionStatus = "False"
	ConditionStatusUnknown ConditionStatus = "Unknown"
)

type DataLocality added in v1.2.3

type DataLocality string

type DiskSpec added in v1.2.3

type DiskSpec struct {
	Path              string   `json:"path"`
	AllowScheduling   bool     `json:"allowScheduling"`
	EvictionRequested bool     `json:"evictionRequested"`
	StorageReserved   int64    `json:"storageReserved"`
	Tags              []string `json:"tags"`
}

func (*DiskSpec) DeepCopy added in v1.2.3

func (in *DiskSpec) DeepCopy() *DiskSpec

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

func (*DiskSpec) DeepCopyInto added in v1.2.3

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

type DiskStatus struct {
	Conditions       map[string]Condition `json:"conditions"`
	StorageAvailable int64                `json:"storageAvailable"`
	StorageScheduled int64                `json:"storageScheduled"`
	StorageMaximum   int64                `json:"storageMaximum"`
	ScheduledReplica map[string]int64     `json:"scheduledReplica"`
	DiskUUID         string               `json:"diskUUID"`
}

func (*DiskStatus) DeepCopy added in v1.2.3

func (in *DiskStatus) DeepCopy() *DiskStatus

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

func (*DiskStatus) DeepCopyInto added in v1.2.3

func (in *DiskStatus) DeepCopyInto(out *DiskStatus)

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

type Engine

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

	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Spec EngineSpec `json:"spec,omitempty"`
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	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 added in v1.2.3

type EngineBackupStatus struct {
	Progress       int    `json:"progress"`
	BackupURL      string `json:"backupURL,omitempty"`
	Error          string `json:"error,omitempty"`
	SnapshotName   string `json:"snapshotName"`
	State          string `json:"state"`
	ReplicaAddress string `json:"replicaAddress"`
}

func (*EngineBackupStatus) DeepCopy added in v1.2.3

func (in *EngineBackupStatus) DeepCopy() *EngineBackupStatus

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

func (*EngineBackupStatus) DeepCopyInto added in v1.2.3

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

	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Spec EngineImageSpec `json:"spec,omitempty"`
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Status EngineImageStatus `json:"status,omitempty"`
}

EngineImage is where Longhorn stores engine image object.

func (*EngineImage) ConvertFrom added in v1.3.0

func (ei *EngineImage) ConvertFrom(src conversion.Hub) error

ConvertFrom converts from hub version (v1beta2) to spoke version (v1beta1)

func (*EngineImage) ConvertTo added in v1.3.0

func (ei *EngineImage) ConvertTo(dst conversion.Hub) error

ConvertTo converts from spoke version (v1beta1) to hub version (v1beta2)

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.

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

type EngineImageSpec struct {
	Image string `json:"image"`
}

EngineImageSpec defines the desired state of the Longhorn engine image

func (*EngineImageSpec) DeepCopy added in v1.2.3

func (in *EngineImageSpec) DeepCopy() *EngineImageSpec

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

func (*EngineImageSpec) DeepCopyInto added in v1.2.3

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

type EngineImageState string

type EngineImageStatus added in v1.2.3

type EngineImageStatus struct {
	OwnerID           string               `json:"ownerID"`
	State             EngineImageState     `json:"state"`
	RefCount          int                  `json:"refCount"`
	NoRefSince        string               `json:"noRefSince"`
	Conditions        map[string]Condition `json:"conditions"`
	NodeDeploymentMap map[string]bool      `json:"nodeDeploymentMap"`

	EngineVersionDetails `json:""`
}

EngineImageStatus defines the observed state of the Longhorn engine image

func (*EngineImageStatus) DeepCopy added in v1.2.3

func (in *EngineImageStatus) DeepCopy() *EngineImageStatus

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

func (*EngineImageStatus) DeepCopyInto added in v1.2.3

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

type EngineSpec struct {
	InstanceSpec              `json:""`
	Frontend                  VolumeFrontend    `json:"frontend"`
	ReplicaAddressMap         map[string]string `json:"replicaAddressMap"`
	UpgradedReplicaAddressMap map[string]string `json:"upgradedReplicaAddressMap"`
	BackupVolume              string            `json:"backupVolume"`
	RequestedBackupRestore    string            `json:"requestedBackupRestore"`
	RequestedDataSource       VolumeDataSource  `json:"requestedDataSource"`
	DisableFrontend           bool              `json:"disableFrontend"`
	RevisionCounterDisabled   bool              `json:"revisionCounterDisabled"`
	Active                    bool              `json:"active"`
}

EngineSpec defines the desired state of the Longhorn engine

func (*EngineSpec) DeepCopy added in v1.2.3

func (in *EngineSpec) DeepCopy() *EngineSpec

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

func (*EngineSpec) DeepCopyInto added in v1.2.3

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

type EngineStatus struct {
	InstanceStatus           `json:""`
	CurrentSize              int64                           `json:"currentSize,string"`
	CurrentReplicaAddressMap map[string]string               `json:"currentReplicaAddressMap"`
	ReplicaModeMap           map[string]ReplicaMode          `json:"replicaModeMap"`
	Endpoint                 string                          `json:"endpoint"`
	LastRestoredBackup       string                          `json:"lastRestoredBackup"`
	BackupStatus             map[string]*EngineBackupStatus  `json:"backupStatus"`
	RestoreStatus            map[string]*RestoreStatus       `json:"restoreStatus"`
	PurgeStatus              map[string]*PurgeStatus         `json:"purgeStatus"`
	RebuildStatus            map[string]*RebuildStatus       `json:"rebuildStatus"`
	CloneStatus              map[string]*SnapshotCloneStatus `json:"cloneStatus"`
	Snapshots                map[string]*SnapshotInfo        `json:"snapshots"`
	SnapshotsError           string                          `json:"snapshotsError"`
	IsExpanding              bool                            `json:"isExpanding"`
	LastExpansionError       string                          `json:"lastExpansionError"`
	LastExpansionFailedAt    string                          `json:"lastExpansionFailedAt"`
}

EngineStatus defines the observed state of the Longhorn engine

func (*EngineStatus) DeepCopy added in v1.2.3

func (in *EngineStatus) DeepCopy() *EngineStatus

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

func (*EngineStatus) DeepCopyInto added in v1.2.3

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

type EngineVersionDetails struct {
	Version   string `json:"version"`
	GitCommit string `json:"gitCommit"`
	BuildDate string `json:"buildDate"`

	CLIAPIVersion           int `json:"cliAPIVersion"`
	CLIAPIMinVersion        int `json:"cliAPIMinVersion"`
	ControllerAPIVersion    int `json:"controllerAPIVersion"`
	ControllerAPIMinVersion int `json:"controllerAPIMinVersion"`
	DataFormatVersion       int `json:"dataFormatVersion"`
	DataFormatMinVersion    int `json:"dataFormatMinVersion"`
}

func (*EngineVersionDetails) DeepCopy added in v1.2.3

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

func (*EngineVersionDetails) DeepCopyInto added in v1.2.3

func (in *EngineVersionDetails) DeepCopyInto(out *EngineVersionDetails)

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

	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Spec InstanceManagerSpec `json:"spec,omitempty"`
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	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 added in v1.2.3

type InstanceManagerSpec struct {
	Image  string              `json:"image"`
	NodeID string              `json:"nodeID"`
	Type   InstanceManagerType `json:"type"`

	// Deprecated: This field is useless.
	// +optional
	EngineImage string `json:"engineImage"`
}

InstanceManagerSpec defines the desired state of the Longhorn instance manager

func (*InstanceManagerSpec) DeepCopy added in v1.2.3

func (in *InstanceManagerSpec) DeepCopy() *InstanceManagerSpec

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

func (*InstanceManagerSpec) DeepCopyInto added in v1.2.3

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

type InstanceManagerState string

type InstanceManagerStatus added in v1.2.3

type InstanceManagerStatus struct {
	OwnerID       string                     `json:"ownerID"`
	CurrentState  InstanceManagerState       `json:"currentState"`
	Instances     map[string]InstanceProcess `json:"instances"`
	IP            string                     `json:"ip"`
	APIMinVersion int                        `json:"apiMinVersion"`
	APIVersion    int                        `json:"apiVersion"`
}

InstanceManagerStatus defines the observed state of the Longhorn instance manager

func (*InstanceManagerStatus) DeepCopy added in v1.2.3

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

func (*InstanceManagerStatus) DeepCopyInto added in v1.2.3

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

type InstanceManagerType string

type InstanceProcess added in v1.2.3

type InstanceProcess struct {
	Spec   InstanceProcessSpec   `json:"spec"`
	Status InstanceProcessStatus `json:"status"`
}

func (*InstanceProcess) DeepCopy added in v1.2.3

func (in *InstanceProcess) DeepCopy() *InstanceProcess

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

func (*InstanceProcess) DeepCopyInto added in v1.2.3

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

type InstanceProcessSpec struct {
	Name string `json:"name"`
}

func (*InstanceProcessSpec) DeepCopy added in v1.2.3

func (in *InstanceProcessSpec) DeepCopy() *InstanceProcessSpec

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

func (*InstanceProcessSpec) DeepCopyInto added in v1.2.3

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

type InstanceProcessStatus struct {
	Endpoint        string        `json:"endpoint"`
	ErrorMsg        string        `json:"errorMsg"`
	Listen          string        `json:"listen"`
	PortEnd         int32         `json:"portEnd"`
	PortStart       int32         `json:"portStart"`
	State           InstanceState `json:"state"`
	Type            InstanceType  `json:"type"`
	ResourceVersion int64         `json:"resourceVersion"`
}

func (*InstanceProcessStatus) DeepCopy added in v1.2.3

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

func (*InstanceProcessStatus) DeepCopyInto added in v1.2.3

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

type InstanceSpec struct {
	VolumeName       string        `json:"volumeName"`
	VolumeSize       int64         `json:"volumeSize,string"`
	NodeID           string        `json:"nodeID"`
	EngineImage      string        `json:"engineImage"`
	DesireState      InstanceState `json:"desireState"`
	LogRequested     bool          `json:"logRequested"`
	SalvageRequested bool          `json:"salvageRequested"`
}

func (*InstanceSpec) DeepCopy added in v1.2.3

func (in *InstanceSpec) DeepCopy() *InstanceSpec

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

func (*InstanceSpec) DeepCopyInto added in v1.2.3

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

type InstanceState string

type InstanceStatus added in v1.2.3

type InstanceStatus struct {
	OwnerID             string        `json:"ownerID"`
	InstanceManagerName string        `json:"instanceManagerName"`
	CurrentState        InstanceState `json:"currentState"`
	CurrentImage        string        `json:"currentImage"`
	IP                  string        `json:"ip"`
	Port                int           `json:"port"`
	Started             bool          `json:"started"`
	LogFetched          bool          `json:"logFetched"`
	SalvageExecuted     bool          `json:"salvageExecuted"`
}

func (*InstanceStatus) DeepCopy added in v1.2.3

func (in *InstanceStatus) DeepCopy() *InstanceStatus

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

func (*InstanceStatus) DeepCopyInto added in v1.2.3

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

type InstanceType string

type KubernetesStatus added in v1.2.3

type KubernetesStatus struct {
	PVName   string `json:"pvName"`
	PVStatus string `json:"pvStatus"`

	// determine if PVC/Namespace is history or not
	Namespace    string `json:"namespace"`
	PVCName      string `json:"pvcName"`
	LastPVCRefAt string `json:"lastPVCRefAt"`

	// determine if Pod/Workload is history or not
	WorkloadsStatus []WorkloadStatus `json:"workloadsStatus"`
	LastPodRefAt    string           `json:"lastPodRefAt"`
}

func (*KubernetesStatus) DeepCopy added in v1.2.3

func (in *KubernetesStatus) DeepCopy() *KubernetesStatus

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

func (*KubernetesStatus) DeepCopyInto added in v1.2.3

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

	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Spec NodeSpec `json:"spec,omitempty"`
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Status NodeStatus `json:"status,omitempty"`
}

Node is where Longhorn stores Longhorn node object.

func (*Node) ConvertFrom added in v1.3.0

func (n *Node) ConvertFrom(src conversion.Hub) error

ConvertFrom converts from hub version (v1beta2) to spoke version (v1beta1)

func (*Node) ConvertTo added in v1.3.0

func (n *Node) ConvertTo(dst conversion.Hub) error

ConvertTo converts from spoke version (v1beta1) to hub version (v1beta2)

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.

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

type NodeSpec struct {
	Name                     string              `json:"name"`
	Disks                    map[string]DiskSpec `json:"disks"`
	AllowScheduling          bool                `json:"allowScheduling"`
	EvictionRequested        bool                `json:"evictionRequested"`
	Tags                     []string            `json:"tags"`
	EngineManagerCPURequest  int                 `json:"engineManagerCPURequest"`
	ReplicaManagerCPURequest int                 `json:"replicaManagerCPURequest"`
}

NodeSpec defines the desired state of the Longhorn node

func (*NodeSpec) DeepCopy added in v1.2.3

func (in *NodeSpec) DeepCopy() *NodeSpec

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

func (*NodeSpec) DeepCopyInto added in v1.2.3

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

type NodeStatus struct {
	Conditions map[string]Condition   `json:"conditions"`
	DiskStatus map[string]*DiskStatus `json:"diskStatus"`
	Region     string                 `json:"region"`
	Zone       string                 `json:"zone"`
}

NodeStatus defines the observed state of the Longhorn node

func (*NodeStatus) DeepCopy added in v1.2.3

func (in *NodeStatus) DeepCopy() *NodeStatus

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

func (*NodeStatus) DeepCopyInto added in v1.2.3

func (in *NodeStatus) DeepCopyInto(out *NodeStatus)

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

type PurgeStatus added in v1.2.3

type PurgeStatus struct {
	Error     string `json:"error"`
	IsPurging bool   `json:"isPurging"`
	Progress  int    `json:"progress"`
	State     string `json:"state"`
}

func (*PurgeStatus) DeepCopy added in v1.2.3

func (in *PurgeStatus) DeepCopy() *PurgeStatus

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

func (*PurgeStatus) DeepCopyInto added in v1.2.3

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

type RebuildStatus struct {
	Error              string `json:"error"`
	IsRebuilding       bool   `json:"isRebuilding"`
	Progress           int    `json:"progress"`
	State              string `json:"state"`
	FromReplicaAddress string `json:"fromReplicaAddress"`
}

func (*RebuildStatus) DeepCopy added in v1.2.3

func (in *RebuildStatus) DeepCopy() *RebuildStatus

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

func (*RebuildStatus) DeepCopyInto added in v1.2.3

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

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

	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Spec RecurringJobSpec `json:"spec,omitempty"`
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Status RecurringJobStatus `json:"status,omitempty"`
}

RecurringJob is where Longhorn stores recurring job object.

func (*RecurringJob) DeepCopy added in v1.2.0

func (in *RecurringJob) DeepCopy() *RecurringJob

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

func (*RecurringJob) DeepCopyInto added in v1.2.0

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

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

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

type RecurringJobList added in v1.2.0

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

func (in *RecurringJobList) DeepCopy() *RecurringJobList

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

func (*RecurringJobList) DeepCopyInto added in v1.2.0

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

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

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

type RecurringJobSpec added in v1.2.3

type RecurringJobSpec struct {
	// The recurring job name.
	Name string `json:"name"`
	// The recurring job group.
	Groups []string `json:"groups,omitempty"`
	// The recurring job type.
	// Can be "snapshot" or "backup".
	Task RecurringJobType `json:"task"`
	// The cron setting.
	Cron string `json:"cron"`
	// The retain count of the snapshot/backup.
	Retain int `json:"retain"`
	// The concurrency of taking the snapshot/backup.
	Concurrency int `json:"concurrency"`
	// The label of the snapshot/backup.
	Labels map[string]string `json:"labels,omitempty"`
}

RecurringJobSpec defines the desired state of the Longhorn recurring job

func (*RecurringJobSpec) DeepCopy added in v1.2.3

func (in *RecurringJobSpec) DeepCopy() *RecurringJobSpec

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

func (*RecurringJobSpec) DeepCopyInto added in v1.2.3

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

type RecurringJobStatus struct {
	// The owner ID which is responsible to reconcile this recurring job CR.
	OwnerID string `json:"ownerID"`
}

RecurringJobStatus defines the observed state of the Longhorn recurring job

func (*RecurringJobStatus) DeepCopy added in v1.2.3

func (in *RecurringJobStatus) DeepCopy() *RecurringJobStatus

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

func (*RecurringJobStatus) DeepCopyInto added in v1.2.3

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

type RecurringJobType string

type Replica

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

	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Spec ReplicaSpec `json:"spec,omitempty"`
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	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 added in v1.2.3

type ReplicaAutoBalance string

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

type ReplicaMode string

type ReplicaSpec added in v1.2.3

type ReplicaSpec struct {
	InstanceSpec            `json:""`
	EngineName              string `json:"engineName"`
	HealthyAt               string `json:"healthyAt"`
	FailedAt                string `json:"failedAt"`
	DiskID                  string `json:"diskID"`
	DiskPath                string `json:"diskPath"`
	DataDirectoryName       string `json:"dataDirectoryName"`
	BackingImage            string `json:"backingImage"`
	Active                  bool   `json:"active"`
	HardNodeAffinity        string `json:"hardNodeAffinity"`
	RevisionCounterDisabled bool   `json:"revisionCounterDisabled"`

	RebuildRetryCount int `json:"rebuildRetryCount"`
	// Deprecated
	DataPath string `json:"dataPath"`
	// Deprecated. Rename to BackingImage
	BaseImage string `json:"baseImage"`
}

ReplicaSpec defines the desired state of the Longhorn replica

func (*ReplicaSpec) DeepCopy added in v1.2.3

func (in *ReplicaSpec) DeepCopy() *ReplicaSpec

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

func (*ReplicaSpec) DeepCopyInto added in v1.2.3

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

type ReplicaStatus struct {
	InstanceStatus    `json:""`
	EvictionRequested bool `json:"evictionRequested"`
}

ReplicaStatus defines the observed state of the Longhorn replica

func (*ReplicaStatus) DeepCopy added in v1.2.3

func (in *ReplicaStatus) DeepCopy() *ReplicaStatus

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

func (*ReplicaStatus) DeepCopyInto added in v1.2.3

func (in *ReplicaStatus) DeepCopyInto(out *ReplicaStatus)

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

type RestoreStatus added in v1.2.3

type RestoreStatus struct {
	IsRestoring            bool   `json:"isRestoring"`
	LastRestored           string `json:"lastRestored"`
	CurrentRestoringBackup string `json:"currentRestoringBackup"`
	Progress               int    `json:"progress,omitempty"`
	Error                  string `json:"error,omitempty"`
	Filename               string `json:"filename,omitempty"`
	State                  string `json:"state"`
	BackupURL              string `json:"backupURL"`
}

func (*RestoreStatus) DeepCopy added in v1.2.3

func (in *RestoreStatus) DeepCopy() *RestoreStatus

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

func (*RestoreStatus) DeepCopyInto added in v1.2.3

func (in *RestoreStatus) DeepCopyInto(out *RestoreStatus)

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

type Setting

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

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

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

	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Spec ShareManagerSpec `json:"spec,omitempty"`
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Status ShareManagerStatus `json:"status,omitempty"`
}

ShareManager is where Longhorn stores share manager object.

func (*ShareManager) DeepCopy added in v1.1.0

func (in *ShareManager) DeepCopy() *ShareManager

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

func (*ShareManager) DeepCopyInto added in v1.1.0

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

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

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

type ShareManagerList added in v1.1.0

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

func (in *ShareManagerList) DeepCopy() *ShareManagerList

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

func (*ShareManagerList) DeepCopyInto added in v1.1.0

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

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

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

type ShareManagerSpec added in v1.2.3

type ShareManagerSpec struct {
	Image string `json:"image"`
}

ShareManagerSpec defines the desired state of the Longhorn share manager

func (*ShareManagerSpec) DeepCopy added in v1.2.3

func (in *ShareManagerSpec) DeepCopy() *ShareManagerSpec

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

func (*ShareManagerSpec) DeepCopyInto added in v1.2.3

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

type ShareManagerState string

type ShareManagerStatus added in v1.2.3

type ShareManagerStatus struct {
	OwnerID  string            `json:"ownerID"`
	State    ShareManagerState `json:"state"`
	Endpoint string            `json:"endpoint"`
}

ShareManagerStatus defines the observed state of the Longhorn share manager

func (*ShareManagerStatus) DeepCopy added in v1.2.3

func (in *ShareManagerStatus) DeepCopy() *ShareManagerStatus

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

func (*ShareManagerStatus) DeepCopyInto added in v1.2.3

func (in *ShareManagerStatus) DeepCopyInto(out *ShareManagerStatus)

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

type SnapshotCloneStatus added in v1.2.3

type SnapshotCloneStatus struct {
	IsCloning          bool   `json:"isCloning"`
	Error              string `json:"error"`
	Progress           int    `json:"progress"`
	State              string `json:"state"`
	FromReplicaAddress string `json:"fromReplicaAddress"`
	SnapshotName       string `json:"snapshotName"`
}

func (*SnapshotCloneStatus) DeepCopy added in v1.2.3

func (in *SnapshotCloneStatus) DeepCopy() *SnapshotCloneStatus

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

func (*SnapshotCloneStatus) DeepCopyInto added in v1.2.3

func (in *SnapshotCloneStatus) DeepCopyInto(out *SnapshotCloneStatus)

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

type SnapshotInfo added in v1.3.0

type SnapshotInfo struct {
	Name        string            `json:"name"`
	Parent      string            `json:"parent"`
	Children    map[string]bool   `json:"children"`
	Removed     bool              `json:"removed"`
	UserCreated bool              `json:"usercreated"`
	Created     string            `json:"created"`
	Size        string            `json:"size"`
	Labels      map[string]string `json:"labels"`
}

func (*SnapshotInfo) DeepCopy added in v1.3.0

func (in *SnapshotInfo) DeepCopy() *SnapshotInfo

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

func (*SnapshotInfo) DeepCopyInto added in v1.3.0

func (in *SnapshotInfo) DeepCopyInto(out *SnapshotInfo)

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

type Volume

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

	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Spec VolumeSpec `json:"spec,omitempty"`
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	Status VolumeStatus `json:"status,omitempty"`
}

Volume is where Longhorn stores volume object.

func (*Volume) ConvertFrom added in v1.3.0

func (v *Volume) ConvertFrom(src conversion.Hub) error

ConvertFrom converts from hub version (v1beta2) to spoke version (v1beta1)

func (*Volume) ConvertTo added in v1.3.0

func (v *Volume) ConvertTo(dst conversion.Hub) error

ConvertTo converts from spoke version (v1beta1) to hub version (v1beta2)

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.

type VolumeCloneState added in v1.2.3

type VolumeCloneState string

type VolumeCloneStatus added in v1.2.3

type VolumeCloneStatus struct {
	SourceVolume string           `json:"sourceVolume"`
	Snapshot     string           `json:"snapshot"`
	State        VolumeCloneState `json:"state"`
}

func (*VolumeCloneStatus) DeepCopy added in v1.2.3

func (in *VolumeCloneStatus) DeepCopy() *VolumeCloneStatus

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

func (*VolumeCloneStatus) DeepCopyInto added in v1.2.3

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

type VolumeDataSource string

type VolumeDataSourceType added in v1.3.0

type VolumeDataSourceType string

type VolumeFrontend added in v1.2.3

type VolumeFrontend string

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

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

func (*VolumeRecurringJob) DeepCopy added in v1.2.3

func (in *VolumeRecurringJob) DeepCopy() *VolumeRecurringJob

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

func (*VolumeRecurringJob) DeepCopyInto added in v1.2.3

func (in *VolumeRecurringJob) DeepCopyInto(out *VolumeRecurringJob)

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

type VolumeRecurringJobSpec deprecated added in v1.2.3

type VolumeRecurringJobSpec struct {
	Name        string            `json:"name"`
	Groups      []string          `json:"groups,omitempty"`
	Task        RecurringJobType  `json:"task"`
	Cron        string            `json:"cron"`
	Retain      int               `json:"retain"`
	Concurrency int               `json:"concurrency"`
	Labels      map[string]string `json:"labels,omitempty"`
}

Deprecated: This field is useless.

func (*VolumeRecurringJobSpec) DeepCopy added in v1.2.3

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

func (*VolumeRecurringJobSpec) DeepCopyInto added in v1.2.3

func (in *VolumeRecurringJobSpec) DeepCopyInto(out *VolumeRecurringJobSpec)

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

type VolumeRobustness added in v1.2.3

type VolumeRobustness string

type VolumeSpec added in v1.2.3

type VolumeSpec struct {
	Size                    int64            `json:"size,string"`
	Frontend                VolumeFrontend   `json:"frontend"`
	FromBackup              string           `json:"fromBackup"`
	DataSource              VolumeDataSource `json:"dataSource"`
	DataLocality            DataLocality     `json:"dataLocality"`
	StaleReplicaTimeout     int              `json:"staleReplicaTimeout"`
	NodeID                  string           `json:"nodeID"`
	MigrationNodeID         string           `json:"migrationNodeID"`
	EngineImage             string           `json:"engineImage"`
	BackingImage            string           `json:"backingImage"`
	Standby                 bool             `json:"Standby"`
	DiskSelector            []string         `json:"diskSelector"`
	NodeSelector            []string         `json:"nodeSelector"`
	DisableFrontend         bool             `json:"disableFrontend"`
	RevisionCounterDisabled bool             `json:"revisionCounterDisabled"`
	LastAttachedBy          string           `json:"lastAttachedBy"`
	AccessMode              AccessMode       `json:"accessMode"`
	Migratable              bool             `json:"migratable"`

	Encrypted bool `json:"encrypted"`

	NumberOfReplicas   int                `json:"numberOfReplicas"`
	ReplicaAutoBalance ReplicaAutoBalance `json:"replicaAutoBalance"`

	// Deprecated. Rename to BackingImage
	BaseImage string `json:"baseImage"`

	// Deprecated. Replaced by a separate resource named "RecurringJob"
	RecurringJobs []VolumeRecurringJobSpec `json:"recurringJobs,omitempty"`
}

VolumeSpec defines the desired state of the Longhorn volume

func (*VolumeSpec) DeepCopy added in v1.2.3

func (in *VolumeSpec) DeepCopy() *VolumeSpec

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

func (*VolumeSpec) DeepCopyInto added in v1.2.3

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

type VolumeState string

type VolumeStatus added in v1.2.3

type VolumeStatus struct {
	OwnerID            string               `json:"ownerID"`
	State              VolumeState          `json:"state"`
	Robustness         VolumeRobustness     `json:"robustness"`
	CurrentNodeID      string               `json:"currentNodeID"`
	CurrentImage       string               `json:"currentImage"`
	KubernetesStatus   KubernetesStatus     `json:"kubernetesStatus"`
	Conditions         map[string]Condition `json:"conditions"`
	LastBackup         string               `json:"lastBackup"`
	LastBackupAt       string               `json:"lastBackupAt"`
	PendingNodeID      string               `json:"pendingNodeID"`
	FrontendDisabled   bool                 `json:"frontendDisabled"`
	RestoreRequired    bool                 `json:"restoreRequired"`
	RestoreInitiated   bool                 `json:"restoreInitiated"`
	CloneStatus        VolumeCloneStatus    `json:"cloneStatus"`
	RemountRequestedAt string               `json:"remountRequestedAt"`
	ExpansionRequired  bool                 `json:"expansionRequired"`
	IsStandby          bool                 `json:"isStandby"`
	ActualSize         int64                `json:"actualSize"`
	LastDegradedAt     string               `json:"lastDegradedAt"`
	ShareEndpoint      string               `json:"shareEndpoint"`
	ShareState         ShareManagerState    `json:"shareState"`
}

VolumeStatus defines the observed state of the Longhorn volume

func (*VolumeStatus) DeepCopy added in v1.2.3

func (in *VolumeStatus) DeepCopy() *VolumeStatus

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

func (*VolumeStatus) DeepCopyInto added in v1.2.3

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

type WorkloadStatus struct {
	PodName      string `json:"podName"`
	PodStatus    string `json:"podStatus"`
	WorkloadName string `json:"workloadName"`
	WorkloadType string `json:"workloadType"`
}

func (*WorkloadStatus) DeepCopy added in v1.2.3

func (in *WorkloadStatus) DeepCopy() *WorkloadStatus

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

func (*WorkloadStatus) DeepCopyInto added in v1.2.3

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