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.
  • Loading branch information
Pavan-SAP committed Nov 15, 2024
1 parent 9351024 commit 6aca25d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api/v1alpha1/capoperator_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
16 changes: 16 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions config/crd/operator.sme.sap.com_capoperators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6aca25d

Please sign in to comment.