v1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// AddToScheme applies all the stored functions to the scheme. A non-nil error
	// indicates that one function failed and the attempt was abandoned.
	AddToScheme = schemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: zalando.GroupName, Version: "v1"}

SchemeGroupVersion is the group version used to register these objects.

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group-qualified GroupResource.

Types

type ElasticsearchDataSet

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

	Spec   ElasticsearchDataSetSpec   `json:"spec"`
	Status ElasticsearchDataSetStatus `json:"status"`
}

ElasticsearchDataSet describes an Elasticsearch dataset which is operated by the es-operator. +k8s:deepcopy-gen=true

func (*ElasticsearchDataSet) DeepCopy

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

func (*ElasticsearchDataSet) DeepCopyInto

func (in *ElasticsearchDataSet) DeepCopyInto(out *ElasticsearchDataSet)

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

func (*ElasticsearchDataSet) DeepCopyObject

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

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

type ElasticsearchDataSetList

type ElasticsearchDataSetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []ElasticsearchDataSet `json:"items"`
}

ElasticsearchDataSetList is a list of ElasticsearchDataSets. +k8s:deepcopy-gen=true

func (*ElasticsearchDataSetList) DeepCopy

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

func (*ElasticsearchDataSetList) DeepCopyInto

func (in *ElasticsearchDataSetList) DeepCopyInto(out *ElasticsearchDataSetList)

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

func (*ElasticsearchDataSetList) DeepCopyObject

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

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

type ElasticsearchDataSetScaling

type ElasticsearchDataSetScaling struct {
	Enabled                            bool    `json:"enabled"`
	MinReplicas                        int32   `json:"minReplicas"`
	MaxReplicas                        int32   `json:"maxReplicas"`
	MinIndexReplicas                   int32   `json:"minIndexReplicas"`
	MaxIndexReplicas                   int32   `json:"maxIndexReplicas"`
	MinShardsPerNode                   int32   `json:"minShardsPerNode"`
	MaxShardsPerNode                   int32   `json:"maxShardsPerNode"`
	ScaleUpCPUBoundary                 int32   `json:"scaleUpCPUBoundary"`
	ScaleUpThresholdDurationSeconds    int64   `json:"scaleUpThresholdDurationSeconds"`
	ScaleUpCooldownSeconds             int64   `json:"scaleUpCooldownSeconds"`
	ScaleDownCPUBoundary               int32   `json:"scaleDownCPUBoundary"`
	ScaleDownThresholdDurationSeconds  int64   `json:"scaleDownThresholdDurationSeconds"`
	ScaleDownCooldownSeconds           int64   `json:"scaleDownCooldownSeconds"`
	DiskUsagePercentScaledownWatermark float64 `json:"diskUsagePercentScaledownWatermark"`
}

ElasticsearchDataSetScaling is the scaling section of the ElasticsearchDataSet resource. +k8s:deepcopy-gen=true

func (*ElasticsearchDataSetScaling) DeepCopy

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

func (*ElasticsearchDataSetScaling) DeepCopyInto

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

type ElasticsearchDataSetSpec

type ElasticsearchDataSetSpec struct {
	// Number of desired pods. This is a pointer to distinguish between explicit
	// zero and not specified. Defaults to 1.
	// +optional
	Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"`

	// Template describes the pods that will be created.
	Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,3,opt,name=template"`

	// Scaling describes the scaling properties
	Scaling *ElasticsearchDataSetScaling `json:"scaling,omitempty"`

	// Template describe the volumeClaimTemplates
	VolumeClaimTemplates []v1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty" protobuf:"bytes,4,rep,name=volumeClaimTemplates"`
}

ElasticsearchDataSetSpec is the spec part of the Elasticsearch dataset. +k8s:deepcopy-gen=true

func (*ElasticsearchDataSetSpec) DeepCopy

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

func (*ElasticsearchDataSetSpec) DeepCopyInto

func (in *ElasticsearchDataSetSpec) DeepCopyInto(out *ElasticsearchDataSetSpec)

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

type ElasticsearchDataSetStatus

type ElasticsearchDataSetStatus struct {
	// observedGeneration is the most recent generation observed for this
	// ElasticsearchDataSet. It corresponds to the ElasticsearchDataSets
	// generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration *int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"`
	// Replicas is the number of Pods by the underlying StatefulSet.
	Replicas int32 `json:"replicas" protobuf:"varint,2,opt,name=replicas"`

	LastScaleUpStarted   *metav1.Time `json:"lastScaleUpStarted,omitempty"`
	LastScaleUpEnded     *metav1.Time `json:"lastScaleUpEnded,omitempty"`
	LastScaleDownStarted *metav1.Time `json:"lastScaleDownStarted,omitempty"`
	LastScaleDownEnded   *metav1.Time `json:"lastScaleDownEnded,omitempty"`
}

ElasticsearchDataSetStatus is the status section of the ElasticsearchDataSet resource. +k8s:deepcopy-gen=true

func (*ElasticsearchDataSetStatus) DeepCopy

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

func (*ElasticsearchDataSetStatus) DeepCopyInto

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

type ElasticsearchMetric

type ElasticsearchMetric struct {
	Timestamp metav1.Time `json:"timestamp"`
	Value     int32       `json:"value"`
}

ElasticsearchMetric is the single metric sample of the ElasticsearchDataSet resource. +k8s:deepcopy-gen=true

func (*ElasticsearchMetric) DeepCopy

func (in *ElasticsearchMetric) DeepCopy() *ElasticsearchMetric

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

func (*ElasticsearchMetric) DeepCopyInto

func (in *ElasticsearchMetric) DeepCopyInto(out *ElasticsearchMetric)

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

type ElasticsearchMetricSet

type ElasticsearchMetricSet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Metrics           []ElasticsearchMetric `json:"metrics"`
}

ElasticsearchMetricSet is the metrics holding section of the ElasticsearchDataSet resource. +k8s:deepcopy-gen=true

func (*ElasticsearchMetricSet) DeepCopy

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

func (*ElasticsearchMetricSet) DeepCopyInto

func (in *ElasticsearchMetricSet) DeepCopyInto(out *ElasticsearchMetricSet)

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

func (*ElasticsearchMetricSet) DeepCopyObject

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

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

type ElasticsearchMetricSetList

type ElasticsearchMetricSetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []ElasticsearchMetricSet `json:"items"`
}

ElasticsearchDataSetList is a list of ElasticsearchDataSets. +k8s:deepcopy-gen=true

func (*ElasticsearchMetricSetList) DeepCopy

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

func (*ElasticsearchMetricSetList) DeepCopyInto

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

func (*ElasticsearchMetricSetList) DeepCopyObject

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL