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
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Kibana
- func (k *Kibana) Associated() commonv1.Associated
- func (k *Kibana) AssociationConf() *commonv1.AssociationConf
- func (k *Kibana) AssociationConfAnnotationName() string
- func (k *Kibana) AssociationID() string
- func (k *Kibana) AssociationRef() commonv1.ObjectSelector
- func (k *Kibana) AssociationStatusMap(typ commonv1.AssociationType) commonv1.AssociationStatusMap
- func (k *Kibana) AssociationType() commonv1.AssociationType
- func (in *Kibana) DeepCopy() *Kibana
- func (in *Kibana) DeepCopyInto(out *Kibana)
- func (in *Kibana) DeepCopyObject() runtime.Object
- func (k *Kibana) GetAssociations() []commonv1.Association
- func (k *Kibana) IsMarkedForDeletion() bool
- func (k *Kibana) RequiresAssociation() bool
- func (k *Kibana) SecureSettings() []commonv1.SecretSource
- func (k *Kibana) ServiceAccountName() string
- func (k *Kibana) SetAssociationConf(assocConf *commonv1.AssociationConf)
- func (k *Kibana) SetAssociationStatusMap(typ commonv1.AssociationType, status commonv1.AssociationStatusMap) error
- type KibanaList
- type KibanaSpec
- type KibanaStatus
Constants ¶
const (
KibanaContainerName = "kibana"
)
Variables ¶
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 )
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "kibana.k8s.elastic.co", Version: "v1"} )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupVersion.Group, Version: GroupVersion.Version}
SchemeGroupVersion is 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 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 (*Kibana) AssociationID ¶
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 ¶
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) GetAssociations ¶
func (k *Kibana) GetAssociations() []commonv1.Association
func (*Kibana) IsMarkedForDeletion ¶
IsMarkedForDeletion returns true if the Kibana is going to be deleted
func (*Kibana) RequiresAssociation ¶
RequiresAssociation returns true if the spec specifies an Elasticsearch reference.
func (*Kibana) SecureSettings ¶
func (k *Kibana) SecureSettings() []commonv1.SecretSource
func (*Kibana) ServiceAccountName ¶
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.