Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the cerebro v1 API group +kubebuilder:object:generate=true +groupName=cerebro.k8s.webcenter.fr
Index ¶
- Constants
- Variables
- func SetupCerebroIndexer(k8sManager manager.Manager) (err error)
- func SetupHostIndexer(k8sManager manager.Manager) (err error)
- type Cerebro
- type CerebroDeploymentSpec
- type CerebroList
- type CerebroSpec
- type CerebroStatus
- type ElasticsearchExternalRef
- type ElasticsearchRef
- type Host
- type HostCerebroRef
- type HostList
- type HostSpec
- type HostStatus
Constants ¶
const (
CerebroAnnotationKey = "cerebro.k8s.webcenter.fr"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "cerebro.k8s.webcenter.fr", Version: "v1"} // 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 ¶
func SetupCerebroIndexer ¶
SetupCerebroIndexer setup indexer for Cerebro
func SetupHostIndexer ¶
SetupHostIndexersetup indexer for Host
Types ¶
type Cerebro ¶
type Cerebro struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CerebroSpec `json:"spec,omitempty"` Status CerebroStatus `json:"status,omitempty"` }
Cerebro is the Schema for the cerebroes API +operator-sdk:csv:customresourcedefinitions:resources={{Ingress,networking.k8s.io/v1},{ConfigMap,v1},{Service,v1},{Secret,v1},{Deployment,apps/v1}} +kubebuilder:printcolumn:name="URL",type="string",JSONPath=".status.url" +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase",description="Phase" +kubebuilder:printcolumn:name="Error",type="boolean",JSONPath=".status.isOnError",description="Is on error" +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status",description="health" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (*Cerebro) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cerebro.
func (*Cerebro) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Cerebro) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Cerebro) GetStatus ¶
func (h *Cerebro) GetStatus() object.MultiPhaseObjectStatus
GetStatus implement the object.MultiPhaseObject
type CerebroDeploymentSpec ¶
type CerebroDeploymentSpec struct { shared.Deployment `json:",inline"` // Node permit to set extra option on Node process // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Node string `json:"node,omitempty"` }
func (*CerebroDeploymentSpec) DeepCopy ¶
func (in *CerebroDeploymentSpec) DeepCopy() *CerebroDeploymentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CerebroDeploymentSpec.
func (*CerebroDeploymentSpec) DeepCopyInto ¶
func (in *CerebroDeploymentSpec) DeepCopyInto(out *CerebroDeploymentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CerebroList ¶
type CerebroList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Cerebro `json:"items"` }
CerebroList contains a list of Cerebro
func (*CerebroList) DeepCopy ¶
func (in *CerebroList) DeepCopy() *CerebroList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CerebroList.
func (*CerebroList) DeepCopyInto ¶
func (in *CerebroList) DeepCopyInto(out *CerebroList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CerebroList) DeepCopyObject ¶
func (in *CerebroList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CerebroSpec ¶
type CerebroSpec struct { shared.ImageSpec `json:",inline"` // Version is the Cerebro version to use // Default is use the latest // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional // +kubebuilder:default=latest Version string `json:"version,omitempty"` // Endpoint permit to set endpoints to access on Cerebro from external kubernetes // You can set ingress and / or load balancer // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Endpoint shared.EndpointSpec `json:"endpoint,omitempty"` // Config is the Cerebro config // The key is the file stored on kibana/config // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Config map[string]string `json:"config,omitempty"` // Deployment permit to set the deployment settings // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Deployment CerebroDeploymentSpec `json:"deployment,omitempty"` }
CerebroSpec defines the desired state of Cerebro +k8s:openapi-gen=true
func (*CerebroSpec) DeepCopy ¶
func (in *CerebroSpec) DeepCopy() *CerebroSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CerebroSpec.
func (*CerebroSpec) DeepCopyInto ¶
func (in *CerebroSpec) DeepCopyInto(out *CerebroSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CerebroStatus ¶
type CerebroStatus struct { apis.BasicMultiPhaseObjectStatus `json:",inline"` // Url is the Cerebro endpoint // +operator-sdk:csv:customresourcedefinitions:type=status Url string `json:"url,omitempty"` }
CerebroStatus defines the observed state of Cerebro
func (*CerebroStatus) DeepCopy ¶
func (in *CerebroStatus) DeepCopy() *CerebroStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CerebroStatus.
func (*CerebroStatus) DeepCopyInto ¶
func (in *CerebroStatus) DeepCopyInto(out *CerebroStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ElasticsearchExternalRef ¶
type ElasticsearchExternalRef struct { // The cluster name to display on Cerabro // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Name string `json:"name"` // Address is the public URL to access on Elasticsearch // +operator-sdk:csv:customresourcedefinitions:type=spec Address string `json:"address"` }
func (*ElasticsearchExternalRef) DeepCopy ¶
func (in *ElasticsearchExternalRef) DeepCopy() *ElasticsearchExternalRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticsearchExternalRef.
func (*ElasticsearchExternalRef) DeepCopyInto ¶
func (in *ElasticsearchExternalRef) DeepCopyInto(out *ElasticsearchExternalRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ElasticsearchRef ¶
type ElasticsearchRef struct { // ManagedElasticsearchRef is the managed Elasticsearch cluster by operator // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional ManagedElasticsearchRef *corev1.LocalObjectReference `json:"managed,omitempty"` // ExternalElasticsearchRef is the external Elasticsearch cluster not managed by operator // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional ExternalElasticsearchRef *ElasticsearchExternalRef `json:"external,omitempty"` }
func (*ElasticsearchRef) DeepCopy ¶
func (in *ElasticsearchRef) DeepCopy() *ElasticsearchRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticsearchRef.
func (*ElasticsearchRef) DeepCopyInto ¶
func (in *ElasticsearchRef) DeepCopyInto(out *ElasticsearchRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ElasticsearchRef) IsExternal ¶
func (h ElasticsearchRef) IsExternal() bool
IsExternal permit to know if Elasticsearch is external (not managed by operator)
func (ElasticsearchRef) IsManaged ¶
func (h ElasticsearchRef) IsManaged() bool
IsManaged permit to know if Elasticsearch is managed by operator
type Host ¶
type Host struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec HostSpec `json:"spec,omitempty"` Status HostStatus `json:"status,omitempty"` }
Host is the Schema for the hosts API +operator-sdk:csv:customresourcedefinitions:resources={{none,none}} +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase",description="Phase" +kubebuilder:printcolumn:name="Error",type="boolean",JSONPath=".status.isOnError",description="Is on error" +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status",description="health" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (*Host) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Host.
func (*Host) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Host) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Host) GetStatus ¶
func (h *Host) GetStatus() object.MultiPhaseObjectStatus
GetStatus implement the object.MultiPhaseObject
type HostCerebroRef ¶
type HostCerebroRef struct { // Name is the cerebro name // +operator-sdk:csv:customresourcedefinitions:type=spec Name string `json:"name"` // Namespace is the cerebro namespace // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Namespace string `json:"namespace,omitempty"` }
func (*HostCerebroRef) DeepCopy ¶
func (in *HostCerebroRef) DeepCopy() *HostCerebroRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostCerebroRef.
func (*HostCerebroRef) DeepCopyInto ¶
func (in *HostCerebroRef) DeepCopyInto(out *HostCerebroRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HostList ¶
type HostList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Host `json:"items"` }
HostList contains a list of Host
func (*HostList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostList.
func (*HostList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HostList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HostSpec ¶
type HostSpec struct { // CerebroRef is the Cerebro where to enroll Elasticsearch cluster // +operator-sdk:csv:customresourcedefinitions:type=spec CerebroRef HostCerebroRef `json:"cerebroRef"` // ElasticsearchRef is the Elasticsearch cluster to enroll on // +operator-sdk:csv:customresourcedefinitions:type=spec ElasticsearchRef ElasticsearchRef `json:"elasticsearchRef"` }
HostSpec defines the desired state of Host +k8s:openapi-gen=true
func (*HostSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostSpec.
func (*HostSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HostStatus ¶
type HostStatus struct {
apis.BasicMultiPhaseObjectStatus `json:",inline"`
}
HostStatus defines the observed state of Host
func (*HostStatus) DeepCopy ¶
func (in *HostStatus) DeepCopy() *HostStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostStatus.
func (*HostStatus) DeepCopyInto ¶
func (in *HostStatus) DeepCopyInto(out *HostStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.