diff --git a/api/v1alpha1/capoperator_types.go b/api/v1alpha1/capoperator_types.go index 58b813d..6be70e9 100644 --- a/api/v1alpha1/capoperator_types.go +++ b/api/v1alpha1/capoperator_types.go @@ -47,6 +47,13 @@ type CAPOperatorSpec struct { IngressGatewayLabels []NameValue `json:"ingressGatewayLabels,omitempty"` // Controller specification Controller Controller `json:"controller,omitempty"` + // Monitoring specification + Monitoring Monitoring `json:"monitoring,omitempty"` +} + +type Monitoring struct { + // Optionally enable Prometheus monitoring for all components + Enabled bool `json:"enabled"` } type SubscriptionServer struct { diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index 22a16a0..a72861f 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -83,6 +83,7 @@ func (in *CAPOperatorSpec) DeepCopyInto(out *CAPOperatorSpec) { copy(*out, *in) } in.Controller.DeepCopyInto(&out.Controller) + out.Monitoring = in.Monitoring } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CAPOperatorSpec. @@ -145,6 +146,21 @@ func (in *Controller) DeepCopy() *Controller { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Monitoring) DeepCopyInto(out *Monitoring) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Monitoring. +func (in *Monitoring) DeepCopy() *Monitoring { + if in == nil { + return nil + } + out := new(Monitoring) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NameValue) DeepCopyInto(out *NameValue) { *out = *in diff --git a/config/crd/operator.sme.sap.com_capoperators.yaml b/config/crd/operator.sme.sap.com_capoperators.yaml index 6755318..707bb03 100644 --- a/config/crd/operator.sme.sap.com_capoperators.yaml +++ b/config/crd/operator.sme.sap.com_capoperators.yaml @@ -1930,6 +1930,15 @@ spec: type: object minItems: 1 type: array + monitoring: + description: Monitoring specification + properties: + enabled: + description: Optionally enable Prometheus monitoring for all components + type: boolean + required: + - enabled + type: object subscriptionServer: description: SubscriptionServer specification properties: