v1alpha1

package
v0.0.0-...-8155393 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

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

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

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	SecretName      string `json:"secretName,omitempty"`
	SecretNamespace string `json:"secreteNamespace,omitempty"`
}

Credentials defines gluster node secret credentials

func (*Credentials) DeepCopy

func (in *Credentials) DeepCopy() *Credentials

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

func (*Credentials) DeepCopyInto

func (in *Credentials) DeepCopyInto(out *Credentials)

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

type GlusterCluster

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

	Spec   GlusterClusterSpec   `json:"spec,omitempty"`
	Status GlusterClusterStatus `json:"status,omitempty"`
}

GlusterCluster is the Schema for the glusterclusters API +k8s:openapi-gen=true

func (*GlusterCluster) DeepCopy

func (in *GlusterCluster) DeepCopy() *GlusterCluster

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

func (*GlusterCluster) DeepCopyInto

func (in *GlusterCluster) DeepCopyInto(out *GlusterCluster)

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

func (*GlusterCluster) DeepCopyObject

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

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

type GlusterClusterList

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

GlusterClusterList contains a list of GlusterCluster

func (*GlusterClusterList) DeepCopy

func (in *GlusterClusterList) DeepCopy() *GlusterClusterList

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

func (*GlusterClusterList) DeepCopyInto

func (in *GlusterClusterList) DeepCopyInto(out *GlusterClusterList)

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

func (*GlusterClusterList) DeepCopyObject

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

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

type GlusterClusterReplicationDetails

type GlusterClusterReplicationDetails struct {
	Credentials *Credentials           `json:"credentials,omitempty"`
	Targets     []GlusterStorageTarget `json:"targets"`
}

GlusterClusterReplicationDetails defines replication details for the cluster if geo-replication is used for volumes. This defines the target where volumes from the cluster would get geo replicated

func (*GlusterClusterReplicationDetails) DeepCopy

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

func (*GlusterClusterReplicationDetails) DeepCopyInto

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

type GlusterClusterSpec

type GlusterClusterSpec struct {
	Options       map[string]string                 `json:"clusterOptions,omitempty"`
	Drivers       []string                          `json:"drivers"`
	GlusterCA     *Credentials                      `json:"glusterCA,omitempty"`
	Replication   *GlusterClusterReplicationDetails `json:"replication,omitempty"`
	NodeTemplates []GlusterNodeTemplate             `json:"nodeTemplates"`
}

GlusterClusterSpec defines the desired state of GlusterCluster

func (*GlusterClusterSpec) DeepCopy

func (in *GlusterClusterSpec) DeepCopy() *GlusterClusterSpec

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

func (*GlusterClusterSpec) DeepCopyInto

func (in *GlusterClusterSpec) DeepCopyInto(out *GlusterClusterSpec)

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

type GlusterClusterStatus

type GlusterClusterStatus struct {
	State            string                       `json:"state,omitempty"`
	ReconcileVersion *int                         `json:"reconcileVersion,omitempty"`
	ReconcileActions map[string]reconciler.Result `json:"reconcileActions,omitempty"`
}

GlusterClusterStatus defines the observed state of GlusterCluster

func (*GlusterClusterStatus) DeepCopy

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

func (*GlusterClusterStatus) DeepCopyInto

func (in *GlusterClusterStatus) DeepCopyInto(out *GlusterClusterStatus)

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

type GlusterNode

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

	Spec   GlusterNodeSpec   `json:"spec,omitempty"`
	Status GlusterNodeStatus `json:"status,omitempty"`
}

GlusterNode is the Schema for the glusternodes API +k8s:openapi-gen=true

func (*GlusterNode) DeepCopy

func (in *GlusterNode) DeepCopy() *GlusterNode

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

func (*GlusterNode) DeepCopyInto

func (in *GlusterNode) DeepCopyInto(out *GlusterNode)

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

func (*GlusterNode) DeepCopyObject

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

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

type GlusterNodeExternal

type GlusterNodeExternal struct {
	Address     string       `json:"address,omitempty"`
	Credentials *Credentials `json:"credentials,omitempty"`
}

GlusterNodeExternal defines external details of gluster nodes

func (*GlusterNodeExternal) DeepCopy

func (in *GlusterNodeExternal) DeepCopy() *GlusterNodeExternal

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

func (*GlusterNodeExternal) DeepCopyInto

func (in *GlusterNodeExternal) DeepCopyInto(out *GlusterNodeExternal)

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

type GlusterNodeList

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

GlusterNodeList contains a list of GlusterNode

func (*GlusterNodeList) DeepCopy

func (in *GlusterNodeList) DeepCopy() *GlusterNodeList

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

func (*GlusterNodeList) DeepCopyInto

func (in *GlusterNodeList) DeepCopyInto(out *GlusterNodeList)

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

func (*GlusterNodeList) DeepCopyObject

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

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

type GlusterNodeSpec

type GlusterNodeSpec struct {
	Cluster          string               `json:"cluster,omitempty"`
	ReconcileVersion *int                 `json:"reconcileVersion,omitempty"`
	Zone             string               `json:"zone,omitempty"`
	DesiredState     string               `json:"desiredState,omitempty"`
	ExternalInfo     *GlusterNodeExternal `json:"external,omitempty"`
	Storage          []StorageDevice      `json:"storage"`
	Affinity         *corev1.NodeAffinity `json:"nodeAffinity,omitempty"`
}

GlusterNodeSpec defines the desired state of GlusterNode

func (*GlusterNodeSpec) DeepCopy

func (in *GlusterNodeSpec) DeepCopy() *GlusterNodeSpec

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

func (*GlusterNodeSpec) DeepCopyInto

func (in *GlusterNodeSpec) DeepCopyInto(out *GlusterNodeSpec)

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

type GlusterNodeStatus

type GlusterNodeStatus struct {
	State            string                       `json:"currentState,omitempty"`
	ReconcileActions map[string]reconciler.Result `json:"reconcileActions,omitempty"`
}

GlusterNodeStatus defines the observed state of GlusterNode

func (*GlusterNodeStatus) DeepCopy

func (in *GlusterNodeStatus) DeepCopy() *GlusterNodeStatus

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

func (*GlusterNodeStatus) DeepCopyInto

func (in *GlusterNodeStatus) DeepCopyInto(out *GlusterNodeStatus)

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

type GlusterNodeStorageDetails

type GlusterNodeStorageDetails struct {
	StorageClassName string             `json:"storageClassName,omitempty"`
	Capacity         *resource.Quantity `json:"capacity,omitempty"`
}

GlusterNodeStorageDetails defines storage class details

func (*GlusterNodeStorageDetails) DeepCopy

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

func (*GlusterNodeStorageDetails) DeepCopyInto

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

type GlusterNodeTemplate

type GlusterNodeTemplate struct {
	Name      string                     `json:"name,omitempty"`
	Zone      string                     `json:"zone,omitempty"`
	Threshold *GlusterNodeThreshold      `json:"threshold,omitempty"`
	Affinity  *corev1.NodeAffinity       `json:"nodeAffinity,omitempty"`
	Storage   *GlusterNodeStorageDetails `json:"storage,omitempty"`
}

GlusterNodeTemplate defines a gluster node's template

func (*GlusterNodeTemplate) DeepCopy

func (in *GlusterNodeTemplate) DeepCopy() *GlusterNodeTemplate

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

func (*GlusterNodeTemplate) DeepCopyInto

func (in *GlusterNodeTemplate) DeepCopyInto(out *GlusterNodeTemplate)

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

type GlusterNodeThreshold

type GlusterNodeThreshold struct {
	Nodes          *int               `json:"nodes,omitempty"`
	MinNodes       *int               `json:"minNodes,omitempty"`
	MaxNodes       *int               `json:"maxNodes,omitempty"`
	FreeStorageMin *resource.Quantity `json:"freeStorageMin,omitempty"`
	FreeStorageMax *resource.Quantity `json:"freeStorageMax,omitempty"`
}

GlusterNodeThreshold defines threshold details for node

func (*GlusterNodeThreshold) DeepCopy

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

func (*GlusterNodeThreshold) DeepCopyInto

func (in *GlusterNodeThreshold) DeepCopyInto(out *GlusterNodeThreshold)

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

type GlusterStorageTarget

type GlusterStorageTarget struct {
	Name        string       `json:"name,omitempty"`
	Addresses   []string     `json:"address"`
	Credentials *Credentials `json:"credentials,omitempty"`
}

GlusterStorageTarget defines a storage target used in StorageClass. Each storage class need to be backed by a source of storage which is defined by this target

func (*GlusterStorageTarget) DeepCopy

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

func (*GlusterStorageTarget) DeepCopyInto

func (in *GlusterStorageTarget) DeepCopyInto(out *GlusterStorageTarget)

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

type StorageDevice

type StorageDevice struct {
	Device  string   `json:"device,omitempty"`
	PVCName string   `json:"pvcName,omitempty"`
	Tags    []string `json:"tags"`
}

StorageDevice defines storage details of gluster nodes

func (*StorageDevice) DeepCopy

func (in *StorageDevice) DeepCopy() *StorageDevice

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

func (*StorageDevice) DeepCopyInto

func (in *StorageDevice) DeepCopyInto(out *StorageDevice)

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