From 66d606c2bec18d09d39fcebdb42f394642d5c11c Mon Sep 17 00:00:00 2001 From: Moritz Wiesinger Date: Mon, 17 Apr 2023 12:38:37 +0200 Subject: [PATCH] revert whitespace changes Signed-off-by: Moritz Wiesinger --- .../bases/metrics.keptn.sh_keptnmetrics.yaml | 432 +++++++++--------- ...etrics.keptn.sh_keptnmetricsproviders.yaml | 210 ++++----- metrics-operator/config/rbac/role.yaml | 104 ++--- 3 files changed, 373 insertions(+), 373 deletions(-) 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 92e6d5b34c9..a9cfaf7a518 100644 --- a/metrics-operator/config/crd/bases/metrics.keptn.sh_keptnmetrics.yaml +++ b/metrics-operator/config/crd/bases/metrics.keptn.sh_keptnmetrics.yaml @@ -15,231 +15,231 @@ spec: singular: keptnmetric scope: Namespaced versions: - - additionalPrinterColumns: - - jsonPath: .spec.provider.name - name: Provider - type: string - - jsonPath: .spec.query - name: Query - type: string - - jsonPath: .status.value - name: Value - type: string - name: v1alpha1 - schema: - openAPIV3Schema: - description: KeptnMetric is the Schema for the keptnmetrics API - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation + - additionalPrinterColumns: + - jsonPath: .spec.provider.name + name: Provider + type: string + - jsonPath: .spec.query + name: Query + type: string + - jsonPath: .status.value + name: Value + type: string + name: v1alpha1 + schema: + openAPIV3Schema: + description: KeptnMetric is the Schema for the keptnmetrics API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this + type: string + kind: + description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - spec: - description: KeptnMetricSpec defines the desired state of KeptnMetric - properties: - fetchIntervalSeconds: - description: FetchIntervalSeconds represents the update frequency - in seconds that is used to update the metric - type: integer - provider: - description: Provider represents the provider object - properties: - name: - description: Name of the provider - type: string - required: - - name - type: object - query: - description: Query represents the query to be run - type: string - required: - - fetchIntervalSeconds - - provider - - query - type: object - status: - description: KeptnMetricStatus defines the observed state of KeptnMetric - properties: - lastUpdated: - description: LastUpdated represents the time when the status data - was last updated - format: date-time - type: string - rawValue: - description: RawValue represents the resulting value in raw format - format: byte - type: string - value: - description: Value represents the resulting value - type: string - required: - - lastUpdated - - rawValue - - value - type: object - type: object - served: true - storage: false - subresources: - status: {} - - additionalPrinterColumns: - - jsonPath: .spec.provider.name - name: Provider - type: string - - jsonPath: .spec.query - name: Query - type: string - - jsonPath: .status.value - name: Value - type: string - name: v1alpha2 - schema: - openAPIV3Schema: - description: KeptnMetric is the Schema for the keptnmetrics API - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation + type: string + metadata: + type: object + spec: + description: KeptnMetricSpec defines the desired state of KeptnMetric + properties: + fetchIntervalSeconds: + description: FetchIntervalSeconds represents the update frequency + in seconds that is used to update the metric + type: integer + provider: + description: Provider represents the provider object + properties: + name: + description: Name of the provider + type: string + required: + - name + type: object + query: + description: Query represents the query to be run + type: string + required: + - fetchIntervalSeconds + - provider + - query + type: object + status: + description: KeptnMetricStatus defines the observed state of KeptnMetric + properties: + lastUpdated: + description: LastUpdated represents the time when the status data + was last updated + format: date-time + type: string + rawValue: + description: RawValue represents the resulting value in raw format + format: byte + type: string + value: + description: Value represents the resulting value + type: string + required: + - lastUpdated + - rawValue + - value + type: object + type: object + served: true + storage: false + subresources: + status: {} + - additionalPrinterColumns: + - jsonPath: .spec.provider.name + name: Provider + type: string + - jsonPath: .spec.query + name: Query + type: string + - jsonPath: .status.value + name: Value + type: string + name: v1alpha2 + schema: + openAPIV3Schema: + description: KeptnMetric is the Schema for the keptnmetrics API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this + type: string + kind: + description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - spec: - description: KeptnMetricSpec defines the desired state of KeptnMetric - properties: - fetchIntervalSeconds: - description: FetchIntervalSeconds represents the update frequency - in seconds that is used to update the metric - type: integer - provider: - description: Provider represents the provider object - properties: - name: - description: Name of the provider - type: string - required: - - name - type: object - query: - description: Query represents the query to be run - type: string - required: - - fetchIntervalSeconds - - provider - - query - type: object - status: - description: KeptnMetricStatus defines the observed state of KeptnMetric - properties: - lastUpdated: - description: LastUpdated represents the time when the status data - was last updated - format: date-time - type: string - rawValue: - description: RawValue represents the resulting value in raw format - format: byte - type: string - value: - description: Value represents the resulting value - type: string - required: - - lastUpdated - - rawValue - - value - type: object - type: object - served: true - storage: false - subresources: - status: {} - - additionalPrinterColumns: - - jsonPath: .spec.provider.name - name: Provider - type: string - - jsonPath: .spec.query - name: Query - type: string - - jsonPath: .status.value - name: Value - type: string - name: v1alpha3 - schema: - openAPIV3Schema: - description: KeptnMetric is the Schema for the keptnmetrics API - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation + type: string + metadata: + type: object + spec: + description: KeptnMetricSpec defines the desired state of KeptnMetric + properties: + fetchIntervalSeconds: + description: FetchIntervalSeconds represents the update frequency + in seconds that is used to update the metric + type: integer + provider: + description: Provider represents the provider object + properties: + name: + description: Name of the provider + type: string + required: + - name + type: object + query: + description: Query represents the query to be run + type: string + required: + - fetchIntervalSeconds + - provider + - query + type: object + status: + description: KeptnMetricStatus defines the observed state of KeptnMetric + properties: + lastUpdated: + description: LastUpdated represents the time when the status data + was last updated + format: date-time + type: string + rawValue: + description: RawValue represents the resulting value in raw format + format: byte + type: string + value: + description: Value represents the resulting value + type: string + required: + - lastUpdated + - rawValue + - value + type: object + type: object + served: true + storage: false + subresources: + status: {} + - additionalPrinterColumns: + - jsonPath: .spec.provider.name + name: Provider + type: string + - jsonPath: .spec.query + name: Query + type: string + - jsonPath: .status.value + name: Value + type: string + name: v1alpha3 + schema: + openAPIV3Schema: + description: KeptnMetric is the Schema for the keptnmetrics API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this + type: string + kind: + description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - spec: - description: KeptnMetricSpec defines the desired state of KeptnMetric - properties: - fetchIntervalSeconds: - description: FetchIntervalSeconds represents the update frequency - in seconds that is used to update the metric - type: integer - provider: - description: Provider represents the provider object - properties: - name: - description: Name of the provider - type: string - required: - - name - type: object - query: - description: Query represents the query to be run - type: string - required: - - fetchIntervalSeconds - - provider - - query - type: object - status: - description: KeptnMetricStatus defines the observed state of KeptnMetric - properties: - lastUpdated: - description: LastUpdated represents the time when the status data - was last updated - format: date-time - type: string - rawValue: - description: RawValue represents the resulting value in raw format - format: byte - type: string - value: - description: Value represents the resulting value - type: string - required: - - lastUpdated - - rawValue - - value - type: object - type: object - served: true - storage: true - subresources: - status: {} + type: string + metadata: + type: object + spec: + description: KeptnMetricSpec defines the desired state of KeptnMetric + properties: + fetchIntervalSeconds: + description: FetchIntervalSeconds represents the update frequency + in seconds that is used to update the metric + type: integer + provider: + description: Provider represents the provider object + properties: + name: + description: Name of the provider + type: string + required: + - name + type: object + query: + description: Query represents the query to be run + type: string + required: + - fetchIntervalSeconds + - provider + - query + type: object + status: + description: KeptnMetricStatus defines the observed state of KeptnMetric + properties: + lastUpdated: + description: LastUpdated represents the time when the status data + was last updated + format: date-time + type: string + rawValue: + description: RawValue represents the resulting value in raw format + format: byte + type: string + value: + description: Value represents the resulting value + type: string + required: + - lastUpdated + - rawValue + - value + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/metrics-operator/config/crd/bases/metrics.keptn.sh_keptnmetricsproviders.yaml b/metrics-operator/config/crd/bases/metrics.keptn.sh_keptnmetricsproviders.yaml index 799145281a0..443ebcc22c2 100644 --- a/metrics-operator/config/crd/bases/metrics.keptn.sh_keptnmetricsproviders.yaml +++ b/metrics-operator/config/crd/bases/metrics.keptn.sh_keptnmetricsproviders.yaml @@ -13,121 +13,121 @@ spec: listKind: KeptnMetricsProviderList plural: keptnmetricsproviders shortNames: - - kmp + - kmp singular: keptnmetricsprovider scope: Namespaced versions: - - name: v1alpha2 - schema: - openAPIV3Schema: - description: KeptnMetricsProvider is the Schema for the keptnmetricsproviders - API - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation + - name: v1alpha2 + schema: + openAPIV3Schema: + description: KeptnMetricsProvider is the Schema for the keptnmetricsproviders + API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this + type: string + kind: + description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - spec: - description: KeptnMetricsProviderSpec defines the desired state of KeptnMetricsProvider - properties: - secretKeyRef: - description: SecretKeySelector selects a key of a Secret. - properties: - key: - description: The key of the secret to select from. Must be a - valid secret key. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + metadata: + type: object + spec: + description: KeptnMetricsProviderSpec defines the desired state of KeptnMetricsProvider + properties: + secretKeyRef: + description: SecretKeySelector selects a key of a Secret. + properties: + key: + description: The key of the secret to select from. Must be a + valid secret key. + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' - type: string - optional: - description: Specify whether the Secret or its key must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - targetServer: - type: string - required: - - targetServer - type: object - status: - description: KeptnMetricsProviderStatus defines the observed state of - KeptnMetricsProvider - type: object - type: object - served: true - storage: false - subresources: - status: {} - - name: v1alpha3 - schema: - openAPIV3Schema: - description: KeptnMetricsProvider is the Schema for the keptnmetricsproviders - API - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation + type: string + optional: + description: Specify whether the Secret or its key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + targetServer: + type: string + required: + - targetServer + type: object + status: + description: KeptnMetricsProviderStatus defines the observed state of + KeptnMetricsProvider + type: object + type: object + served: true + storage: false + subresources: + status: {} + - name: v1alpha3 + schema: + openAPIV3Schema: + description: KeptnMetricsProvider is the Schema for the keptnmetricsproviders + API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this + type: string + kind: + description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - spec: - description: KeptnMetricsProviderSpec defines the desired state of KeptnMetricsProvider - properties: - secretKeyRef: - description: SecretKeyRef defines an optional secret for access credentials - to the metrics provider. - properties: - key: - description: The key of the secret to select from. Must be a - valid secret key. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + metadata: + type: object + spec: + description: KeptnMetricsProviderSpec defines the desired state of KeptnMetricsProvider + properties: + secretKeyRef: + description: SecretKeyRef defines an optional secret for access credentials + to the metrics provider. + properties: + key: + description: The key of the secret to select from. Must be a + valid secret key. + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' - type: string - optional: - description: Specify whether the Secret or its key must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - targetServer: - description: TargetServer defined the URL at which the metrics provider - is reachable with included port and protocol. - type: string - type: - description: Type represents the provider type. This can be one of - prometheus, dynatrace, datadog, dql. - pattern: prometheus|dynatrace|datadog|dql - type: string - required: - - targetServer - type: object - status: - description: KeptnMetricsProviderStatus defines the observed state of - KeptnMetricsProvider - type: object - type: object - served: true - storage: true - subresources: - status: {} + type: string + optional: + description: Specify whether the Secret or its key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + targetServer: + description: TargetServer defined the URL at which the metrics provider + is reachable with included port and protocol. + type: string + type: + description: Type represents the provider type. This can be one of + prometheus, dynatrace, datadog, dql. + pattern: prometheus|dynatrace|datadog|dql + type: string + required: + - targetServer + type: object + status: + description: KeptnMetricsProviderStatus defines the observed state of + KeptnMetricsProvider + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/metrics-operator/config/rbac/role.yaml b/metrics-operator/config/rbac/role.yaml index 965bd74f579..4ac679824f5 100644 --- a/metrics-operator/config/rbac/role.yaml +++ b/metrics-operator/config/rbac/role.yaml @@ -5,55 +5,55 @@ metadata: creationTimestamp: null name: metrics-operator-role rules: - - apiGroups: - - "" - resources: - - configmaps - verbs: - - get - - list - - watch - - apiGroups: - - "" - resources: - - secrets - verbs: - - get - - apiGroups: - - metrics.keptn.sh - resources: - - keptnmetrics - verbs: - - get - - list - - watch - - apiGroups: - - metrics.keptn.sh - resources: - - keptnmetrics/finalizers - verbs: - - update - - apiGroups: - - metrics.keptn.sh - resources: - - keptnmetrics/status - verbs: - - get - - patch - - update - - apiGroups: - - metrics.keptn.sh - resources: - - keptnmetricsproviders - verbs: - - get - - list - - watch - - apiGroups: - - metrics.keptn.sh - resources: - - providers - verbs: - - get - - list - - watch +- apiGroups: + - "" + resources: + - configmaps + verbs: + - get + - list + - watch +- apiGroups: + - "" + resources: + - secrets + verbs: + - get +- apiGroups: + - metrics.keptn.sh + resources: + - keptnmetrics + verbs: + - get + - list + - watch +- apiGroups: + - metrics.keptn.sh + resources: + - keptnmetrics/finalizers + verbs: + - update +- apiGroups: + - metrics.keptn.sh + resources: + - keptnmetrics/status + verbs: + - get + - patch + - update +- apiGroups: + - metrics.keptn.sh + resources: + - keptnmetricsproviders + verbs: + - get + - list + - watch +- apiGroups: + - metrics.keptn.sh + resources: + - providers + verbs: + - get + - list + - watch