qontract-reconcile 0.10.2.dev167__py3-none-any.whl → 0.10.2.dev169__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {qontract_reconcile-0.10.2.dev167.dist-info → qontract_reconcile-0.10.2.dev169.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.2.dev167.dist-info → qontract_reconcile-0.10.2.dev169.dist-info}/RECORD +13 -10
- reconcile/dashdotdb_slo.py +45 -156
- reconcile/gcp_image_mirror.py +4 -28
- reconcile/gql_definitions/common/saas_files.py +49 -0
- reconcile/gql_definitions/dashdotdb_slo/slo_documents_query.py +15 -67
- reconcile/gql_definitions/fragments/saas_slo_document.py +82 -0
- reconcile/gql_definitions/introspection.json +249 -229
- reconcile/quay_mirror.py +3 -42
- reconcile/utils/quay_mirror.py +42 -0
- reconcile/utils/slo_document_manager.py +278 -0
- {qontract_reconcile-0.10.2.dev167.dist-info → qontract_reconcile-0.10.2.dev169.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.2.dev167.dist-info → qontract_reconcile-0.10.2.dev169.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,82 @@
|
|
1
|
+
"""
|
2
|
+
Generated by qenerate plugin=pydantic_v1. DO NOT MODIFY MANUALLY!
|
3
|
+
"""
|
4
|
+
from collections.abc import Callable # noqa: F401 # pylint: disable=W0611
|
5
|
+
from datetime import datetime # noqa: F401 # pylint: disable=W0611
|
6
|
+
from enum import Enum # noqa: F401 # pylint: disable=W0611
|
7
|
+
from typing import ( # noqa: F401 # pylint: disable=W0611
|
8
|
+
Any,
|
9
|
+
Optional,
|
10
|
+
Union,
|
11
|
+
)
|
12
|
+
|
13
|
+
from pydantic import ( # noqa: F401 # pylint: disable=W0611
|
14
|
+
BaseModel,
|
15
|
+
Extra,
|
16
|
+
Field,
|
17
|
+
Json,
|
18
|
+
)
|
19
|
+
|
20
|
+
from reconcile.gql_definitions.fragments.vault_secret import VaultSecret
|
21
|
+
|
22
|
+
|
23
|
+
class ConfiguredBaseModel(BaseModel):
|
24
|
+
class Config:
|
25
|
+
smart_union=True
|
26
|
+
extra=Extra.forbid
|
27
|
+
|
28
|
+
|
29
|
+
class SLOExternalPrometheusAccessV1(ConfiguredBaseModel):
|
30
|
+
url: str = Field(..., alias="url")
|
31
|
+
username: Optional[VaultSecret] = Field(..., alias="username")
|
32
|
+
password: Optional[VaultSecret] = Field(..., alias="password")
|
33
|
+
|
34
|
+
|
35
|
+
class AppV1(ConfiguredBaseModel):
|
36
|
+
name: str = Field(..., alias="name")
|
37
|
+
|
38
|
+
|
39
|
+
class ClusterSpecV1(ConfiguredBaseModel):
|
40
|
+
private: bool = Field(..., alias="private")
|
41
|
+
|
42
|
+
|
43
|
+
class ClusterV1(ConfiguredBaseModel):
|
44
|
+
name: str = Field(..., alias="name")
|
45
|
+
automation_token: Optional[VaultSecret] = Field(..., alias="automationToken")
|
46
|
+
prometheus_url: str = Field(..., alias="prometheusUrl")
|
47
|
+
spec: Optional[ClusterSpecV1] = Field(..., alias="spec")
|
48
|
+
|
49
|
+
|
50
|
+
class NamespaceV1(ConfiguredBaseModel):
|
51
|
+
name: str = Field(..., alias="name")
|
52
|
+
app: AppV1 = Field(..., alias="app")
|
53
|
+
cluster: ClusterV1 = Field(..., alias="cluster")
|
54
|
+
|
55
|
+
|
56
|
+
class SLONamespacesV1_NamespaceV1(ConfiguredBaseModel):
|
57
|
+
name: str = Field(..., alias="name")
|
58
|
+
|
59
|
+
|
60
|
+
class SLONamespacesV1(ConfiguredBaseModel):
|
61
|
+
prometheus_access: Optional[SLOExternalPrometheusAccessV1] = Field(..., alias="prometheusAccess")
|
62
|
+
namespace: NamespaceV1 = Field(..., alias="namespace")
|
63
|
+
slo_namespace: Optional[SLONamespacesV1_NamespaceV1] = Field(..., alias="SLONamespace")
|
64
|
+
|
65
|
+
|
66
|
+
class SLODocumentSLOSLOParametersV1(ConfiguredBaseModel):
|
67
|
+
window: str = Field(..., alias="window")
|
68
|
+
|
69
|
+
|
70
|
+
class SLODocumentSLOV1(ConfiguredBaseModel):
|
71
|
+
name: str = Field(..., alias="name")
|
72
|
+
expr: str = Field(..., alias="expr")
|
73
|
+
sli_type: str = Field(..., alias="SLIType")
|
74
|
+
slo_parameters: SLODocumentSLOSLOParametersV1 = Field(..., alias="SLOParameters")
|
75
|
+
slo_target: float = Field(..., alias="SLOTarget")
|
76
|
+
slo_target_unit: str = Field(..., alias="SLOTargetUnit")
|
77
|
+
|
78
|
+
|
79
|
+
class SLODocument(ConfiguredBaseModel):
|
80
|
+
name: str = Field(..., alias="name")
|
81
|
+
namespaces: list[SLONamespacesV1] = Field(..., alias="namespaces")
|
82
|
+
slos: Optional[list[SLODocumentSLOV1]] = Field(..., alias="slos")
|