v1

package
v0.0.0-...-6b6aee0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1 contains API schema definitions for managing Kibana resources. +k8s:deepcopy-gen=package +groupName=kibana.k8s.elastic.co

Package v1 contains API Schema definitions for the app v1 API group +kubebuilder:object:generate=true +groupName=kibana.k8s.elastic.co

Package v1 功能描述: Date: 2022/5/20 author: lixiaoming

Index

Constants

View Source
const (
	KibanaContainerName = "kibana"
)

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "kibana.k8s.elastic.co", Version: "v1"}
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupVersion.Group, Version: GroupVersion.Version}

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 Kibana

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

	Spec   KibanaSpec   `json:"spec,omitempty"`
	Status KibanaStatus `json:"status,omitempty"`
	// contains filtered or unexported fields
}

Kibana represents a Kibana resource in a Kubernetes cluster. +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:resource:categories=elastic,shortName=kb +kubebuilder:subresource:status +kubebuilder:printcolumn:name="health",type="string",JSONPath=".status.health" +kubebuilder:printcolumn:name="nodes",type="integer",JSONPath=".status.availableNodes",description="Available nodes" +kubebuilder:printcolumn:name="version",type="string",JSONPath=".status.version",description="Kibana version" +kubebuilder:printcolumn:name="age",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:storageversion

func (*Kibana) Associated

func (k *Kibana) Associated() commonv1.Associated

func (*Kibana) AssociationConf

func (k *Kibana) AssociationConf() *commonv1.AssociationConf

func (*Kibana) AssociationConfAnnotationName

func (k *Kibana) AssociationConfAnnotationName() string

func (*Kibana) AssociationID

func (k *Kibana) AssociationID() string

func (*Kibana) AssociationRef

func (k *Kibana) AssociationRef() commonv1.ObjectSelector

func (*Kibana) AssociationStatusMap

func (k *Kibana) AssociationStatusMap(typ commonv1.AssociationType) commonv1.AssociationStatusMap

func (*Kibana) AssociationType

func (k *Kibana) AssociationType() commonv1.AssociationType

func (*Kibana) DeepCopy

func (in *Kibana) DeepCopy() *Kibana

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

func (*Kibana) DeepCopyInto

func (in *Kibana) DeepCopyInto(out *Kibana)

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

func (*Kibana) DeepCopyObject

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

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

func (*Kibana) GetAssociations

func (k *Kibana) GetAssociations() []commonv1.Association

func (*Kibana) IsMarkedForDeletion

func (k *Kibana) IsMarkedForDeletion() bool

IsMarkedForDeletion returns true if the Kibana is going to be deleted

func (*Kibana) RequiresAssociation

func (k *Kibana) RequiresAssociation() bool

RequiresAssociation returns true if the spec specifies an Elasticsearch reference.

func (*Kibana) SecureSettings

func (k *Kibana) SecureSettings() []commonv1.SecretSource

func (*Kibana) ServiceAccountName

func (k *Kibana) ServiceAccountName() string

func (*Kibana) SetAssociationConf

func (k *Kibana) SetAssociationConf(assocConf *commonv1.AssociationConf)

func (*Kibana) SetAssociationStatusMap

func (k *Kibana) SetAssociationStatusMap(typ commonv1.AssociationType, status commonv1.AssociationStatusMap) error

type KibanaList

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

KibanaList contains a list of Kibana +kubebuilder:object:root=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

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 {
	// Version of Kibana.
	Version string `json:"version"`

	// Image is the Kibana Docker image to deploy.
	Image string `json:"image,omitempty"`

	// Count of Kibana instances to deploy.
	Count int32 `json:"count,omitempty"`

	// ElasticsearchRef is a reference to an Elasticsearch cluster running in the same Kubernetes cluster.
	ElasticsearchRef commonv1.ObjectSelector `json:"elasticsearchRef,omitempty"`

	// Config holds the Kibana configuration. See: https://www.elastic.co/guide/en/kibana/current/settings.html
	Config *commonv1.Config `json:"config,omitempty"`

	// HTTP holds the HTTP layer configuration for Kibana.
	HTTP commonv1.HTTPConfig `json:"http,omitempty"`

	// PodTemplate provides customisation options (labels, annotations, affinity rules, resource requests, and so on) for the Kibana pods
	// +kubebuilder:validation:Optional
	PodTemplate corev1.PodTemplateSpec `json:"podTemplate,omitempty"`

	// SecureSettings is a list of references to Kubernetes secrets containing sensitive configuration options for Kibana.
	SecureSettings []commonv1.SecretSource `json:"secureSettings,omitempty"`

	// ServiceAccountName is used to check access from the current resource to a resource (eg. Elasticsearch) in a different namespace.
	// Can only be used if ECK is enforcing RBAC on references.
	// +optional
	ServiceAccountName string `json:"serviceAccountName,omitempty"`
}

KibanaSpec holds the specification of a Kibana instance.

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 {
	commonv1.DeploymentStatus `json:",inline"`
	AssociationStatus         commonv1.AssociationStatus `json:"associationStatus,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.

Jump to

Keyboard shortcuts

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