Skip to content

Commit

Permalink
[FEATURE] OperatorManager: Monitoring config added
Browse files Browse the repository at this point in the history
Add config based on recent helm changes.
- also support enabling detailed operational metrics
  • Loading branch information
Pavan-SAP committed Nov 18, 2024
1 parent 6aca25d commit ee14d93
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/v1alpha1/capoperator_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ type SubscriptionServer struct {
}

type Controller struct {
// Optionally enable detailed opertational metrics for the controller by setting this to true
DetailedOperationalMetrics bool `json:"detailedOperationalMetrics,omitempty"`
// Version monitoring configuration
VersionMonitoring *VersionMonitoring `json:"versionMonitoring,omitempty"`
// Optionally specify list of additional volumes for the controller pod(s)
Volumes []corev1.Volume `json:"volumes,omitempty"`
Expand Down
5 changes: 5 additions & 0 deletions config/crd/operator.sme.sap.com_capoperators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ spec:
controller:
description: Controller specification
properties:
detailedOperationalMetrics:
description: Optionally enable detailed opertational metrics for
the controller by setting this to true
type: boolean
versionMonitoring:
description: Version monitoring configuration
properties:
metricsEvaluationInterval:
description: The duration (example 2h) after which versions
Expand Down

0 comments on commit ee14d93

Please sign in to comment.