Skip to content
Snippets Groups Projects
Commit 05ef88f1 authored by Björn Vonheiden's avatar Björn Vonheiden
Browse files

add description to the slo properties in crd files

parent 8f62a8c6
No related branches found
No related tags found
1 merge request!172Use the properties of the slo checker and add lag trend percent
...@@ -55,12 +55,16 @@ spec: ...@@ -55,12 +55,16 @@ spec:
required: ["sloType", "prometheusUrl", "offset"] required: ["sloType", "prometheusUrl", "offset"]
properties: properties:
sloType: sloType:
description: The type of the SLO. It must match 'lag trend'.
type: string type: string
prometheusUrl: prometheusUrl:
description: Connection string for Promehteus.
type: string type: string
offset: offset:
description: Hours by which the start and end timestamp will be shifted (for different timezones).
type: integer type: integer
properties: properties:
description: (Optional) SLO specific additional arguments.
type: object type: object
additionalProperties: true additionalProperties: true
x-kubernetes-map-type: "granular" x-kubernetes-map-type: "granular"
......
...@@ -60,26 +60,23 @@ spec: ...@@ -60,26 +60,23 @@ spec:
type: array type: array
items: items:
type: object type: object
required: ["sloType", "threshold", "prometheusUrl", "externalSloUrl", "offset", "warmup"] required: ["sloType", "prometheusUrl", "offset"]
properties: properties:
sloType: sloType:
description: The type of the SLO. It must match 'lag trend'. description: The type of the SLO. It must match 'lag trend'.
type: string type: string
threshold:
description: The threshold the SUT should meet for a sucessful experiment.
type: integer
prometheusUrl: prometheusUrl:
description: Connection string for Promehteus. description: Connection string for Promehteus.
type: string type: string
externalSloUrl:
description: Connection string for a external slo analysis.
type: string
offset: offset:
description: Hours by which the start and end timestamp will be shifted (for different timezones). description: Hours by which the start and end timestamp will be shifted (for different timezones).
type: integer type: integer
warmup: properties:
description: Seconds of time that are ignored in the analysis. description: (Optional) SLO specific additional arguments.
type: integer type: object
additionalProperties: true
x-kubernetes-map-type: "granular"
default: {}
execution: # def execution config execution: # def execution config
description: Defines the overall parameter for the execution. description: Defines the overall parameter for the execution.
type: object type: object
...@@ -152,4 +149,4 @@ spec: ...@@ -152,4 +149,4 @@ spec:
jsonPath: .metadata.creationTimestamp jsonPath: .metadata.creationTimestamp
subresources: subresources:
status: {} status: {}
scope: Namespaced scope: Namespaced
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment