Skip to content

Commit a8457a2

Browse files
committed
feat: added status report to status
1 parent 921bd2c commit a8457a2

File tree

3 files changed

+51
-1
lines changed

3 files changed

+51
-1
lines changed

api/crds/manifests/usage.openmcp.cloud_mcpusages.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,26 @@ spec:
8282
type: object
8383
status:
8484
description: MCPUsageStatus defines the observed state of MCPUsage.
85+
properties:
86+
daily_usage_report:
87+
description: |-
88+
INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
89+
Important: Run "make" to regenerate code after modifying this file
90+
items:
91+
properties:
92+
date:
93+
format: date-time
94+
type: string
95+
message:
96+
type: string
97+
status:
98+
type: string
99+
required:
100+
- date
101+
type: object
102+
type: array
103+
required:
104+
- daily_usage_report
85105
type: object
86106
type: object
87107
served: true

api/usage/v1/mcpusage_types.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ type MCPUsageSpec struct {
4444
type MCPUsageStatus struct {
4545
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
4646
// Important: Run "make" to regenerate code after modifying this file
47+
DailyUsageReport []DailyUsageReport `json:"daily_usage_report"`
48+
}
49+
50+
type DailyUsageReport struct {
51+
Date metav1.Time `json:"date"`
52+
Status string `json:"status,omitempty"`
53+
Message string `json:"message,omitempty"`
4754
}
4855

4956
type DailyUsage struct {

api/usage/v1/zz_generated.deepcopy.go

Lines changed: 24 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)