Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the es v1alpha1 API group +kubebuilder:object:generate=true +groupName=es.noah.domain
Index ¶
- Constants
- Variables
- type Elastalert
- type ElastalertList
- type ElastalertSpec
- type ElastalertStatus
- type FreeForm
- func (in *FreeForm) DeepCopy() *FreeForm
- func (in *FreeForm) DeepCopyInto(out *FreeForm)
- func (o FreeForm) GetMap() (map[string]interface{}, error)
- func (o FreeForm) GetStringMap() (map[string]string, error)
- func (o FreeForm) IsEmpty() bool
- func (o FreeForm) MarshalJSON() ([]byte, error)
- func (o *FreeForm) UnmarshalJSON(b []byte) error
Constants ¶
const ( // +k8s:openapi-gen=true ElastAlertPhraseFailed = "FAILED" ElastAlertInitializing = "INITIALIZING" // +k8s:openapi-gen=true ElastAlertPhraseSucceeded = "RUNNING" ElastAlertAvailableReason = "NewElastAlertAvailable" ElastAlertAvailableType = "Progressing" ElastAlertAvailableStatus = "True" ElastAlertUnAvailableReason = "ElastAlertUnAvailable" ElastAlertUnKnowReason = "ResourcesCreating" ElastAlertUnAvailableType = "Stopped" ElastAlertUnAvailableStatus = "False" ElastAlertUnKnownStatus = "Unknown" ResourcesCreating = "starting" ActionSuccess = "success" ActionFailed = "failed" ElastAlertVersion = "v1.0" ConfigSuffx = "-config" RuleSuffx = "-rule" RuleMountPath = "/etc/elastalert/rules" ConfigMountPath = "/etc/elastalert" ElastAlertObserveInterval = time.Minute ElastAlertPollInterval = time.Second * 5 )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "es.noah.domain", Version: "v1alpha1"} // 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 ¶
This section is empty.
Types ¶
type Elastalert ¶
type Elastalert struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ElastalertSpec `json:"spec,omitempty"` Status ElastalertStatus `json:"status,omitempty"` }
+k8s:openapi-gen=true +operator-sdk:gen-csv:customresourcedefinitions.displayName="Elastalert" +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase",description="Elastalert instance's status" +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".status.version",description="Elastalert Version" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" Elastalert is the Schema for the elastalerts API
func (*Elastalert) DeepCopy ¶
func (in *Elastalert) DeepCopy() *Elastalert
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Elastalert.
func (*Elastalert) DeepCopyInto ¶
func (in *Elastalert) DeepCopyInto(out *Elastalert)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Elastalert) DeepCopyObject ¶
func (in *Elastalert) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ElastalertList ¶
type ElastalertList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Elastalert `json:"items"` }
ElastalertList contains a list of Elastalert
func (*ElastalertList) DeepCopy ¶
func (in *ElastalertList) DeepCopy() *ElastalertList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElastalertList.
func (*ElastalertList) DeepCopyInto ¶
func (in *ElastalertList) DeepCopyInto(out *ElastalertList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ElastalertList) DeepCopyObject ¶
func (in *ElastalertList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ElastalertSpec ¶
type ElastalertSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make" to regenerate code after modifying this file PodTemplateSpec v1.PodTemplateSpec `json:"podTemplate,omitempty"` Image string `json:"image,omitempty"` Cert string `json:"cert,omitempty"` ConfigSetting FreeForm `json:"config"` Rule []FreeForm `json:"rule"` // +optional Alert FreeForm `json:"overall,omitempty"` }
ElastalertSpec defines the desired state of Elastalert +k8s:openapi-gen=true
func (*ElastalertSpec) DeepCopy ¶
func (in *ElastalertSpec) DeepCopy() *ElastalertSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElastalertSpec.
func (*ElastalertSpec) DeepCopyInto ¶
func (in *ElastalertSpec) DeepCopyInto(out *ElastalertSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ElastalertStatus ¶
type ElastalertStatus struct { Version string `json:"version,omitempty"` Phase string `json:"phase,omitempty"` Condictions []metav1.Condition `json:"conditions,omitempty"` }
+k8s:openapi-gen=true ElastalertStatus defines the observed state of Elastalert
func (*ElastalertStatus) DeepCopy ¶
func (in *ElastalertStatus) DeepCopy() *ElastalertStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElastalertStatus.
func (*ElastalertStatus) DeepCopyInto ¶
func (in *ElastalertStatus) DeepCopyInto(out *ElastalertStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FreeForm ¶
type FreeForm struct {
// contains filtered or unexported fields
}
FreeForm defines a common options parameter that maintains the hierarchical structure of the data, unlike Options which flattens the hierarchy into a key/value map where the hierarchy is converted to '.' separated items in the key. +kubebuilder:pruning:PreserveUnknownFields
func NewFreeForm ¶
NewFreeForm build a new FreeForm object based on the given map
func (*FreeForm) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FreeForm.
func (*FreeForm) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (FreeForm) MarshalJSON ¶
MarshalJSON specifies how to convert this object into JSON
func (*FreeForm) UnmarshalJSON ¶
UnmarshalJSON implements an alternative parser for this field