v1alpha1

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the openebs v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=openebs.io

Package v1alpha1 contains API Schema definitions for the openebs v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=openebs.io

Index

Constants

This section is empty.

Variables

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

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

Functions

Types

type ISCSISpec

type ISCSISpec struct {
	TargetIP   string `json:"targetIP"`
	TargetPort int32  `json:"targetPort"`
	Iqn        string `json:"iqn"`
}

func (*ISCSISpec) DeepCopy

func (in *ISCSISpec) DeepCopy() *ISCSISpec

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

func (*ISCSISpec) DeepCopyInto

func (in *ISCSISpec) DeepCopyInto(out *ISCSISpec)

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

type JivaVolume

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

	Spec   JivaVolumeSpec   `json:"spec,omitempty"`
	Status JivaVolumeStatus `json:"status,omitempty"`
}

JivaVolume is the Schema for the jivavolumes API +k8s:openapi-gen=true +kubebuilder:subresource:status

func (*JivaVolume) DeepCopy

func (in *JivaVolume) DeepCopy() *JivaVolume

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

func (*JivaVolume) DeepCopyInto

func (in *JivaVolume) DeepCopyInto(out *JivaVolume)

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

func (*JivaVolume) DeepCopyObject

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

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

type JivaVolumeList

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

JivaVolumeList contains a list of JivaVolume

func (*JivaVolumeList) DeepCopy

func (in *JivaVolumeList) DeepCopy() *JivaVolumeList

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

func (*JivaVolumeList) DeepCopyInto

func (in *JivaVolumeList) DeepCopyInto(out *JivaVolumeList)

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

func (*JivaVolumeList) DeepCopyObject

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

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

type JivaVolumePhase

type JivaVolumePhase string

JivaVolumePhase represents the current phase of JivaVolume.

const (
	// JivaVolumePhasePending indicates that the jivavolume is still waiting for
	// the jivavolume to be created and bound
	JivaVolumePhasePending JivaVolumePhase = "Pending"

	// JivaVolumePhaseSyncing indicates that the jivavolume has been
	// provisioned and replicas are syncing
	JivaVolumePhaseSyncing JivaVolumePhase = "Syncing"

	// JivaVolumePhaseFailed indicates that the jivavolume provisioning
	// has failed
	JivaVolumePhaseFailed JivaVolumePhase = "Failed"

	// JivaVolumePhaseReady indicates that the jivavolume provisioning
	// has Created
	JivaVolumePhaseReady JivaVolumePhase = "Ready"

	// JivaVolumePhaseDeleting indicates the the jivavolume is deprovisioned
	JivaVolumePhaseDeleting JivaVolumePhase = "Deleting"
)

type JivaVolumePolicy

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

	Spec   JivaVolumePolicySpec   `json:"spec,omitempty"`
	Status JivaVolumePolicyStatus `json:"status,omitempty"`
}

JivaVolumePolicy is the Schema for the jivavolumepolicies API +kubebuilder:subresource:status +kubebuilder:resource:path=jivavolumepolicies,scope=Namespaced

func (*JivaVolumePolicy) DeepCopy

func (in *JivaVolumePolicy) DeepCopy() *JivaVolumePolicy

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

func (*JivaVolumePolicy) DeepCopyInto

func (in *JivaVolumePolicy) DeepCopyInto(out *JivaVolumePolicy)

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

func (*JivaVolumePolicy) DeepCopyObject

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

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

type JivaVolumePolicyList

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

JivaVolumePolicyList contains a list of JivaVolumePolicy

func (*JivaVolumePolicyList) DeepCopy

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

func (*JivaVolumePolicyList) DeepCopyInto

func (in *JivaVolumePolicyList) DeepCopyInto(out *JivaVolumePolicyList)

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

func (*JivaVolumePolicyList) DeepCopyObject

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

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

type JivaVolumePolicySpec

type JivaVolumePolicySpec struct {
	// ReplicaSC represents the storage class used for
	// creating the pvc for the replicas (provisioned by localpv provisioner)
	ReplicaSC string `json:"replicaSC"`
	// EnableBufio ...
	EnableBufio bool `json:"enableBufio"`
	// AutoScaling ...
	AutoScaling bool `json:"autoScaling"`
	// TargetSpec represents configuration related to jiva target and its resources
	Target TargetSpec `json:"target"`
	// ReplicaSpec represents configuration related to replicas resources
	Replica ReplicaSpec `json:"replica"`
}

JivaVolumePolicySpec defines the desired state of JivaVolumePolicy

func (*JivaVolumePolicySpec) DeepCopy

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

func (*JivaVolumePolicySpec) DeepCopyInto

func (in *JivaVolumePolicySpec) DeepCopyInto(out *JivaVolumePolicySpec)

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

type JivaVolumePolicyStatus

type JivaVolumePolicyStatus struct {
	Phase string `json:"phase"`
}

JivaVolumePolicyStatus is for handling status of JivaVolumePolicy

func (*JivaVolumePolicyStatus) DeepCopy

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

func (*JivaVolumePolicyStatus) DeepCopyInto

func (in *JivaVolumePolicyStatus) DeepCopyInto(out *JivaVolumePolicyStatus)

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

type JivaVolumeSpec

type JivaVolumeSpec struct {
	PV        string    `json:"pv"`
	Capacity  string    `json:"capacity"`
	ISCSISpec ISCSISpec `json:"iscsiSpec"`
	MountInfo MountInfo `json:"mountInfo"`
	// Policy is the configuration used for creating target
	// and replica pods during volume provisioning
	Policy JivaVolumePolicySpec `json:"policy"`
}

JivaVolumeSpec defines the desired state of JivaVolume +k8s:openapi-gen=true

func (*JivaVolumeSpec) DeepCopy

func (in *JivaVolumeSpec) DeepCopy() *JivaVolumeSpec

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

func (*JivaVolumeSpec) DeepCopyInto

func (in *JivaVolumeSpec) DeepCopyInto(out *JivaVolumeSpec)

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

type JivaVolumeStatus

type JivaVolumeStatus struct {
	Status          string          `json:"status"`
	ReplicaCount    int             `json:"replicaCount"`
	ReplicaStatuses []ReplicaStatus `json:"replicaStatus"`
	// Phase represents the current phase of JivaVolume.
	Phase JivaVolumePhase `json:"phase"`
}

JivaVolumeStatus defines the observed state of JivaVolume +k8s:openapi-gen=true

func (*JivaVolumeStatus) DeepCopy

func (in *JivaVolumeStatus) DeepCopy() *JivaVolumeStatus

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

func (*JivaVolumeStatus) DeepCopyInto

func (in *JivaVolumeStatus) DeepCopyInto(out *JivaVolumeStatus)

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

type MountInfo

type MountInfo struct {
	// StagingPath is the path provided by K8s during NodeStageVolume
	// rpc call, where volume is mounted globally.
	StagingPath string `json:"stagingPath"`
	// TargetPath is the path provided by K8s during NodePublishVolume
	// rpc call where bind mount happens.
	TargetPath string `json:"targetPath"`
	FSType     string `json:"fsType"`
	DevicePath string `json:"devicePath"`
}

func (*MountInfo) DeepCopy

func (in *MountInfo) DeepCopy() *MountInfo

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

func (*MountInfo) DeepCopyInto

func (in *MountInfo) DeepCopyInto(out *MountInfo)

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

type PodTemplateResources

type PodTemplateResources struct {
	// Resources are the compute resources required by the jiva
	// container.
	Resources *corev1.ResourceRequirements `json:"resources,omitempty"`

	// Tolerations, if specified, are the pod's tolerations
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`

	// Affinity if specified, are the pod's affinities
	Affinity *corev1.Affinity `json:"affinity,omitempty"`

	// NodeSelector is the labels that will be used to select
	// a node for pod scheduleing
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`

	// PriorityClassName if specified applies to the pod
	// If left empty, no priority class is applied.
	PriorityClassName string `json:"priorityClassName,omitempty"`
}

PodTemplateResources represents the common configuration field for jiva target deployment and jiva replica sts.

func (*PodTemplateResources) DeepCopy

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

func (*PodTemplateResources) DeepCopyInto

func (in *PodTemplateResources) DeepCopyInto(out *PodTemplateResources)

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

type ReplicaSpec

type ReplicaSpec struct {
	// PodTemplateResources represents the configuration for replica sts.
	PodTemplateResources
}

ReplicaSpec represents configuration related to jiva replica sts

func (*ReplicaSpec) DeepCopy

func (in *ReplicaSpec) DeepCopy() *ReplicaSpec

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

func (*ReplicaSpec) DeepCopyInto

func (in *ReplicaSpec) DeepCopyInto(out *ReplicaSpec)

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

type ReplicaStatus

type ReplicaStatus struct {
	Address string `json:"address"`
	Mode    string `json:"mode"`
}

ReplicaStatus stores the status of replicas

func (*ReplicaStatus) DeepCopy

func (in *ReplicaStatus) DeepCopy() *ReplicaStatus

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

func (*ReplicaStatus) DeepCopyInto

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

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

type TargetSpec

type TargetSpec struct {
	// Monitor enables or disables the target exporter sidecar
	Monitor bool `json:"monitor,omitempty"`

	// ReplicationFactor represents maximum number of replicas
	// that are allowed to connect to the target
	ReplicationFactor int `json:"replicationFactor,omitempty"`

	// PodTemplateResources represents the configuration for target deployment.
	PodTemplateResources

	// AuxResources are the compute resources required by the jiva-target pod
	// side car containers.
	AuxResources *corev1.ResourceRequirements `json:"auxResources,omitempty"`
}

TargetSpec represents configuration related to jiva target deployment

func (*TargetSpec) DeepCopy

func (in *TargetSpec) DeepCopy() *TargetSpec

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

func (*TargetSpec) DeepCopyInto

func (in *TargetSpec) DeepCopyInto(out *TargetSpec)

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