Skip to content

Commit

Permalink
feat: add interval field for kubectl get KeptnMetric
Browse files Browse the repository at this point in the history
Signed-off-by: Rakshit Gondwal <[email protected]>
  • Loading branch information
rakshitgondwal committed Jul 6, 2023
1 parent 78ba574 commit 4b18464
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions metrics-operator/api/v1alpha3/keptnmetric_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ type RangeSpec struct {
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Provider",type=string,JSONPath=`.spec.provider.name`
// +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:storageversion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ spec:
- jsonPath: .spec.query
name: Query
type: string
- jsonPath: .spec.range.interval
name: Interval
type: string
- jsonPath: .status.value
name: Value
type: string
Expand Down

0 comments on commit 4b18464

Please sign in to comment.