From 2fc33a5737d3fe5b0623756f8a5170bae3a67289 Mon Sep 17 00:00:00 2001 From: Darren Date: Thu, 12 Sep 2024 15:25:09 +0100 Subject: [PATCH] pyrra: update crd to match 0.7.7 Pyrra v0.7.7 ships with the CRD file version v0.14.0 This change updates the CRD from v0.11.1 to v0.14.0 --- charts/pyrra/Chart.yaml | 2 +- charts/pyrra/README.md | 2 +- charts/pyrra/crds/servicelevelobjectives.json | 490 +++++++++--------- 3 files changed, 248 insertions(+), 246 deletions(-) diff --git a/charts/pyrra/Chart.yaml b/charts/pyrra/Chart.yaml index 9733c6c36..db6b95124 100644 --- a/charts/pyrra/Chart.yaml +++ b/charts/pyrra/Chart.yaml @@ -16,7 +16,7 @@ type: application # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.13.3 +version: 0.13.4 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/pyrra/README.md b/charts/pyrra/README.md index aed0a21f8..3e6387c13 100644 --- a/charts/pyrra/README.md +++ b/charts/pyrra/README.md @@ -1,6 +1,6 @@ # pyrra -![Version: 0.13.3](https://img.shields.io/badge/Version-0.13.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.7.7](https://img.shields.io/badge/AppVersion-v0.7.7-informational?style=flat-square) +![Version: 0.13.4](https://img.shields.io/badge/Version-0.13.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.7.7](https://img.shields.io/badge/AppVersion-v0.7.7-informational?style=flat-square) SLO manager and alert generator diff --git a/charts/pyrra/crds/servicelevelobjectives.json b/charts/pyrra/crds/servicelevelobjectives.json index f0b822af2..7b4c14aaf 100644 --- a/charts/pyrra/crds/servicelevelobjectives.json +++ b/charts/pyrra/crds/servicelevelobjectives.json @@ -1,271 +1,273 @@ { - "apiVersion": "apiextensions.k8s.io/v1", - "kind": "CustomResourceDefinition", - "metadata": { - "annotations": { - "controller-gen.kubebuilder.io/version": "v0.11.1" - }, - "creationTimestamp": null, - "name": "servicelevelobjectives.pyrra.dev" + "apiVersion": "apiextensions.k8s.io/v1", + "kind": "CustomResourceDefinition", + "metadata": { + "annotations": { + "controller-gen.kubebuilder.io/version": "v0.14.0" }, - "spec": { - "group": "pyrra.dev", - "names": { - "kind": "ServiceLevelObjective", - "listKind": "ServiceLevelObjectiveList", - "plural": "servicelevelobjectives", - "shortNames": [ - "slo" + "name": "servicelevelobjectives.pyrra.dev" + }, + "spec": { + "group": "pyrra.dev", + "names": { + "kind": "ServiceLevelObjective", + "listKind": "ServiceLevelObjectiveList", + "plural": "servicelevelobjectives", + "shortNames": [ + "slo" + ], + "singular": "servicelevelobjective" + }, + "scope": "Namespaced", + "versions": [ + { + "additionalPrinterColumns": [ + { + "jsonPath": ".spec.window", + "name": "Window", + "type": "string" + }, + { + "jsonPath": ".spec.target", + "name": "Target", + "type": "string" + }, + { + "jsonPath": ".status.type", + "name": "Type", + "type": "string" + }, + { + "jsonPath": ".metadata.creationTimestamp", + "name": "Age", + "type": "date" + } ], - "singular": "servicelevelobjective" - }, - "scope": "Namespaced", - "versions": [ - { - "additionalPrinterColumns": [ - { - "jsonPath": ".spec.window", - "name": "Window", - "type": "string" - }, - { - "jsonPath": ".spec.target", - "name": "Target", - "type": "string" - }, - { - "jsonPath": ".status.type", - "name": "Type", - "type": "string" - }, - { - "jsonPath": ".metadata.creationTimestamp", - "name": "Age", - "type": "date" - } - ], - "name": "v1alpha1", - "schema": { - "openAPIV3Schema": { - "description": "ServiceLevelObjective is the Schema for the ServiceLevelObjectives 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 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": "ServiceLevelObjectiveSpec defines the desired state of ServiceLevelObjective.", - "properties": { - "alerting": { - "description": "Alerting customizes the alerting rules generated by Pyrra.", - "properties": { - "absent": { - "default": true, - "type": "boolean" - }, - "burnrates": { - "default": true, - "type": "boolean" - }, - "disabled": { - "description": "Disabled is used to disable the generation of alerts. Recording rules are still generated.", - "type": "boolean" - }, - "name": { - "description": "Name is used as the name of the alert generated by Pyrra. Defaults to \"ErrorBudgetBurn\".", - "type": "string" - } + "name": "v1alpha1", + "schema": { + "openAPIV3Schema": { + "description": "ServiceLevelObjective is the Schema for the ServiceLevelObjectives API.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore 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 object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "spec": { + "description": "ServiceLevelObjectiveSpec defines the desired state of ServiceLevelObjective.", + "properties": { + "alerting": { + "description": "Alerting customizes the alerting rules generated by Pyrra.", + "properties": { + "absent": { + "default": true, + "type": "boolean" }, - "type": "object" - }, - "description": { - "description": "Description describes the ServiceLevelObjective in more detail and gives extra context for engineers that might not directly work on the service.", - "type": "string" + "absentName": { + "description": "AbsentName is used as the name of the absent alert generated by Pyrra. Defaults to \"SLOMetricAbsent\".", + "type": "string" + }, + "burnrates": { + "default": true, + "type": "boolean" + }, + "disabled": { + "description": "Disabled is used to disable the generation of alerts. Recording rules are still generated.", + "type": "boolean" + }, + "name": { + "description": "Name is used as the name of the alert generated by Pyrra. Defaults to \"ErrorBudgetBurn\".", + "type": "string" + } }, - "indicator": { - "description": "ServiceLevelIndicator is the underlying data source that indicates how the service is doing. This will be a Prometheus metric with specific selectors for your service.", - "properties": { - "bool_gauge": { - "description": "BoolGauge is the indicator that measures whether a boolean gauge is successful.", - "properties": { - "grouping": { - "description": "Total is the metric that returns how many requests there are in total.", - "items": { - "type": "string" - }, - "type": "array" - }, - "metric": { + "type": "object" + }, + "description": { + "description": "Description describes the ServiceLevelObjective in more detail and\ngives extra context for engineers that might not directly work on the service.", + "type": "string" + }, + "indicator": { + "description": "ServiceLevelIndicator is the underlying data source that indicates how the service is doing.\nThis will be a Prometheus metric with specific selectors for your service.", + "properties": { + "bool_gauge": { + "description": "BoolGauge is the indicator that measures whether a boolean gauge is\nsuccessful.", + "properties": { + "grouping": { + "description": "Total is the metric that returns how many requests there are in total.", + "items": { "type": "string" - } + }, + "type": "array" }, - "required": [ - "metric" - ], - "type": "object" + "metric": { + "type": "string" + } }, - "latency": { - "description": "Latency is the indicator that measures a certain percentage to be faster than the expected latency.", - "properties": { - "grouping": { - "description": "Grouping allows an SLO to be defined for many SLI at once, like HTTP handlers for example.", - "items": { - "type": "string" - }, - "type": "array" + "required": [ + "metric" + ], + "type": "object" + }, + "latency": { + "description": "Latency is the indicator that measures a certain percentage to be faster than the expected latency.", + "properties": { + "grouping": { + "description": "Grouping allows an SLO to be defined for many SLI at once, like HTTP handlers for example.", + "items": { + "type": "string" }, - "success": { - "description": "Success is the metric that returns how many errors there are.", - "properties": { - "metric": { - "type": "string" - } - }, - "required": [ - "metric" - ], - "type": "object" + "type": "array" + }, + "success": { + "description": "Success is the metric that returns how many errors there are.", + "properties": { + "metric": { + "type": "string" + } }, - "total": { - "description": "Total is the metric that returns how many requests there are in total.", - "properties": { - "metric": { - "type": "string" - } - }, - "required": [ - "metric" - ], - "type": "object" - } + "required": [ + "metric" + ], + "type": "object" }, - "required": [ - "success", - "total" - ], - "type": "object" - }, - "latencyNative": { - "description": "LatencyNative is the indicator that measures a certain percentage to be faster than the expected latency. This uses the new native histograms in Prometheus.", - "properties": { - "grouping": { - "description": "Grouping allows an SLO to be defined for many SLI at once, like HTTP handlers for example.", - "items": { + "total": { + "description": "Total is the metric that returns how many requests there are in total.", + "properties": { + "metric": { "type": "string" - }, - "type": "array" + } }, - "latency": { - "description": "Latency the requests should be faster than.", + "required": [ + "metric" + ], + "type": "object" + } + }, + "required": [ + "success", + "total" + ], + "type": "object" + }, + "latencyNative": { + "description": "LatencyNative is the indicator that measures a certain percentage to be faster than the expected latency.\nThis uses the new native histograms in Prometheus.", + "properties": { + "grouping": { + "description": "Grouping allows an SLO to be defined for many SLI at once, like HTTP handlers for example.", + "items": { "type": "string" }, - "total": { - "description": "Total is the metric that returns how many requests there are in total.", - "properties": { - "metric": { - "type": "string" - } - }, - "required": [ - "metric" - ], - "type": "object" - } + "type": "array" }, - "required": [ - "latency", - "total" - ], - "type": "object" - }, - "ratio": { - "description": "Ratio is the indicator that measures against errors / total events.", - "properties": { - "errors": { - "description": "Errors is the metric that returns how many errors there are.", - "properties": { - "metric": { - "type": "string" - } - }, - "required": [ - "metric" - ], - "type": "object" + "latency": { + "description": "Latency the requests should be faster than.", + "type": "string" + }, + "total": { + "description": "Total is the metric that returns how many requests there are in total.", + "properties": { + "metric": { + "type": "string" + } }, - "grouping": { - "description": "Grouping allows an SLO to be defined for many SLI at once, like HTTP handlers for example.", - "items": { + "required": [ + "metric" + ], + "type": "object" + } + }, + "required": [ + "latency", + "total" + ], + "type": "object" + }, + "ratio": { + "description": "Ratio is the indicator that measures against errors / total events.", + "properties": { + "errors": { + "description": "Errors is the metric that returns how many errors there are.", + "properties": { + "metric": { "type": "string" - }, - "type": "array" + } }, - "total": { - "description": "Total is the metric that returns how many requests there are in total.", - "properties": { - "metric": { - "type": "string" - } - }, - "required": [ - "metric" - ], - "type": "object" - } + "required": [ + "metric" + ], + "type": "object" }, - "required": [ - "errors", - "total" - ], - "type": "object" - } - }, - "type": "object" - }, - "target": { - "description": "Target is a string that's casted to a float64 between 0 - 100. It represents the desired availability of the service in the given window. float64 are not supported: https://github.com/kubernetes-sigs/controller-tools/issues/245", - "type": "string" + "grouping": { + "description": "Grouping allows an SLO to be defined for many SLI at once, like HTTP handlers for example.", + "items": { + "type": "string" + }, + "type": "array" + }, + "total": { + "description": "Total is the metric that returns how many requests there are in total.", + "properties": { + "metric": { + "type": "string" + } + }, + "required": [ + "metric" + ], + "type": "object" + } + }, + "required": [ + "errors", + "total" + ], + "type": "object" + } }, - "window": { - "description": "Window within which the Target is supposed to be kept. Usually something like 1d, 7d or 28d.", - "type": "string" - } + "type": "object" }, - "required": [ - "indicator", - "target", - "window" - ], - "type": "object" - }, - "status": { - "description": "ServiceLevelObjectiveStatus defines the observed state of ServiceLevelObjective.", - "properties": { - "type": { - "description": "Type is the generated resource type, like PrometheusRule or ConfigMap", - "type": "string" - } + "target": { + "description": "Target is a string that's casted to a float64 between 0 - 100.\nIt represents the desired availability of the service in the given window.\nfloat64 are not supported: https://github.com/kubernetes-sigs/controller-tools/issues/245", + "type": "string" }, - "type": "object" - } + "window": { + "description": "Window within which the Target is supposed to be kept. Usually something like 1d, 7d or 28d.", + "type": "string" + } + }, + "required": [ + "indicator", + "target", + "window" + ], + "type": "object" }, - "type": "object" - } - }, - "served": true, - "storage": true, - "subresources": { - "status": {} + "status": { + "description": "ServiceLevelObjectiveStatus defines the observed state of ServiceLevelObjective.", + "properties": { + "type": { + "description": "Type is the generated resource type, like PrometheusRule or ConfigMap", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" } + }, + "served": true, + "storage": true, + "subresources": { + "status": {} } - ] - } + } + ] } - \ No newline at end of file +} \ No newline at end of file