From 4b184641e7fe0cf97c1bf6bfb42615e591a3da3c Mon Sep 17 00:00:00 2001 From: Rakshit Gondwal Date: Thu, 6 Jul 2023 20:06:25 +0530 Subject: [PATCH] feat: add interval field for kubectl get KeptnMetric Signed-off-by: Rakshit Gondwal --- metrics-operator/api/v1alpha3/keptnmetric_types.go | 1 + .../config/crd/bases/metrics.keptn.sh_keptnmetrics.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/metrics-operator/api/v1alpha3/keptnmetric_types.go b/metrics-operator/api/v1alpha3/keptnmetric_types.go index 9135e783b3..da1f05d049 100644 --- a/metrics-operator/api/v1alpha3/keptnmetric_types.go +++ b/metrics-operator/api/v1alpha3/keptnmetric_types.go @@ -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 diff --git a/metrics-operator/config/crd/bases/metrics.keptn.sh_keptnmetrics.yaml b/metrics-operator/config/crd/bases/metrics.keptn.sh_keptnmetrics.yaml index 08e9e2155b..fafde197b0 100644 --- a/metrics-operator/config/crd/bases/metrics.keptn.sh_keptnmetrics.yaml +++ b/metrics-operator/config/crd/bases/metrics.keptn.sh_keptnmetrics.yaml @@ -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