Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the monitor v1 API group +kubebuilder:object:generate=true +groupName=monitor.k8s.webcenter.fr
Index ¶
- Variables
- type CentreonService
- func (in *CentreonService) DeepCopy() *CentreonService
- func (in *CentreonService) DeepCopyInto(out *CentreonService)
- func (in *CentreonService) DeepCopyObject() runtime.Object
- func (c *CentreonService) IsValid() bool
- func (h *CentreonService) ToCentreonService() (*centreonhandler.CentreonService, error)
- type CentreonServiceGroup
- func (in *CentreonServiceGroup) DeepCopy() *CentreonServiceGroup
- func (in *CentreonServiceGroup) DeepCopyInto(out *CentreonServiceGroup)
- func (in *CentreonServiceGroup) DeepCopyObject() runtime.Object
- func (h *CentreonServiceGroup) IsValid() bool
- func (h *CentreonServiceGroup) ToCentreonServiceGroup() (*centreonhandler.CentreonServiceGroup, error)
- type CentreonServiceGroupList
- type CentreonServiceGroupSpec
- type CentreonServiceGroupStatus
- type CentreonServiceList
- type CentreonServiceSpec
- type CentreonServiceStatus
- type Platform
- type PlatformList
- type PlatformSpec
- type PlatformSpecCentreonSettings
- type PlatformStatus
- type Template
- type TemplateList
- type TemplateSpec
- type TemplateStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "monitor.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 ¶
This section is empty.
Types ¶
type CentreonService ¶
type CentreonService struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CentreonServiceSpec `json:"spec,omitempty"` Status CentreonServiceStatus `json:"status,omitempty"` }
CentreonService is the Schema for the centreonservices API +operator-sdk:csv:customresourcedefinitions:resources={{None,None,None}} +kubebuilder:resource:shortName=mcs +kubebuilder:printcolumn:name="Healthy",type="string",JSONPath=".status.conditions[0].status",description="Resource state on Centreon" +kubebuilder:printcolumn:name="Host",type="string",JSONPath=".spec.host" +kubebuilder:printcolumn:name="Service",type="string",JSONPath=".spec.name" +kubebuilder:printcolumn:name="Platform",type="string",JSONPath=".spec.platformRef" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (*CentreonService) DeepCopy ¶
func (in *CentreonService) DeepCopy() *CentreonService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CentreonService.
func (*CentreonService) DeepCopyInto ¶
func (in *CentreonService) DeepCopyInto(out *CentreonService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CentreonService) DeepCopyObject ¶
func (in *CentreonService) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CentreonService) IsValid ¶
func (c *CentreonService) IsValid() bool
IsValid check Centreon service is valid for Centreon
func (*CentreonService) ToCentreonService ¶
func (h *CentreonService) ToCentreonService() (*centreonhandler.CentreonService, error)
type CentreonServiceGroup ¶
type CentreonServiceGroup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CentreonServiceGroupSpec `json:"spec,omitempty"` Status CentreonServiceGroupStatus `json:"status,omitempty"` }
CentreonServiceGroup is the Schema for the centreonservicegroups API +operator-sdk:csv:customresourcedefinitions:resources={{None,None,None}} +kubebuilder:resource:shortName=mcsg +kubebuilder:printcolumn:name="Healthy",type="string",JSONPath=".status.conditions[0].status",description="Resource state on Centreon" +kubebuilder:printcolumn:name="ServiceGroup",type="string",JSONPath=".spec.name" +kubebuilder:printcolumn:name="Platform",type="string",JSONPath=".spec.platformRef" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (*CentreonServiceGroup) DeepCopy ¶
func (in *CentreonServiceGroup) DeepCopy() *CentreonServiceGroup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CentreonServiceGroup.
func (*CentreonServiceGroup) DeepCopyInto ¶
func (in *CentreonServiceGroup) DeepCopyInto(out *CentreonServiceGroup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CentreonServiceGroup) DeepCopyObject ¶
func (in *CentreonServiceGroup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CentreonServiceGroup) IsValid ¶
func (h *CentreonServiceGroup) IsValid() bool
IsValid check Centreon service is valid for Centreon
func (*CentreonServiceGroup) ToCentreonServiceGroup ¶
func (h *CentreonServiceGroup) ToCentreonServiceGroup() (*centreonhandler.CentreonServiceGroup, error)
ToCentreonServiceGroup permit to convert current spec to centreonServiceGroup object
type CentreonServiceGroupList ¶
type CentreonServiceGroupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CentreonServiceGroup `json:"items"` }
CentreonServiceGroupList contains a list of CentreonServiceGroup
func (*CentreonServiceGroupList) DeepCopy ¶
func (in *CentreonServiceGroupList) DeepCopy() *CentreonServiceGroupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CentreonServiceGroupList.
func (*CentreonServiceGroupList) DeepCopyInto ¶
func (in *CentreonServiceGroupList) DeepCopyInto(out *CentreonServiceGroupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CentreonServiceGroupList) DeepCopyObject ¶
func (in *CentreonServiceGroupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CentreonServiceGroupSpec ¶
type CentreonServiceGroupSpec struct { // PlatformRef is the target platform where to create serviceGroup // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional PlatformRef string `json:"platformRef,omitempty"` // The serviceGroup name // +operator-sdk:csv:customresourcedefinitions:type=spec Name string `json:"name"` // The serviceGroup description // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Description string `json:"description"` // Activate or disable service // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Activated bool `json:"activate,omitempty"` // Policy define the policy that controller need to respect when it reconcile resource // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Policy shared.Policy `json:"policy,omitempty"` }
CentreonServiceGroupSpec defines the desired state of CentreonServiceGroup +k8s:openapi-gen=true
func (*CentreonServiceGroupSpec) DeepCopy ¶
func (in *CentreonServiceGroupSpec) DeepCopy() *CentreonServiceGroupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CentreonServiceGroupSpec.
func (*CentreonServiceGroupSpec) DeepCopyInto ¶
func (in *CentreonServiceGroupSpec) DeepCopyInto(out *CentreonServiceGroupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CentreonServiceGroupStatus ¶
type CentreonServiceGroupStatus struct { // The service group name // +operator-sdk:csv:customresourcedefinitions:type=status ServiceGroupName string `json:"serviceGroupName,omitempty"` // List of conditions // +operator-sdk:csv:customresourcedefinitions:type=status Conditions []metav1.Condition `json:"conditions"` }
CentreonServiceGroupStatus defines the observed state of CentreonServiceGroup
func (*CentreonServiceGroupStatus) DeepCopy ¶
func (in *CentreonServiceGroupStatus) DeepCopy() *CentreonServiceGroupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CentreonServiceGroupStatus.
func (*CentreonServiceGroupStatus) DeepCopyInto ¶
func (in *CentreonServiceGroupStatus) DeepCopyInto(out *CentreonServiceGroupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CentreonServiceList ¶
type CentreonServiceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CentreonService `json:"items"` }
CentreonServiceList contains a list of CentreonService
func (*CentreonServiceList) DeepCopy ¶
func (in *CentreonServiceList) DeepCopy() *CentreonServiceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CentreonServiceList.
func (*CentreonServiceList) DeepCopyInto ¶
func (in *CentreonServiceList) DeepCopyInto(out *CentreonServiceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CentreonServiceList) DeepCopyObject ¶
func (in *CentreonServiceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CentreonServiceSpec ¶
type CentreonServiceSpec struct { // PlatformRef is the target platform where to create service // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional PlatformRef string `json:"platformRef,omitempty"` // The service name // +operator-sdk:csv:customresourcedefinitions:type=spec Name string `json:"name"` // The host to attach the service // +operator-sdk:csv:customresourcedefinitions:type=spec Host string `json:"host"` // The service templates // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Template string `json:"template,omitempty"` // The list of service groups // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Groups []string `json:"groups,omitempty"` // The map of macros // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Macros map[string]string `json:"macros,omitempty"` // The list of arguments // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Arguments []string `json:"arguments,omitempty"` // The list of categories // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Categories []string `json:"categories,omitempty"` // The check command // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional CheckCommand string `json:"checkCommand,omitempty"` // The normal check interval // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional NormalCheckInterval string `json:"normalCheckInterval,omitempty"` // The retry check interval // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional RetryCheckInterval string `json:"retryCheckInterval,omitempty"` // The max check attemps // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional MaxCheckAttempts string `json:"maxCheckAttempts,omitempty"` // The active check enable // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional ActiveCheckEnabled *bool `json:"activeChecksEnabled,omitempty"` // The passive check enable // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional PassiveCheckEnabled *bool `json:"passiveChecksEnabled,omitempty"` // Activate or disable service // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Activated bool `json:"activate,omitempty"` // Policy define the policy that controller need to respect when it reconcile resource // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Policy shared.Policy `json:"policy,omitempty"` }
CentreonServiceSpec defines the desired state of CentreonService +k8s:openapi-gen=true
func (*CentreonServiceSpec) DeepCopy ¶
func (in *CentreonServiceSpec) DeepCopy() *CentreonServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CentreonServiceSpec.
func (*CentreonServiceSpec) DeepCopyInto ¶
func (in *CentreonServiceSpec) DeepCopyInto(out *CentreonServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CentreonServiceStatus ¶
type CentreonServiceStatus struct { // The host affected to service on Centreon // +operator-sdk:csv:customresourcedefinitions:type=status Host string `json:"host,omitempty"` // The service name // +operator-sdk:csv:customresourcedefinitions:type=status ServiceName string `json:"serviceName,omitempty"` // List of conditions // +operator-sdk:csv:customresourcedefinitions:type=status Conditions []metav1.Condition `json:"conditions"` }
CentreonServiceStatus defines the observed state of CentreonService
func (*CentreonServiceStatus) DeepCopy ¶
func (in *CentreonServiceStatus) DeepCopy() *CentreonServiceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CentreonServiceStatus.
func (*CentreonServiceStatus) DeepCopyInto ¶
func (in *CentreonServiceStatus) DeepCopyInto(out *CentreonServiceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Platform ¶
type Platform struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PlatformSpec `json:"spec,omitempty"` Status PlatformStatus `json:"status,omitempty"` }
Platform is the Schema for the platforms API +operator-sdk:csv:customresourcedefinitions:resources={{Secret,v1,monitoring-credentials}} +kubebuilder:printcolumn:name="Healthy",type="string",JSONPath=".status.conditions[0].status",description="Resource state on Centreon" +kubebuilder:printcolumn:name="Default",type="boolean",JSONPath=".spec.isDefault" +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (*Platform) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Platform.
func (*Platform) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Platform) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PlatformList ¶
type PlatformList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Platform `json:"items"` }
PlatformList contains a list of Platform
func (*PlatformList) DeepCopy ¶
func (in *PlatformList) DeepCopy() *PlatformList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlatformList.
func (*PlatformList) DeepCopyInto ¶
func (in *PlatformList) DeepCopyInto(out *PlatformList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PlatformList) DeepCopyObject ¶
func (in *PlatformList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PlatformSpec ¶
type PlatformSpec struct { // IsDefault is set to tru to use this plateform when is not specify on resource to create // +operator-sdk:csv:customresourcedefinitions:type=spec IsDefault bool `json:"isDefault"` // PlatformType is the platform type. // It support only `centreon` at this time // +operator-sdk:csv:customresourcedefinitions:type=spec PlatformType string `json:"type"` // CentreonSettings is the setting for Centreon plateform type // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional CentreonSettings *PlatformSpecCentreonSettings `json:"centreonSettings,omitempty"` }
PlatformSpec defines the desired state of Platform +k8s:openapi-gen=true
func (*PlatformSpec) DeepCopy ¶
func (in *PlatformSpec) DeepCopy() *PlatformSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlatformSpec.
func (*PlatformSpec) DeepCopyInto ¶
func (in *PlatformSpec) DeepCopyInto(out *PlatformSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PlatformSpecCentreonSettings ¶
type PlatformSpecCentreonSettings struct { // URL is the full URL to access on Centreon API // +operator-sdk:csv:customresourcedefinitions:type=spec URL string `json:"url"` // SelfSignedCertificat is true if you shouldn't check Centreon API certificate // +operator-sdk:csv:customresourcedefinitions:type=spec SelfSignedCertificate bool `json:"selfSignedCertificat"` // Secret is the secret that store the username and password to access on Centreon API // It need to have `username` and `password` key // +operator-sdk:csv:customresourcedefinitions:type=spec Secret string `json:"secret"` }
func (*PlatformSpecCentreonSettings) DeepCopy ¶
func (in *PlatformSpecCentreonSettings) DeepCopy() *PlatformSpecCentreonSettings
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlatformSpecCentreonSettings.
func (*PlatformSpecCentreonSettings) DeepCopyInto ¶
func (in *PlatformSpecCentreonSettings) DeepCopyInto(out *PlatformSpecCentreonSettings)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PlatformStatus ¶
type PlatformStatus struct { // List of conditions // +operator-sdk:csv:customresourcedefinitions:type=status Conditions []metav1.Condition `json:"conditions"` }
PlatformStatus defines the observed state of Platform
func (*PlatformStatus) DeepCopy ¶
func (in *PlatformStatus) DeepCopy() *PlatformStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlatformStatus.
func (*PlatformStatus) DeepCopyInto ¶
func (in *PlatformStatus) DeepCopyInto(out *PlatformStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Template ¶
type Template struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TemplateSpec `json:"spec,omitempty"` Status TemplateStatus `json:"status,omitempty"` }
Template is the Schema for the templates API +operator-sdk:csv:customresourcedefinitions:resources={{CentreonService,v1,centreonService},{CentreonServiceGroup,v1,centreonServiceGroup}} +kubebuilder:resource:shortName=mtmpl +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (*Template) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Template.
func (*Template) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Template) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TemplateList ¶
type TemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Template `json:"items"` }
TemplateList contains a list of Template
func (*TemplateList) DeepCopy ¶
func (in *TemplateList) DeepCopy() *TemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateList.
func (*TemplateList) DeepCopyInto ¶
func (in *TemplateList) DeepCopyInto(out *TemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TemplateList) DeepCopyObject ¶
func (in *TemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TemplateSpec ¶
type TemplateSpec struct { // Type is the object type it generate from template // +operator-sdk:csv:customresourcedefinitions:type=spec Type string `json:"type"` // Name is the resource name generated from template // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional Name string `json:"name,omitempty"` // Template is the CentreonService template base on golang templating // You need only provide the spec contend // +operator-sdk:csv:customresourcedefinitions:type=spec Template string `json:"template"` }
TemplateSpec defines the desired state of Template +k8s:openapi-gen=true
func (*TemplateSpec) DeepCopy ¶
func (in *TemplateSpec) DeepCopy() *TemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateSpec.
func (*TemplateSpec) DeepCopyInto ¶
func (in *TemplateSpec) DeepCopyInto(out *TemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TemplateStatus ¶
type TemplateStatus struct { // Fake status to generate bundle manifest without error // +operator-sdk:csv:customresourcedefinitions:type=status Status string `json:"status,omitempty"` }
TemplateStatus defines the observed state of Template
func (*TemplateStatus) DeepCopy ¶
func (in *TemplateStatus) DeepCopy() *TemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateStatus.
func (*TemplateStatus) DeepCopyInto ¶
func (in *TemplateStatus) DeepCopyInto(out *TemplateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.