Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the kibana v1 API group +kubebuilder:object:generate=true +groupName=kibana.k8s.webcenter.fr
Index ¶
Constants ¶
const (
KibanaAnnotationKey = "kibana.k8s.webcenter.fr"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "kibana.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 SetupKibanaIndexer ¶
SetupKibanaIndexer setup indexer for kibana
Types ¶
type Kibana ¶
type Kibana struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec KibanaSpec `json:"spec,omitempty"` Status KibanaStatus `json:"status,omitempty"` }
Kibana is the Schema for the kibanas API +operator-sdk:csv:customresourcedefinitions:resources={{Ingress,networking.k8s.io/v1},{ConfigMap,v1},{Service,v1},{Secret,v1},{Deployment,apps/v1},{NetworkPolicy,networking.k8s.io/v1},{PodDisruptionBudget,policy/v1},{PodMonitor,monitoring.coreos.com/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 (*Kibana) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Kibana.
func (*Kibana) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Kibana) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Kibana) GetStatus ¶
func (h *Kibana) GetStatus() object.MultiPhaseObjectStatus
GetStatus implement the object.MultiPhaseObject
type KibanaDeploymentSpec ¶
type KibanaDeploymentSpec struct { shared.Deployment `json:",inline"` // AntiAffinity permit to set anti affinity policy // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional AntiAffinity *shared.DeploymentAntiAffinitySpec `json:"antiAffinity,omitempty"` // PodDisruptionBudget is the pod disruption budget policy // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional PodDisruptionBudgetSpec *policyv1.PodDisruptionBudgetSpec `json:"podDisruptionBudget,omitempty"` // Node permit to set extra option on Node process // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Node string `json:"node,omitempty"` // InitContainerResources permit to set resources on init containers // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional InitContainerResources *corev1.ResourceRequirements `json:"initContainerResources,omitempty"` }
func (*KibanaDeploymentSpec) DeepCopy ¶
func (in *KibanaDeploymentSpec) DeepCopy() *KibanaDeploymentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KibanaDeploymentSpec.
func (*KibanaDeploymentSpec) DeepCopyInto ¶
func (in *KibanaDeploymentSpec) DeepCopyInto(out *KibanaDeploymentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KibanaList ¶
type KibanaList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Kibana `json:"items"` }
KibanaList contains a list of Kibana
func (*KibanaList) DeepCopy ¶
func (in *KibanaList) DeepCopy() *KibanaList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KibanaList.
func (*KibanaList) DeepCopyInto ¶
func (in *KibanaList) DeepCopyInto(out *KibanaList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KibanaList) DeepCopyObject ¶
func (in *KibanaList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KibanaSpec ¶
type KibanaSpec struct { shared.ImageSpec `json:",inline"` // ElasticsearchRef is the Elasticsearch ref to connect on. // +operator-sdk:csv:customresourcedefinitions:type=spec ElasticsearchRef shared.ElasticsearchRef `json:"elasticsearchRef"` // Version is the Kibana version to use // Default is use the latest // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional // +kubebuilder:default=latest Version string `json:"version,omitempty"` // PluginsList is the list of additionnal plugin to install on each Kibana instance // Default is empty // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional PluginsList []string `json:"pluginsList,omitempty"` // Endpoint permit to set endpoints to access on Kibana 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 Kibana config // The key is the file stored on kibana/config // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Config map[string]string `json:"config,omitempty"` // KeystoreSecretRef is the secret that store the security settings // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional KeystoreSecretRef *corev1.LocalObjectReference `json:"keystoreSecretRef,omitempty"` // Tls permit to set the TLS setting for Kibana access // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Tls shared.TlsSpec `json:"tls,omitempty"` // Deployment permit to set the deployment settings // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Deployment KibanaDeploymentSpec `json:"deployment,omitempty"` // Monitoring permit to monitor current cluster // Default, it not monitor cluster // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Monitoring shared.MonitoringSpec `json:"monitoring,omitempty"` }
KibanaSpec defines the desired state of Kibana +k8s:openapi-gen=true
func (*KibanaSpec) DeepCopy ¶
func (in *KibanaSpec) DeepCopy() *KibanaSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KibanaSpec.
func (*KibanaSpec) DeepCopyInto ¶
func (in *KibanaSpec) DeepCopyInto(out *KibanaSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KibanaStatus ¶
type KibanaStatus struct { apis.BasicMultiPhaseObjectStatus `json:",inline"` // Url is the Kibana endpoint // +operator-sdk:csv:customresourcedefinitions:type=status Url string `json:"url,omitempty"` }
KibanaStatus defines the observed state of Kibana
func (*KibanaStatus) DeepCopy ¶
func (in *KibanaStatus) DeepCopy() *KibanaStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KibanaStatus.
func (*KibanaStatus) DeepCopyInto ¶
func (in *KibanaStatus) DeepCopyInto(out *KibanaStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.