v1alpha1

package
v0.0.0-...-fc21188 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +groupName=example.com

Index

Constants

View Source
const (
	CustomResourceGroup = "example.com"
	Version             = "v1alpha1"

	HdfsResourceKind     = "HadoopHdfs"
	NameNodeResourceKind = "NameNode"
	DataNodeResourceKind = "DataNode"
)

Variables

View Source
var (
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: samplecontroller.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Hadoop

type Hadoop struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              HadoopSpec `json:"spec"`
}

func (*Hadoop) DeepCopy

func (in *Hadoop) DeepCopy() *Hadoop

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

func (*Hadoop) DeepCopyInto

func (in *Hadoop) DeepCopyInto(out *Hadoop)

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

func (*Hadoop) DeepCopyObject

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

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

type HadoopHdfs

type HadoopHdfs struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              HdfsSpec `json:"spec"`
}

func (*HadoopHdfs) DeepCopy

func (in *HadoopHdfs) DeepCopy() *HadoopHdfs

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

func (*HadoopHdfs) DeepCopyInto

func (in *HadoopHdfs) DeepCopyInto(out *HadoopHdfs)

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

func (*HadoopHdfs) DeepCopyObject

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

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

type HadoopHdfsList

type HadoopHdfsList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata
	// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []HadoopHdfs `json:"items"`
}

func (*HadoopHdfsList) DeepCopy

func (in *HadoopHdfsList) DeepCopy() *HadoopHdfsList

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

func (*HadoopHdfsList) DeepCopyInto

func (in *HadoopHdfsList) DeepCopyInto(out *HadoopHdfsList)

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

func (*HadoopHdfsList) DeepCopyObject

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

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

type HadoopList

type HadoopList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []Hadoop `json:"items"`
}

func (*HadoopList) DeepCopy

func (in *HadoopList) DeepCopy() *HadoopList

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

func (*HadoopList) DeepCopyInto

func (in *HadoopList) DeepCopyInto(out *HadoopList)

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

func (*HadoopList) DeepCopyObject

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

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

type HadoopMapreduce

type HadoopMapreduce struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MapReduceSpec `json:"spec"`
}

func (*HadoopMapreduce) DeepCopy

func (in *HadoopMapreduce) DeepCopy() *HadoopMapreduce

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

func (*HadoopMapreduce) DeepCopyInto

func (in *HadoopMapreduce) DeepCopyInto(out *HadoopMapreduce)

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

func (*HadoopMapreduce) DeepCopyObject

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

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

type HadoopMapreduceList

type HadoopMapreduceList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata
	// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []HadoopMapreduce `json:"items"`
}

func (*HadoopMapreduceList) DeepCopy

func (in *HadoopMapreduceList) DeepCopy() *HadoopMapreduceList

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

func (*HadoopMapreduceList) DeepCopyInto

func (in *HadoopMapreduceList) DeepCopyInto(out *HadoopMapreduceList)

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

func (*HadoopMapreduceList) DeepCopyObject

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

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

type HadoopNode

type HadoopNode struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              NodeSpec   `json:"spec"`
	Status            NodeStatus `json:"status"`
}

func (*HadoopNode) DeepCopy

func (in *HadoopNode) DeepCopy() *HadoopNode

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

func (*HadoopNode) DeepCopyInto

func (in *HadoopNode) DeepCopyInto(out *HadoopNode)

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

func (*HadoopNode) DeepCopyObject

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

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

type HadoopNodeList

type HadoopNodeList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata
	// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []HadoopNode `json:"items"`
}

func (*HadoopNodeList) DeepCopy

func (in *HadoopNodeList) DeepCopy() *HadoopNodeList

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

func (*HadoopNodeList) DeepCopyInto

func (in *HadoopNodeList) DeepCopyInto(out *HadoopNodeList)

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

func (*HadoopNodeList) DeepCopyObject

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

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

type HadoopSpec

type HadoopSpec struct {
	Core    string `json:"core"`
	Common  string `json:"common"`
	Version string `json:"version,omitempty"`
	Image   string `json:"image,omitempty"`

	// The path on the host where config and data can be persisted.
	DataDirHostPath string `json:"dataDirHostPath,omitempty"`

	// The placement-related configuration to pass to kubernetes (affinity, node selector, tolerations).
	Placement PlacementSpec `json:"placement,omitempty"`

	// HostNetwork to enable host network
	HostNetwork bool `json:"hostNetwork,omitempty"`

	// Resources set resource requests and limits
	Resources ResourceSpec `json:"resources,omitempty"`
}

func (*HadoopSpec) DeepCopy

func (in *HadoopSpec) DeepCopy() *HadoopSpec

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

func (*HadoopSpec) DeepCopyInto

func (in *HadoopSpec) DeepCopyInto(out *HadoopSpec)

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

type HadoopYarn

type HadoopYarn struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              YarnSpec `json:"spec"`
}

func (*HadoopYarn) DeepCopy

func (in *HadoopYarn) DeepCopy() *HadoopYarn

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

func (*HadoopYarn) DeepCopyInto

func (in *HadoopYarn) DeepCopyInto(out *HadoopYarn)

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

func (*HadoopYarn) DeepCopyObject

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

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

type HadoopYarnList

type HadoopYarnList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata
	// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []HadoopYarn `json:"items"`
}

func (*HadoopYarnList) DeepCopy

func (in *HadoopYarnList) DeepCopy() *HadoopYarnList

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

func (*HadoopYarnList) DeepCopyInto

func (in *HadoopYarnList) DeepCopyInto(out *HadoopYarnList)

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

func (*HadoopYarnList) DeepCopyObject

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

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

type HdfsSpec

type HdfsSpec struct {
	DataReplication    *int32        `json:"dataReplication,omitempty"`
	ReplicaReplacement string        `json:"replicaReplacement,omitempty"`
	Count              *int32        `json:"count,omitempty"`
	NameNodeTemplate   *NodeTemplate `json:"nameNodeTemplate`
	DataNodeTemplate   *NodeTemplate `json:"nameNodeTemplate`
}

func (*HdfsSpec) DeepCopy

func (in *HdfsSpec) DeepCopy() *HdfsSpec

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

func (*HdfsSpec) DeepCopyInto

func (in *HdfsSpec) DeepCopyInto(out *HdfsSpec)

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

type MapReduceSpec

type MapReduceSpec struct {
	Type  NodeType `json:"type"`
	Count *int32   `json:"count,omitempty"`

	StatefulSetName string `json:"statefulSetName,omitempty"`

	ServiceName string `json:"serviceName,omitempty"`

	Pod *PodPolicy `json:"pod,omitempty"`
}

func (*MapReduceSpec) DeepCopy

func (in *MapReduceSpec) DeepCopy() *MapReduceSpec

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

func (*MapReduceSpec) DeepCopyInto

func (in *MapReduceSpec) DeepCopyInto(out *MapReduceSpec)

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

type NodeSpec

type NodeSpec struct {
	Type NodeType `json:"type"`
}

func (*NodeSpec) DeepCopy

func (in *NodeSpec) DeepCopy() *NodeSpec

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

func (*NodeSpec) DeepCopyInto

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

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

type NodeStatus

type NodeStatus struct {
	Phase string `json:"status,omitempty"`
}

func (*NodeStatus) DeepCopy

func (in *NodeStatus) DeepCopy() *NodeStatus

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

func (*NodeStatus) DeepCopyInto

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

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

type NodeTemplate

type NodeTemplate struct {
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              NodeSpec `json:"spec"`
}

func (*NodeTemplate) DeepCopy

func (in *NodeTemplate) DeepCopy() *NodeTemplate

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

func (*NodeTemplate) DeepCopyInto

func (in *NodeTemplate) DeepCopyInto(out *NodeTemplate)

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

type NodeType

type NodeType string
const (
	NameNode          NodeType = "namenode"
	DataNode          NodeType = "datanode"
	SecondaryNameNode NodeType = "secondarynamenode"
)

type Placement

type Placement struct {
	metav1.TypeMeta `json:",inline"`
	NodeAffinity    *v1.NodeAffinity    `json:"nodeAffinity,omitempty"`
	PodAffinity     *v1.PodAffinity     `json:"podAffinity,omitempty"`
	PodAntiAffinity *v1.PodAntiAffinity `json:"podAntiAffinity,omitempty"`
	Tolerations     []v1.Toleration     `json:"tolerations,omitemtpy"`
}

Placement encapsulates the various kubernetes options that control where pods are scheduled and executed.

func (*Placement) DeepCopy

func (in *Placement) DeepCopy() *Placement

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

func (*Placement) DeepCopyInto

func (in *Placement) DeepCopyInto(out *Placement)

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

func (*Placement) DeepCopyObject

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

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

type PlacementSpec

type PlacementSpec struct {
	metav1.TypeMeta `json:",inline"`
	All             Placement `json:"all,omitempty"`
	API             Placement `json:"api,omitempty"`
	SERVER          Placement `json:"server,omitempty"`
}

func (*PlacementSpec) DeepCopy

func (in *PlacementSpec) DeepCopy() *PlacementSpec

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

func (*PlacementSpec) DeepCopyInto

func (in *PlacementSpec) DeepCopyInto(out *PlacementSpec)

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

func (*PlacementSpec) DeepCopyObject

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

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

type PodPolicy

type PodPolicy struct {
	Resources v1.ResourceRequirements `json:"resources,omitempty"`
}

func (*PodPolicy) DeepCopy

func (in *PodPolicy) DeepCopy() *PodPolicy

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

func (*PodPolicy) DeepCopyInto

func (in *PodPolicy) DeepCopyInto(out *PodPolicy)

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

type ResourceSpec

type ResourceSpec struct {
	API    v1.ResourceRequirements `json:"api,omitempty"`
	SERVER v1.ResourceRequirements `json:"server,omitempty"`
}

func (*ResourceSpec) DeepCopy

func (in *ResourceSpec) DeepCopy() *ResourceSpec

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

func (*ResourceSpec) DeepCopyInto

func (in *ResourceSpec) DeepCopyInto(out *ResourceSpec)

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

type YarnSpec

type YarnSpec struct {
	Count *int32 `json:"count,omitempty"`

	StatefulSetName string `json:"statefulSetName,omitempty"`

	ServiceName string `json:"serviceName,omitempty"`

	Pod *PodPolicy `json:"pod,omitempty"`
}

func (*YarnSpec) DeepCopy

func (in *YarnSpec) DeepCopy() *YarnSpec

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

func (*YarnSpec) DeepCopyInto

func (in *YarnSpec) DeepCopyInto(out *YarnSpec)

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