v1alpha1

package
v0.14.5 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 10

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=hwameistor.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "hwameistor.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type AdmissionControllerSpec

type AdmissionControllerSpec struct {
	Disable       bool                 `json:"disable,omitempty"`
	Replicas      int32                `json:"replicas,omitempty"`
	FailurePolicy string               `json:"failurePolicy,omitempty"`
	Common        *PodCommonSpec       `json:"common,omitempty"`
	Controller    *ContainerCommonSpec `json:"controller,omitempty"`
}

func (*AdmissionControllerSpec) DeepCopy

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

func (*AdmissionControllerSpec) DeepCopyInto

func (in *AdmissionControllerSpec) DeepCopyInto(out *AdmissionControllerSpec)

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

type AdmissionControllerStatus

type AdmissionControllerStatus struct {
	Instances *DeployStatus `json:"instances,omitempty"`
	Health    string        `json:"health,omitempty"`
}

func (*AdmissionControllerStatus) DeepCopy

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

func (*AdmissionControllerStatus) DeepCopyInto

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

type ApiServerSpec

type ApiServerSpec struct {
	Disable        bool                 `json:"disable,omitempty"`
	Replicas       int32                `json:"replicas,omitempty"`
	Common         *PodCommonSpec       `json:"common,omitempty"`
	Server         *ContainerCommonSpec `json:"server,omitempty"`
	Authentication *Authentication      `json:"authentication,omitempty"`
}

func (*ApiServerSpec) DeepCopy

func (in *ApiServerSpec) DeepCopy() *ApiServerSpec

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

func (*ApiServerSpec) DeepCopyInto

func (in *ApiServerSpec) DeepCopyInto(out *ApiServerSpec)

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

type ApiServerStatus

type ApiServerStatus struct {
	Instances *DeployStatus `json:"instances,omitempty"`
	Health    string        `json:"health,omitempty"`
}

func (*ApiServerStatus) DeepCopy

func (in *ApiServerStatus) DeepCopy() *ApiServerStatus

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

func (*ApiServerStatus) DeepCopyInto

func (in *ApiServerStatus) DeepCopyInto(out *ApiServerStatus)

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

type AuditorSpec added in v0.12.0

type AuditorSpec struct {
	Disable  bool                 `json:"disable,omitempty"`
	Replicas int32                `json:"replicas"`
	Common   *PodCommonSpec       `json:"common,omitempty"`
	Auditor  *ContainerCommonSpec `json:"auditor,omitempty"`
}

func (*AuditorSpec) DeepCopy added in v0.12.0

func (in *AuditorSpec) DeepCopy() *AuditorSpec

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

func (*AuditorSpec) DeepCopyInto added in v0.12.0

func (in *AuditorSpec) DeepCopyInto(out *AuditorSpec)

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

type AuditorStatus added in v0.12.0

type AuditorStatus struct {
	Instances *DeployStatus `json:"instances,omitempty"`
	Health    string        `json:"health,omitempty"`
}

func (*AuditorStatus) DeepCopy added in v0.12.0

func (in *AuditorStatus) DeepCopy() *AuditorStatus

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

func (*AuditorStatus) DeepCopyInto added in v0.12.0

func (in *AuditorStatus) DeepCopyInto(out *AuditorStatus)

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

type Authentication

type Authentication struct {
	Enable    bool   `json:"enable,omitempty"`
	AccessId  string `json:"accessId,omitempty"`
	SecretKey string `json:"secretKey,omitempty"`
}

func (*Authentication) DeepCopy

func (in *Authentication) DeepCopy() *Authentication

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

func (*Authentication) DeepCopyInto

func (in *Authentication) DeepCopyInto(out *Authentication)

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

type CSIControllerSpec

type CSIControllerSpec struct {
	Replicas           int32                `json:"replicas,omitempty"`
	Common             *PodCommonSpec       `json:"common,omitempty"`
	Provisioner        *ContainerCommonSpec `json:"provisioner,omitempty"`
	Attacher           *ContainerCommonSpec `json:"attacher,omitempty"`
	Monitor            *ContainerCommonSpec `json:"monitor,omitempty"`
	Resizer            *ContainerCommonSpec `json:"resizer,omitempty"`
	SnapshotController *ContainerCommonSpec `json:"snapshotController,omitempty"`
	Snapshotter        *ContainerCommonSpec `json:"snapshotter,omitempty"`
}

func (*CSIControllerSpec) DeepCopy

func (in *CSIControllerSpec) DeepCopy() *CSIControllerSpec

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

func (*CSIControllerSpec) DeepCopyInto

func (in *CSIControllerSpec) DeepCopyInto(out *CSIControllerSpec)

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

type CSISpec

type CSISpec struct {
	Registrar  *ContainerCommonSpec `json:"registrar,omitempty"`
	Controller *CSIControllerSpec   `json:"controller,omitempty"`
}

func (*CSISpec) DeepCopy

func (in *CSISpec) DeepCopy() *CSISpec

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

func (*CSISpec) DeepCopyInto

func (in *CSISpec) DeepCopyInto(out *CSISpec)

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

type Cluster

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

	Spec   ClusterSpec   `json:"spec,omitempty"`
	Status ClusterStatus `json:"status,omitempty"`
}

Cluster is the Schema for the clusters API +kubebuilder:resource:path=clusters,scope=Cluster,shortName=hmcluster

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

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

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

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

func (*Cluster) DeepCopyObject

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

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

type ClusterList

type ClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Cluster `json:"items"`
}

ClusterList contains a list of Cluster

func (*ClusterList) DeepCopy

func (in *ClusterList) DeepCopy() *ClusterList

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

func (*ClusterList) DeepCopyInto

func (in *ClusterList) DeepCopyInto(out *ClusterList)

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

func (*ClusterList) DeepCopyObject

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

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

type ClusterSpec

type ClusterSpec struct {
	TargetNamespace string `json:"targetNamespace,omitempty"`

	NotClaimDisk bool `json:"notClaimDisk,omitempty"`

	DiskReserveConfigurations []DiskReserveConfiguration `json:"diskReserveConfigurations,omitempty"`

	// LocalDiskManager represents settings about LocalDiskManager
	LocalDiskManager *LocalDiskManagerSpec `json:"localDiskManager,omitempty"`

	// LocalStorage represents settings about LocalStorage
	LocalStorage *LocalStorageSpec `json:"localStorage,omitempty"`

	// Scheduler represents settings about Scheduler
	Scheduler *SchedulerSpec `json:"scheduler,omitempty"`

	// Evictor represents settings about Evictor
	Evictor *EvictorSpec `json:"evictor,omitempty"`

	// AdmissionController represents settings about AdmissionController
	AdmissionController *AdmissionControllerSpec `json:"admissionController,omitempty"`

	ApiServer *ApiServerSpec `json:"apiServer,omitempty"`

	Exporter *ExporterSpec `json:"exporter,omitempty"`

	Auditor *AuditorSpec `json:"auditor,omitempty"`

	FailoverAssistant *FailoverAssistantSpec `json:"failoverAssistant,omitempty"`

	PVCAutoResizer *PVCAutoResizerSpec `json:"pvcAutoResizer,omitempty"`

	LocalDiskActionController *LocalDiskActionControllerSpec `json:"localDiskActionController,omitempty"`

	UI *UISpec `json:"ui,omitempty"`

	DRBD *DRBDSpec `json:"drbd,omitempty"`

	RBAC *RBACSpec `json:"rbac,omitempty"`

	StorageClass *StorageClassSpec `json:"storageClass,omitempty"`
}

ClusterSpec defines the desired state of Cluster

func (*ClusterSpec) DeepCopy

func (in *ClusterSpec) DeepCopy() *ClusterSpec

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

func (*ClusterSpec) DeepCopyInto

func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)

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

type ClusterStatus

type ClusterStatus struct {
	InstalledCRDS            bool            `json:"installedCRDS"`
	DRBDAdapterCreated       bool            `json:"drbdAdapterCreated"`
	DRBDAdapterCreatedJobNum int             `json:"drbdAdapterCreatedJobNum"`
	DiskReserveState         string          `json:"diskReserveState,omitempty"`
	Phase                    string          `json:"phase,omitempty"`
	ComponentStatus          ComponentStatus `json:"componentStatus"`
}

ClusterStatus defines the observed state of Cluster

func (*ClusterStatus) DeepCopy

func (in *ClusterStatus) DeepCopy() *ClusterStatus

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

func (*ClusterStatus) DeepCopyInto

func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)

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

type ComponentStatus

type ComponentStatus struct {
	LocalDiskManager          *LocalDiskManagerStatus          `json:"localDiskManager,omitempty"`
	LocalStorage              *LocalStorageStatus              `json:"localStorage,omitempty"`
	Scheduler                 *SchedulerStatus                 `json:"scheduler,omitempty"`
	Evictor                   *EvictorStatus                   `json:"evictor,omitempty"`
	AdmissionController       *AdmissionControllerStatus       `json:"admissionController,omitempty"`
	ApiServer                 *ApiServerStatus                 `json:"apiServer,omitempty"`
	Auditor                   *AuditorStatus                   `json:"auditor,omitempty"`
	FailoverAssistant         *FailoverAssistantStatus         `json:"failoverAssistant,omitempty"`
	PVCAutoResizer            *PVCAutoResizerStatus            `json:"pvcAutoResizer,omitempty"`
	LocalDiskActionController *LocalDiskActionControllerStatus `json:"localDiskActionController,omitempty"`
	Exporter                  *ExporterStatus                  `json:"exporter,omitempty"`
}

func (*ComponentStatus) DeepCopy

func (in *ComponentStatus) DeepCopy() *ComponentStatus

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

func (*ComponentStatus) DeepCopyInto

func (in *ComponentStatus) DeepCopyInto(out *ComponentStatus)

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

type ContainerCommonSpec

type ContainerCommonSpec struct {
	Resources *corev1.ResourceRequirements `json:"resources,omitempty"`
	Image     *ImageSpec                   `json:"image,omitempty"`
}

func (*ContainerCommonSpec) DeepCopy

func (in *ContainerCommonSpec) DeepCopy() *ContainerCommonSpec

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

func (*ContainerCommonSpec) DeepCopyInto

func (in *ContainerCommonSpec) DeepCopyInto(out *ContainerCommonSpec)

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

type DRBDSpec

type DRBDSpec struct {
	Disable         bool                 `json:"disable,omitempty"`
	DeployOnMaster  string               `json:"deployOnMaster,omitempty"`
	Shipper         *ImageSpec           `json:"shipper,omitempty"`
	ImagePullPolicy string               `json:"imagePullPolicy,omitempty"`
	DRBDVersion     string               `json:"drbdVersion,omitempty"`
	Upgrade         string               `json:"upgrade,omitempty"`
	CheckHostName   string               `json:"checkHostName,omitempty"`
	UseAffinity     string               `json:"useAffinity,omitempty"`
	NodeAffinity    *corev1.NodeAffinity `json:"nodeAffinity,omitempty"`
	ChartVersion    string               `json:"chartVersion,omitempty"`
}

func (*DRBDSpec) DeepCopy

func (in *DRBDSpec) DeepCopy() *DRBDSpec

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

func (*DRBDSpec) DeepCopyInto

func (in *DRBDSpec) DeepCopyInto(out *DRBDSpec)

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

type DeployStatus

type DeployStatus struct {
	Pods              []PodStatus `json:"pods,omitempty"`
	DesiredPodCount   int32       `json:"desiredPodCount"`
	AvailablePodCount int32       `json:"availablePodCount"`
	WorkloadType      string      `json:"workloadType"`
	WorkloadName      string      `json:"workloadName"`
}

func (*DeployStatus) DeepCopy

func (in *DeployStatus) DeepCopy() *DeployStatus

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

func (*DeployStatus) DeepCopyInto

func (in *DeployStatus) DeepCopyInto(out *DeployStatus)

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

type DiskReserveConfiguration

type DiskReserveConfiguration struct {
	NodeName string   `json:"nodeName"`
	Devices  []string `json:"devices"`
}

func (*DiskReserveConfiguration) DeepCopy

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

func (*DiskReserveConfiguration) DeepCopyInto

func (in *DiskReserveConfiguration) DeepCopyInto(out *DiskReserveConfiguration)

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

type EvictorSpec

type EvictorSpec struct {
	Disable  bool                 `json:"disable,omitempty"`
	Replicas int32                `json:"replicas"`
	Common   *PodCommonSpec       `json:"common,omitempty"`
	Evictor  *ContainerCommonSpec `json:"evictor,omitempty"`
}

func (*EvictorSpec) DeepCopy

func (in *EvictorSpec) DeepCopy() *EvictorSpec

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

func (*EvictorSpec) DeepCopyInto

func (in *EvictorSpec) DeepCopyInto(out *EvictorSpec)

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

type EvictorStatus

type EvictorStatus struct {
	Instances *DeployStatus `json:"instances,omitempty"`
	Health    string        `json:"health,omitempty"`
}

func (*EvictorStatus) DeepCopy

func (in *EvictorStatus) DeepCopy() *EvictorStatus

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

func (*EvictorStatus) DeepCopyInto

func (in *EvictorStatus) DeepCopyInto(out *EvictorStatus)

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

type ExporterSpec

type ExporterSpec struct {
	Disable   bool                 `json:"disable,omitempty"`
	Replicas  int32                `json:"replicas,omitempty"`
	Common    *PodCommonSpec       `json:"common,omitempty"`
	Collector *ContainerCommonSpec `json:"collector,omitempty"`
}

func (*ExporterSpec) DeepCopy

func (in *ExporterSpec) DeepCopy() *ExporterSpec

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

func (*ExporterSpec) DeepCopyInto

func (in *ExporterSpec) DeepCopyInto(out *ExporterSpec)

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

type ExporterStatus

type ExporterStatus struct {
	Instances *DeployStatus `json:"instances,omitempty"`
	Health    string        `json:"health,omitempty"`
}

func (*ExporterStatus) DeepCopy

func (in *ExporterStatus) DeepCopy() *ExporterStatus

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

func (*ExporterStatus) DeepCopyInto

func (in *ExporterStatus) DeepCopyInto(out *ExporterStatus)

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

type FailoverAssistantSpec added in v0.12.0

type FailoverAssistantSpec struct {
	Disable   bool                 `json:"disable,omitempty"`
	Replicas  int32                `json:"replicas"`
	Common    *PodCommonSpec       `json:"common,omitempty"`
	Assistant *ContainerCommonSpec `json:"assistant,omitempty"`
}

func (*FailoverAssistantSpec) DeepCopy added in v0.12.0

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

func (*FailoverAssistantSpec) DeepCopyInto added in v0.12.0

func (in *FailoverAssistantSpec) DeepCopyInto(out *FailoverAssistantSpec)

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

type FailoverAssistantStatus added in v0.12.0

type FailoverAssistantStatus struct {
	Instances *DeployStatus `json:"instances,omitempty"`
	Health    string        `json:"health,omitempty"`
}

func (*FailoverAssistantStatus) DeepCopy added in v0.12.0

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

func (*FailoverAssistantStatus) DeepCopyInto added in v0.12.0

func (in *FailoverAssistantStatus) DeepCopyInto(out *FailoverAssistantStatus)

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

type ImageSpec

type ImageSpec struct {
	Registry   string `json:"registry,omitempty"`
	Repository string `json:"repository,omitempty"`
	Tag        string `json:"tag,omitempty"`
}

func (*ImageSpec) DeepCopy

func (in *ImageSpec) DeepCopy() *ImageSpec

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

func (*ImageSpec) DeepCopyInto

func (in *ImageSpec) DeepCopyInto(out *ImageSpec)

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

type LocalDiskActionControllerSpec added in v0.12.2

type LocalDiskActionControllerSpec struct {
	Disable    bool                 `json:"disable,omitempty"`
	Replicas   int32                `json:"replicas"`
	Common     *PodCommonSpec       `json:"common,omitempty"`
	Controller *ContainerCommonSpec `json:"controller,omitempty"`
}

func (*LocalDiskActionControllerSpec) DeepCopy added in v0.12.2

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

func (*LocalDiskActionControllerSpec) DeepCopyInto added in v0.12.2

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

type LocalDiskActionControllerStatus added in v0.12.2

type LocalDiskActionControllerStatus struct {
	Instances *DeployStatus `json:"instances,omitempty"`
	Health    string        `json:"health,omitempty"`
}

func (*LocalDiskActionControllerStatus) DeepCopy added in v0.12.2

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

func (*LocalDiskActionControllerStatus) DeepCopyInto added in v0.12.2

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

type LocalDiskManagerSpec

type LocalDiskManagerSpec struct {
	KubeletRootDir     string               `json:"kubeletRootDir,omitempty"`
	CSI                *CSISpec             `json:"csi,omitempty"`
	Common             *PodCommonSpec       `json:"common,omitempty"`
	Manager            *ContainerCommonSpec `json:"manager,omitempty"`
	TolerationOnMaster bool                 `json:"tolerationOnMaster,omitempty"`
}

func (*LocalDiskManagerSpec) DeepCopy

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

func (*LocalDiskManagerSpec) DeepCopyInto

func (in *LocalDiskManagerSpec) DeepCopyInto(out *LocalDiskManagerSpec)

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

type LocalDiskManagerStatus

type LocalDiskManagerStatus struct {
	Instances *DeployStatus `json:"instances,omitempty"`
	CSI       *DeployStatus `json:"csi,omitempty"`
	Health    string        `json:"health,omitempty"`
}

func (*LocalDiskManagerStatus) DeepCopy

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

func (*LocalDiskManagerStatus) DeepCopyInto

func (in *LocalDiskManagerStatus) DeepCopyInto(out *LocalDiskManagerStatus)

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

type LocalStorageSpec

type LocalStorageSpec struct {
	Disable            bool           `json:"disable,omitempty"`
	KubeletRootDir     string         `json:"kubeletRootDir,omitempty"`
	CSI                *CSISpec       `json:"csi,omitempty"`
	Member             *MemberSpec    `json:"member,omitempty"`
	Common             *PodCommonSpec `json:"common,omitempty"`
	TolerationOnMaster bool           `json:"tolerationOnMaster,omitempty"`
	Snapshot           *SnapshotSpec  `json:"snapshot,omitempty"`
}

func (*LocalStorageSpec) DeepCopy

func (in *LocalStorageSpec) DeepCopy() *LocalStorageSpec

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

func (*LocalStorageSpec) DeepCopyInto

func (in *LocalStorageSpec) DeepCopyInto(out *LocalStorageSpec)

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

type LocalStorageStatus

type LocalStorageStatus struct {
	Instances *DeployStatus `json:"instances,omitempty"`
	CSI       *DeployStatus `json:"csi,omitempty"`
	Health    string        `json:"health,omitempty"`
}

func (*LocalStorageStatus) DeepCopy

func (in *LocalStorageStatus) DeepCopy() *LocalStorageStatus

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

func (*LocalStorageStatus) DeepCopyInto

func (in *LocalStorageStatus) DeepCopyInto(out *LocalStorageStatus)

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

type MemberSpec

type MemberSpec struct {
	DRBDStartPort    int                          `json:"drbdStartPort,omitempty"`
	MaxHAVolumeCount int                          `json:"maxHAVolumeCount,omitempty"`
	RcloneImage      *ImageSpec                   `json:"rcloneImage,omitempty"`
	JuicesyncImage   *ImageSpec                   `json:"juicesyncImage,omitempty"`
	HostPathSSHDir   string                       `json:"hostPathSSHDir,omitempty"`
	HostPathDRBDDir  string                       `json:"hostPathDRBDDir,omitempty"`
	Resources        *corev1.ResourceRequirements `json:"resources,omitempty"`
	Image            *ImageSpec                   `json:"image,omitempty"`
}

func (*MemberSpec) DeepCopy

func (in *MemberSpec) DeepCopy() *MemberSpec

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

func (*MemberSpec) DeepCopyInto

func (in *MemberSpec) DeepCopyInto(out *MemberSpec)

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

type PVCAutoResizerSpec added in v0.12.0

type PVCAutoResizerSpec struct {
	Disable     bool                 `json:"disable,omitempty"`
	Replicas    int32                `json:"replicas"`
	Common      *PodCommonSpec       `json:"common,omitempty"`
	AutoResizer *ContainerCommonSpec `json:"autoresizer,omitempty"`
}

func (*PVCAutoResizerSpec) DeepCopy added in v0.12.0

func (in *PVCAutoResizerSpec) DeepCopy() *PVCAutoResizerSpec

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

func (*PVCAutoResizerSpec) DeepCopyInto added in v0.12.0

func (in *PVCAutoResizerSpec) DeepCopyInto(out *PVCAutoResizerSpec)

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

type PVCAutoResizerStatus added in v0.12.0

type PVCAutoResizerStatus struct {
	Instances *DeployStatus `json:"instances,omitempty"`
	Health    string        `json:"health,omitempty"`
}

func (*PVCAutoResizerStatus) DeepCopy added in v0.12.0

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

func (*PVCAutoResizerStatus) DeepCopyInto added in v0.12.0

func (in *PVCAutoResizerStatus) DeepCopyInto(out *PVCAutoResizerStatus)

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

type PodCommonSpec

type PodCommonSpec struct {
	PriorityClassName string               `json:"priorityClassName,omitempty"`
	NodeAffinity      *corev1.NodeAffinity `json:"nodeAffinity,omitempty"`
	PodAffinty        *corev1.PodAffinity  `json:"podAffinity,omitempty"`
	Tolerations       *[]corev1.Toleration `json:"tolerations,omitempty"`
}

func (*PodCommonSpec) DeepCopy

func (in *PodCommonSpec) DeepCopy() *PodCommonSpec

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

func (*PodCommonSpec) DeepCopyInto

func (in *PodCommonSpec) DeepCopyInto(out *PodCommonSpec)

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

type PodStatus

type PodStatus struct {
	Name   string `json:"name"`
	Node   string `json:"node"`
	Status string `json:"status"`
}

func (*PodStatus) DeepCopy

func (in *PodStatus) DeepCopy() *PodStatus

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

func (*PodStatus) DeepCopyInto

func (in *PodStatus) DeepCopyInto(out *PodStatus)

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

type RBACSpec

type RBACSpec struct {
	ServiceAccountName string `json:"serviceAccountName"`
}

func (*RBACSpec) DeepCopy

func (in *RBACSpec) DeepCopy() *RBACSpec

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

func (*RBACSpec) DeepCopyInto

func (in *RBACSpec) DeepCopyInto(out *RBACSpec)

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

type SchedulerSpec

type SchedulerSpec struct {
	Disable   bool                 `json:"disable,omitempty"`
	Replicas  int32                `json:"replicas"`
	Common    *PodCommonSpec       `json:"common,omitempty"`
	Scheduler *ContainerCommonSpec `json:"scheduler,omitempty"`
}

func (*SchedulerSpec) DeepCopy

func (in *SchedulerSpec) DeepCopy() *SchedulerSpec

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

func (*SchedulerSpec) DeepCopyInto

func (in *SchedulerSpec) DeepCopyInto(out *SchedulerSpec)

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

type SchedulerStatus

type SchedulerStatus struct {
	Instances *DeployStatus `json:"instances,omitempty"`
	Health    string        `json:"health,omitempty"`
}

func (*SchedulerStatus) DeepCopy

func (in *SchedulerStatus) DeepCopy() *SchedulerStatus

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

func (*SchedulerStatus) DeepCopyInto

func (in *SchedulerStatus) DeepCopyInto(out *SchedulerStatus)

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

type SnapshotSpec added in v0.13.2

type SnapshotSpec struct {
	Disable bool `json:"disable,omitempty"`
}

func (*SnapshotSpec) DeepCopy added in v0.13.2

func (in *SnapshotSpec) DeepCopy() *SnapshotSpec

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

func (*SnapshotSpec) DeepCopyInto added in v0.13.2

func (in *SnapshotSpec) DeepCopyInto(out *SnapshotSpec)

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

type StorageClassSpec

type StorageClassSpec struct {
	Disable              bool                                 `json:"disable,omitempty"`
	AllowVolumeExpansion bool                                 `json:"allowVolumeExpansion,omitempty"`
	ReclaimPolicy        corev1.PersistentVolumeReclaimPolicy `json:"reclaimPolicy,omitempty"`
	FSType               string                               `json:"fsType,omitempty"`
}

func (*StorageClassSpec) DeepCopy

func (in *StorageClassSpec) DeepCopy() *StorageClassSpec

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

func (*StorageClassSpec) DeepCopyInto

func (in *StorageClassSpec) DeepCopyInto(out *StorageClassSpec)

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

type UISpec

type UISpec struct {
	Disable  bool                 `json:"disable,omitempty"`
	Replicas int32                `json:"replicas"`
	Common   *PodCommonSpec       `json:"common,omitempty"`
	UI       *ContainerCommonSpec `json:"ui,omitempty"`
}

func (*UISpec) DeepCopy

func (in *UISpec) DeepCopy() *UISpec

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

func (*UISpec) DeepCopyInto

func (in *UISpec) DeepCopyInto(out *UISpec)

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