Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add step and aggregation fields for kubectl get KeptnMetric #2556

Merged
merged 10 commits into from
Jan 17, 2024
6 changes: 6 additions & 0 deletions .github/scripts/.helm-tests/default/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8956,6 +8956,12 @@ spec:
- jsonPath: .spec.range.interval
name: Interval
type: string
- jsonPath: .spec.range.step
AryanSharma9917 marked this conversation as resolved.
Show resolved Hide resolved
name: Step
type: string
- jsonPath: .spec.range.aggregation
name: Aggregation
type: string
- jsonPath: .status.value
name: Value
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1397,6 +1397,12 @@ spec:
- jsonPath: .spec.range.interval
name: Interval
type: string
- jsonPath: .spec.range.step
name: Step
type: string
- jsonPath: .spec.range.aggregation
name: Aggregation
type: string
- jsonPath: .status.value
name: Value
type: string
Expand Down
6 changes: 6 additions & 0 deletions .github/scripts/.helm-tests/metrics-only/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1397,6 +1397,12 @@ spec:
- jsonPath: .spec.range.interval
name: Interval
type: string
- jsonPath: .spec.range.step
name: Step
type: string
- jsonPath: .spec.range.aggregation
name: Aggregation
type: string
- jsonPath: .status.value
name: Value
type: string
Expand Down
6 changes: 6 additions & 0 deletions .github/scripts/.helm-tests/metrics-with-certs/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1412,6 +1412,12 @@ spec:
- jsonPath: .spec.range.interval
name: Interval
type: string
- jsonPath: .spec.range.step
name: Step
type: string
- jsonPath: .spec.range.aggregation
name: Aggregation
type: string
- jsonPath: .status.value
name: Value
type: string
Expand Down
2 changes: 2 additions & 0 deletions metrics-operator/api/v1beta1/keptnmetric_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ type IntervalResult struct {
// +kubebuilder:printcolumn:name="Query",type=string,JSONPath=`.spec.query`
// +kubebuilder:printcolumn:name="Interval",type=string,JSONPath=`.spec.range.interval`
// +kubebuilder:printcolumn:name="Value",type=string,JSONPath=`.status.value`
// +kubebuilder:printcolumn:name="Step",type=string,JSONPath=`.spec.range.step`
// +kubebuilder:printcolumn:name="Aggregation",type=string,JSONPath=`.spec.range.aggregation`
// +kubebuilder:storageversion

// KeptnMetric is the Schema for the keptnmetrics API
Expand Down
6 changes: 6 additions & 0 deletions metrics-operator/chart/templates/keptnmetric-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,12 @@ spec:
- jsonPath: .spec.range.interval
name: Interval
type: string
- jsonPath: .spec.range.step
name: Step
type: string
- jsonPath: .spec.range.aggregation
name: Aggregation
type: string
- jsonPath: .status.value
name: Value
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ spec:
- jsonPath: .spec.range.interval
name: Interval
type: string
- jsonPath: .spec.range.step
name: Step
type: string
- jsonPath: .spec.range.aggregation
name: Aggregation
type: string
- jsonPath: .status.value
name: Value
type: string
Expand Down
Loading