Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/v1alpha1/federatedmanagedmetric_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ type FederatedManagedMetricSpec struct {
// Projections []Projection `json:"projections,omitempty"`

// Define in what interval the query should be recorded
// +kubebuilder:default:="12h"
CheckInterval metav1.Duration `json:"checkInterval,omitempty"`
// +kubebuilder:default:="10m"
Interval metav1.Duration `json:"interval,omitempty"`

FederatedClusterAccessRef FederateClusterAccessRef `json:"federateClusterAccessRef,omitempty"`
}
Expand Down
4 changes: 2 additions & 2 deletions api/v1alpha1/federatedmetric_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ type FederatedMetricSpec struct {
Projections []Projection `json:"projections,omitempty"`

// Define in what interval the query should be recorded
// +kubebuilder:default:="12h"
CheckInterval metav1.Duration `json:"checkInterval,omitempty"`
// +kubebuilder:default:="10m"
Interval metav1.Duration `json:"interval,omitempty"`

FederatedClusterAccessRef FederateClusterAccessRef `json:"federateClusterAccessRef,omitempty"`
}
Expand Down
4 changes: 2 additions & 2 deletions api/v1alpha1/managedmetric_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ type ManagedMetricSpec struct {
// +optional
FieldSelector string `json:"fieldSelector,omitempty"`
// Define in what interval the query should be recorded
// +kubebuilder:default:="12h"
CheckInterval metav1.Duration `json:"checkInterval,omitempty"`
// +kubebuilder:default:="10m"
Interval metav1.Duration `json:"interval,omitempty"`

RemoteClusterAccessRef `json:"remoteClusterAccessRef,omitempty"`
}
Expand Down
4 changes: 2 additions & 2 deletions api/v1alpha1/metric_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ type MetricSpec struct {
// +optional
FieldSelector string `json:"fieldSelector,omitempty"`
// Define in what interval the query should be recorded
// +kubebuilder:default:="12h"
CheckInterval metav1.Duration `json:"checkInterval,omitempty"`
// +kubebuilder:default:="10m"
Interval metav1.Duration `json:"interval,omitempty"`

RemoteClusterAccessRef `json:"remoteClusterAccessRef,omitempty"`

Expand Down
8 changes: 4 additions & 4 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ spec:
spec:
description: FederatedManagedMetricSpec defines the desired state of FederatedManagedMetric
properties:
checkInterval:
default: 12h
description: Define in what interval the query should be recorded
type: string
description:
type: string
federateClusterAccessRef:
Expand All @@ -58,6 +54,10 @@ spec:
description: Define fields of your object to adapt filters of the
query
type: string
interval:
default: 10m
description: Define in what interval the query should be recorded
type: string
labelSelector:
description: Define labels of your object to adapt filters of the
query
Expand Down
8 changes: 4 additions & 4 deletions cmd/embedded/crds/metrics.cloud.sap_federatedmetrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ spec:
spec:
description: FederatedMetricSpec defines the desired state of FederatedMetric
properties:
checkInterval:
default: 12h
description: Define in what interval the query should be recorded
type: string
description:
type: string
federateClusterAccessRef:
Expand All @@ -57,6 +53,10 @@ spec:
description: Define fields of your object to adapt filters of the
query
type: string
interval:
default: 10m
description: Define in what interval the query should be recorded
type: string
labelSelector:
description: Define labels of your object to adapt filters of the
query
Expand Down
8 changes: 4 additions & 4 deletions cmd/embedded/crds/metrics.cloud.sap_managedmetrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ spec:
spec:
description: ManagedMetricSpec defines the desired state of ManagedMetric
properties:
checkInterval:
default: 12h
description: Define in what interval the query should be recorded
type: string
description:
description: Sets the description that will be used to identify the
metric in Dynatrace(or other providers)
Expand All @@ -65,6 +61,10 @@ spec:
description: Define the group of your object that should be instrumented
(without version at the end)
type: string
interval:
default: 10m
description: Define in what interval the query should be recorded
type: string
kind:
description: Decide which kind the metric should keep track of (needs
to be plural version)
Expand Down
8 changes: 4 additions & 4 deletions cmd/embedded/crds/metrics.cloud.sap_metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ spec:
spec:
description: MetricSpec defines the desired state of Metric
properties:
checkInterval:
default: 12h
description: Define in what interval the query should be recorded
type: string
description:
description: Sets the description that will be used to identify the
metric in Dynatrace(or other providers)
Expand All @@ -61,6 +57,10 @@ spec:
description: Define fields of your object to adapt filters of the
query
type: string
interval:
default: 10m
description: Define in what interval the query should be recorded
type: string
labelSelector:
description: Define labels of your object to adapt filters of the
query
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ spec:
spec:
description: FederatedManagedMetricSpec defines the desired state of FederatedManagedMetric
properties:
checkInterval:
default: 12h
description: Define in what interval the query should be recorded
type: string
description:
type: string
federateClusterAccessRef:
Expand All @@ -58,6 +54,10 @@ spec:
description: Define fields of your object to adapt filters of the
query
type: string
interval:
default: 10m
description: Define in what interval the query should be recorded
type: string
labelSelector:
description: Define labels of your object to adapt filters of the
query
Expand Down
8 changes: 4 additions & 4 deletions config/crd/bases/metrics.cloud.sap_federatedmetrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ spec:
spec:
description: FederatedMetricSpec defines the desired state of FederatedMetric
properties:
checkInterval:
default: 12h
description: Define in what interval the query should be recorded
type: string
description:
type: string
federateClusterAccessRef:
Expand All @@ -57,6 +53,10 @@ spec:
description: Define fields of your object to adapt filters of the
query
type: string
interval:
default: 10m
description: Define in what interval the query should be recorded
type: string
labelSelector:
description: Define labels of your object to adapt filters of the
query
Expand Down
8 changes: 4 additions & 4 deletions config/crd/bases/metrics.cloud.sap_managedmetrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ spec:
spec:
description: ManagedMetricSpec defines the desired state of ManagedMetric
properties:
checkInterval:
default: 12h
description: Define in what interval the query should be recorded
type: string
description:
description: Sets the description that will be used to identify the
metric in Dynatrace(or other providers)
Expand All @@ -65,6 +61,10 @@ spec:
description: Define the group of your object that should be instrumented
(without version at the end)
type: string
interval:
default: 10m
description: Define in what interval the query should be recorded
type: string
kind:
description: Decide which kind the metric should keep track of (needs
to be plural version)
Expand Down
8 changes: 4 additions & 4 deletions config/crd/bases/metrics.cloud.sap_metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ spec:
spec:
description: MetricSpec defines the desired state of Metric
properties:
checkInterval:
default: 12h
description: Define in what interval the query should be recorded
type: string
description:
description: Sets the description that will be used to identify the
metric in Dynatrace(or other providers)
Expand All @@ -61,6 +57,10 @@ spec:
description: Define fields of your object to adapt filters of the
query
type: string
interval:
default: 10m
description: Define in what interval the query should be recorded
type: string
labelSelector:
description: Define labels of your object to adapt filters of the
query
Expand Down
6 changes: 3 additions & 3 deletions examples/basic_metric.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
kind: release
group: helm.crossplane.io
version: v1beta1
checkInterval: 1m # in minutes
interval: 1m # in minutes
---
apiVersion: metrics.cloud.sap/v1alpha1
kind: Metric
Expand All @@ -22,7 +22,7 @@ spec:
kind: pod
group: ""
version: v1
checkInterval: 1m # in minutes
interval: 1m # in minutes
projections:
- name: pod-namespace
fieldPath: "metadata.namespace"
Expand All @@ -38,7 +38,7 @@ spec:
kind: pod
group: ""
version: v1
checkInterval: 1m # in minutes
interval: 1m # in minutes

#apiVersion: metrics.cloud.sap/v1alpha1
#kind: Metric
Expand Down
9 changes: 5 additions & 4 deletions examples/dev-core/metric.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ metadata:
spec:
name: dev-core-landscaperdeployment
description: Number of LandscapperDeplyoments in the LS-DEV-CORE cluster
kind: LandscaperDeployment
group: landscaper-service.gardener.cloud
version: v1alpha1
checkInterval: "1m" # in minutes
target:
kind: LandscaperDeployment
group: landscaper-service.gardener.cloud
version: v1alpha1
interval: "1m" # in minutes
---
6 changes: 3 additions & 3 deletions examples/fed-managed-resoruces/crossplane-managed.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: metrics.cloud.sap/v1beta1
apiVersion: metrics.cloud.sap/v1alpha1
kind: FederatedManagedMetric
metadata:
name: xfed-managed
spec:
name: xfed-managed
description: crossplane managed resources
checkInterval: "1m" # in minutes
federateCaRef:
interval: "1m" # in minutes
federateClusterAccessRef:
name: federate-ca-sample
namespace: default
---
8 changes: 4 additions & 4 deletions examples/federated-resources/crdsdeletion.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: metrics.cloud.sap/v1beta1
apiVersion: metrics.cloud.sap/v1alpha1
kind: FederatedMetric
metadata:
name: xfed-crds-del
Expand All @@ -7,16 +7,16 @@ spec:
description: subaccounts
target:
group: apiextensions.k8s.io
resource: customresourcedefinitions
kind: customresourcedefinition
version: v1
fieldSelector: "metadata.deletionTimestamp"
checkInterval: "1m" # in minutes
interval: "1m" # in minutes
projections:
- name: deletion
fieldPath: "metadata.deletionTimestamp"
- name: crd.name
fieldPath: "metadata.name"
federateCaRef:
federateClusterAccessRef:
name: federate-ca-sample
namespace: default
---
8 changes: 4 additions & 4 deletions examples/federated-resources/entitlements.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: metrics.cloud.sap/v1beta1
apiVersion: metrics.cloud.sap/v1alpha1
kind: FederatedMetric
metadata:
name: xfed-entitlements
Expand All @@ -7,13 +7,13 @@ spec:
description: entitlements
target:
group: account.btp.orchestrate.cloud.sap
resource: entitlements
kind: Entitlement
version: v1alpha1
checkInterval: "1m" # in minutes
interval: "1m" # in minutes
projections:
- name: servicename
fieldPath: "spec.forProvider.serviceName"
federateCaRef:
federateClusterAccessRef:
name: federate-ca-sample
namespace: default
---
8 changes: 4 additions & 4 deletions examples/federated-resources/serviceinstances.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: metrics.cloud.sap/v1beta1
apiVersion: metrics.cloud.sap/v1alpha1
kind: FederatedMetric
metadata:
name: xfed-instances
Expand All @@ -7,10 +7,10 @@ spec:
description: service instances
target:
group: services.cloud.sap.com
resource: serviceinstances
kind: ServiceInstance
version: v1
checkInterval: "1m" # in minutes
federateCaRef:
interval: "1m" # in minutes
federateClusterAccessRef:
name: federate-ca-sample
namespace: default
---
Loading
Loading