Skip to content

Commit 6cbd5a8

Browse files
committed
[FEATURE] OperatorManager: monitoring config added
Add config based on recent helm changes.
1 parent 9351024 commit 6cbd5a8

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

api/v1alpha1/capoperator_types.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ type CAPOperatorSpec struct {
4747
IngressGatewayLabels []NameValue `json:"ingressGatewayLabels,omitempty"`
4848
// Controller specification
4949
Controller Controller `json:"controller,omitempty"`
50+
// Monitoring specification
51+
Monitoring Monitoring `json:"monitoring,omitempty"`
52+
}
53+
54+
type Monitoring struct {
55+
// Optionally enable Prometheus monitoring for all components
56+
Enabled bool `json:"enabled"`
5057
}
5158

5259
type SubscriptionServer struct {

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/operator.sme.sap.com_capoperators.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1930,6 +1930,15 @@ spec:
19301930
type: object
19311931
minItems: 1
19321932
type: array
1933+
monitoring:
1934+
description: Monitoring specification
1935+
properties:
1936+
enabled:
1937+
description: Optionally enable Prometheus monitoring for all components
1938+
type: boolean
1939+
required:
1940+
- enabled
1941+
type: object
19331942
subscriptionServer:
19341943
description: SubscriptionServer specification
19351944
properties:

0 commit comments

Comments
 (0)