Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the monitoring v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=monitoring.operator.ibm.com
Package v1alpha1 contains API Schema definitions for the monitoring v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=monitoring.operator.ibm.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "monitoring.operator.ibm.com", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
Types ¶
type Certs ¶
type Certs struct { // Exorters' tls cert. Define the secret name. It will not be recreated when existing // It should be generated by cert manager so there should be ca.crt in the secret ExporterSecret string `json:"exporterSecret"` // The clusterissuer name. Issuer string `json:"issuer,omitempty"` // If it is false, user can create secret manually before creating CR and operator will not recreate it if secret exists already // If it is true, operator will recreate secret if it is not created by certificate (cert-manager) AutoClean bool `json:"autoClean,omitempty"` }
Certs defines certifications used by all exporters
func (*Certs) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Certs.
func (*Certs) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Collectd ¶
type Collectd struct { Enable bool `json:"enable"` //SCC privileged should have been added to the service account already by administrator ServiceAccount string `json:"serviceAccount,omitempty"` MetricsPort int32 `json:"metricsPort,omitempty"` CollectorPort int32 `json:"collectorPort,omitempty"` Image string `json:"image,omitempty"` RouterResource v1.ResourceRequirements `json:"routerResource,omitempty"` Resource v1.ResourceRequirements `json:"resource,omitempty"` }
Collectd defines desired state of Collectd exporter
func (*Collectd) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Collectd.
func (*Collectd) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Exporter ¶
type Exporter struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ExporterSpec `json:"spec,omitempty"` Status ExporterStatus `json:"status,omitempty"` }
Exporter is the Schema for the exporters API +kubebuilder:subresource:status +kubebuilder:resource:path=exporters,scope=Namespaced +operator-sdk:gen-csv:customresourcedefinitions.displayName="IBM Monitoring Exporter"
func (*Exporter) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Exporter.
func (*Exporter) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Exporter) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ExporterList ¶
type ExporterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Exporter `json:"items"` }
ExporterList contains a list of Exporter
func (*ExporterList) DeepCopy ¶
func (in *ExporterList) DeepCopy() *ExporterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExporterList.
func (*ExporterList) DeepCopyInto ¶
func (in *ExporterList) DeepCopyInto(out *ExporterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExporterList) DeepCopyObject ¶
func (in *ExporterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ExporterSpec ¶
type ExporterSpec struct { //Configurations for tls certifications // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true Certs Certs `json:"certs,omitempty"` //Configurations for collectd deployment // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true Collectd Collectd `json:"collectd,omitempty"` // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true //Configurations for node-exporter daemonset NodeExporter NodeExporter `json:"nodeExporter,omitempty"` //Configurations for kube-state-metrics deployment // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true KubeStateMetrics KubeStateMetrics `json:"kubeStateMetrics,omitempty"` //Image pull policy // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true ImagePolicy v1.PullPolicy `json:"imagePolicy,omitempty"` //Extra image pull secrets // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true ImagePullSecrets []string `json:"imagePullSecrets,omitempty"` //Router image repo and tag // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true RouterImage string `json:"routerImage,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` }
ExporterSpec defines the desired state of Exporter
func (*ExporterSpec) DeepCopy ¶
func (in *ExporterSpec) DeepCopy() *ExporterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExporterSpec.
func (*ExporterSpec) DeepCopyInto ¶
func (in *ExporterSpec) DeepCopyInto(out *ExporterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExporterStatus ¶
type ExporterStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file // Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html //Status of tls certification // +operator-sdk:gen-csv:customresourcedefinitions.statusDescriptors=true Cert string `json:"cert,omitempty"` //Status of router configmap // +operator-sdk:gen-csv:customresourcedefinitions.statusDescriptors=true RouterConfigMap string `json:"routerConfigmap,omitempty"` //Status of collectd deployment // +operator-sdk:gen-csv:customresourcedefinitions.statusDescriptors=true Collectd appsv1.DeploymentStatus `json:"collectd,omitempty"` //Status of node-exporter daemonset // +operator-sdk:gen-csv:customresourcedefinitions.statusDescriptors=true NodeExporter appsv1.DaemonSetStatus `json:"nodeExporter,omitempty"` //Status of kube-state-metrics deployment // +operator-sdk:gen-csv:customresourcedefinitions.statusDescriptors=true KubeState appsv1.DeploymentStatus `json:"kubeState,omitempty"` }
ExporterStatus defines the observed state of Exporter
func (*ExporterStatus) DeepCopy ¶
func (in *ExporterStatus) DeepCopy() *ExporterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExporterStatus.
func (*ExporterStatus) DeepCopyInto ¶
func (in *ExporterStatus) DeepCopyInto(out *ExporterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeStateMetrics ¶
type KubeStateMetrics struct { Enable bool `json:"enable"` //SCC privileged should have been added to the service account already by administrator ServiceAccount string `json:"serviceAccount,omitempty"` Port int32 `json:"port,omitempty"` Image string `json:"image,omitempty"` RouterResource v1.ResourceRequirements `json:"routerResource,omitempty"` Resource v1.ResourceRequirements `json:"resource,omitempty"` }
KubeStateMetrics defines desired state of kube-state-metrics
func (*KubeStateMetrics) DeepCopy ¶
func (in *KubeStateMetrics) DeepCopy() *KubeStateMetrics
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeStateMetrics.
func (*KubeStateMetrics) DeepCopyInto ¶
func (in *KubeStateMetrics) DeepCopyInto(out *KubeStateMetrics)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeExporter ¶
type NodeExporter struct { Enable bool `json:"enable"` ////SCC privileged should have been added to the service account already by administrator ServiceAccount string `json:"serviceAccount,omitempty"` HostPort int32 `json:"hostPort,omitempty"` ServicePort int32 `json:"servicePort,omitempty"` HealthyPort int32 `json:"healtyPort,omitempty"` RouterResource v1.ResourceRequirements `json:"routerResource,omitempty"` Resource v1.ResourceRequirements `json:"resource,omitempty"` Image string `json:"image,omitempty"` }
NodeExporter defines desired state of NodeExporter exporter
func (*NodeExporter) DeepCopy ¶
func (in *NodeExporter) DeepCopy() *NodeExporter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporter.
func (*NodeExporter) DeepCopyInto ¶
func (in *NodeExporter) DeepCopyInto(out *NodeExporter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.