qontract-reconcile 0.10.2.dev295__py3-none-any.whl → 0.10.2.dev296__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qontract-reconcile
3
- Version: 0.10.2.dev295
3
+ Version: 0.10.2.dev296
4
4
  Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
5
5
  Project-URL: homepage, https://github.com/app-sre/qontract-reconcile
6
6
  Project-URL: repository, https://github.com/app-sre/qontract-reconcile
@@ -135,7 +135,7 @@ reconcile/aus/version_gates/ocp_gate_handler.py,sha256=RW1ppDaCZXVegV9AzzqYXxDUu
135
135
  reconcile/aus/version_gates/sts_version_gate_handler.py,sha256=QDk53hXAEr6o8w3nGeVCrcihNohrMJztq4ZlsHq_35o,3655
136
136
  reconcile/automated_actions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
137
137
  reconcile/automated_actions/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
138
- reconcile/automated_actions/config/integration.py,sha256=EbVJGyEAFf91dHiIlnwbetbqZ3Y7HJOez2Fnexzd550,13853
138
+ reconcile/automated_actions/config/integration.py,sha256=5bnYJm9pdlZ_AD_F8oGQuWqyGVIDMsFmA6INKTzXRuQ,14638
139
139
  reconcile/aws_account_manager/README.md,sha256=_XFM3GZNHUzv--e_navqJuaUWpjC6QrHfulreHynFf0,262
140
140
  reconcile/aws_account_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
141
141
  reconcile/aws_account_manager/integration.py,sha256=WEbcvF8GocFHJrlz3mmXSOyYHIUrrHxq_SKaImgJQ2c,15346
@@ -213,7 +213,7 @@ reconcile/glitchtip_project_alerts/integration.py,sha256=d3PMy-mQSbSZdIGAVaZCA2U
213
213
  reconcile/glitchtip_project_dsn/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
214
214
  reconcile/glitchtip_project_dsn/integration.py,sha256=3GgcqUM6hWhLpo9Yx5Xr9vrdexF-WNevVCNL9bJ0Upc,8162
215
215
  reconcile/gql_definitions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
216
- reconcile/gql_definitions/introspection.json,sha256=CQAoUjEbdjRlHyYeLjs1PTMiP_RQrPzD0yCj08aYawA,2348381
216
+ reconcile/gql_definitions/introspection.json,sha256=Aak1w7K7K1fhgZoZNN2gQ2TV3Jwh0X2GhqfpqRLwWp4,2359202
217
217
  reconcile/gql_definitions/acs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
218
218
  reconcile/gql_definitions/acs/acs_instances.py,sha256=L91WW9LbhJbBSrECqShQpFtjoBOsmNIYLRpMbx1io5o,2181
219
219
  reconcile/gql_definitions/acs/acs_policies.py,sha256=Ygpfl2-VkYLSlJvHgp_dJBfb66K_Rwfdfpsa18w1v1s,4338
@@ -227,7 +227,7 @@ reconcile/gql_definitions/app_sre_tekton_access_revalidation/__init__.py,sha256=
227
227
  reconcile/gql_definitions/app_sre_tekton_access_revalidation/roles.py,sha256=8Y4NsS5T7tumDWxY5MuoV50MK2i-DsLYSpCRjb7KaLE,2353
228
228
  reconcile/gql_definitions/app_sre_tekton_access_revalidation/users.py,sha256=XdVxBxiyTR6Cy939EHNw__0k7iWrZWlhrgS5DakST0I,2504
229
229
  reconcile/gql_definitions/automated_actions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
230
- reconcile/gql_definitions/automated_actions/instance.py,sha256=6UPBKXPSjBsTXGdRQMK1ZXuns5pMPgYBscO3LxU3Gow,12406
230
+ reconcile/gql_definitions/automated_actions/instance.py,sha256=BGdArzLhns8EKsR3ROGtQx1WcFvsv25We7rzveBExhg,14183
231
231
  reconcile/gql_definitions/aws_account_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
232
232
  reconcile/gql_definitions/aws_account_manager/aws_accounts.py,sha256=vF51KrY2gwX0J9vESiaRMPQqdAMEtz9f_tBq52bInp0,5148
233
233
  reconcile/gql_definitions/aws_ami_cleanup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -796,7 +796,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
796
796
  tools/saas_promotion_state/saas_promotion_state.py,sha256=uQv2QJAmUXP1g2GPIH30WTlvL9soY6m9lefpZEVDM5w,3965
797
797
  tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
798
798
  tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y,894
799
- qontract_reconcile-0.10.2.dev295.dist-info/METADATA,sha256=b48r1FF0GwIfFEiB6y-etqnHajQ5GHIn079H9KABEys,24916
800
- qontract_reconcile-0.10.2.dev295.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
801
- qontract_reconcile-0.10.2.dev295.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
802
- qontract_reconcile-0.10.2.dev295.dist-info/RECORD,,
799
+ qontract_reconcile-0.10.2.dev296.dist-info/METADATA,sha256=7dJrZxkVMSto5PnvpCwOcPohimXhWm9frSgZUDnUXdw,24916
800
+ qontract_reconcile-0.10.2.dev296.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
801
+ qontract_reconcile-0.10.2.dev296.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
802
+ qontract_reconcile-0.10.2.dev296.dist-info/RECORD,,
@@ -20,6 +20,7 @@ from reconcile.gql_definitions.automated_actions.instance import (
20
20
  AutomatedActionExternalResourceFlushElastiCacheV1,
21
21
  AutomatedActionExternalResourceRdsRebootV1,
22
22
  AutomatedActionExternalResourceRdsSnapshotV1,
23
+ AutomatedActionOpenshiftWorkloadDeleteV1,
23
24
  AutomatedActionOpenshiftWorkloadRestartArgumentV1,
24
25
  AutomatedActionOpenshiftWorkloadRestartV1,
25
26
  AutomatedActionsInstanceV1,
@@ -204,6 +205,19 @@ class AutomatedActionsConfigIntegration(
204
205
  "account": f"^{rds_snapshot_er.provisioner.name}$",
205
206
  "identifier": rds_snapshot_arg.identifier,
206
207
  })
208
+ case AutomatedActionOpenshiftWorkloadDeleteV1():
209
+ parameters.extend(
210
+ {
211
+ # all parameter values are regexes in the OPA policy
212
+ # therefore, cluster and namespace must be fixed to the current strings
213
+ "cluster": f"^{arg.namespace.cluster.name}$",
214
+ "namespace": f"^{arg.namespace.name}$",
215
+ "api_version": arg.api_version or ".*",
216
+ "kind": arg.kind,
217
+ "name": arg.name,
218
+ }
219
+ for arg in action.openshift_workload_delete_arguments
220
+ )
207
221
  case AutomatedActionOpenshiftWorkloadRestartV1():
208
222
  parameters.extend(
209
223
  {
@@ -132,6 +132,23 @@ query AutomatedActionsInstances {
132
132
  identifier
133
133
  }
134
134
  }
135
+ ... on AutomatedActionOpenshiftWorkloadDelete_v1 {
136
+ openshift_workload_delete_arguments: arguments {
137
+ namespace {
138
+ name
139
+ delete
140
+ cluster {
141
+ name
142
+ disable {
143
+ integrations
144
+ }
145
+ }
146
+ }
147
+ api_version
148
+ kind
149
+ name
150
+ }
151
+ }
135
152
  ... on AutomatedActionOpenshiftWorkloadRestart_v1 {
136
153
  openshift_workload_restart_arguments: arguments {
137
154
  namespace {
@@ -280,11 +297,37 @@ class DisableClusterAutomationsV1(ConfiguredBaseModel):
280
297
  integrations: Optional[list[str]] = Field(..., alias="integrations")
281
298
 
282
299
 
283
- class AutomatedActionOpenshiftWorkloadRestartArgumentV1_NamespaceV1_ClusterV1(ConfiguredBaseModel):
300
+ class AutomatedActionOpenshiftWorkloadDeleteArgumentV1_NamespaceV1_ClusterV1(ConfiguredBaseModel):
284
301
  name: str = Field(..., alias="name")
285
302
  disable: Optional[DisableClusterAutomationsV1] = Field(..., alias="disable")
286
303
 
287
304
 
305
+ class AutomatedActionOpenshiftWorkloadDeleteArgumentV1_NamespaceV1(ConfiguredBaseModel):
306
+ name: str = Field(..., alias="name")
307
+ delete: Optional[bool] = Field(..., alias="delete")
308
+ cluster: AutomatedActionOpenshiftWorkloadDeleteArgumentV1_NamespaceV1_ClusterV1 = Field(..., alias="cluster")
309
+
310
+
311
+ class AutomatedActionOpenshiftWorkloadDeleteArgumentV1(ConfiguredBaseModel):
312
+ namespace: AutomatedActionOpenshiftWorkloadDeleteArgumentV1_NamespaceV1 = Field(..., alias="namespace")
313
+ api_version: Optional[str] = Field(..., alias="api_version")
314
+ kind: str = Field(..., alias="kind")
315
+ name: str = Field(..., alias="name")
316
+
317
+
318
+ class AutomatedActionOpenshiftWorkloadDeleteV1(AutomatedActionV1):
319
+ openshift_workload_delete_arguments: list[AutomatedActionOpenshiftWorkloadDeleteArgumentV1] = Field(..., alias="openshift_workload_delete_arguments")
320
+
321
+
322
+ class AutomatedActionOpenshiftWorkloadRestartArgumentV1_NamespaceV1_ClusterV1_DisableClusterAutomationsV1(ConfiguredBaseModel):
323
+ integrations: Optional[list[str]] = Field(..., alias="integrations")
324
+
325
+
326
+ class AutomatedActionOpenshiftWorkloadRestartArgumentV1_NamespaceV1_ClusterV1(ConfiguredBaseModel):
327
+ name: str = Field(..., alias="name")
328
+ disable: Optional[AutomatedActionOpenshiftWorkloadRestartArgumentV1_NamespaceV1_ClusterV1_DisableClusterAutomationsV1] = Field(..., alias="disable")
329
+
330
+
288
331
  class AutomatedActionOpenshiftWorkloadRestartArgumentV1_NamespaceV1(ConfiguredBaseModel):
289
332
  name: str = Field(..., alias="name")
290
333
  delete: Optional[bool] = Field(..., alias="delete")
@@ -304,7 +347,7 @@ class AutomatedActionOpenshiftWorkloadRestartV1(AutomatedActionV1):
304
347
  class AutomatedActionsInstanceV1(ConfiguredBaseModel):
305
348
  name: str = Field(..., alias="name")
306
349
  deployment: NamespaceV1 = Field(..., alias="deployment")
307
- actions: Optional[list[Union[AutomatedActionActionListV1, AutomatedActionExternalResourceFlushElastiCacheV1, AutomatedActionExternalResourceRdsRebootV1, AutomatedActionExternalResourceRdsSnapshotV1, AutomatedActionOpenshiftWorkloadRestartV1, AutomatedActionV1]]] = Field(..., alias="actions")
350
+ actions: Optional[list[Union[AutomatedActionActionListV1, AutomatedActionExternalResourceFlushElastiCacheV1, AutomatedActionExternalResourceRdsRebootV1, AutomatedActionExternalResourceRdsSnapshotV1, AutomatedActionOpenshiftWorkloadDeleteV1, AutomatedActionOpenshiftWorkloadRestartV1, AutomatedActionV1]]] = Field(..., alias="actions")
308
351
 
309
352
 
310
353
  class AutomatedActionsInstancesQueryData(ConfiguredBaseModel):
@@ -5706,6 +5706,11 @@
5706
5706
  "name": "AutomatedActionNoOp_v1",
5707
5707
  "ofType": null
5708
5708
  },
5709
+ {
5710
+ "kind": "OBJECT",
5711
+ "name": "AutomatedActionOpenshiftWorkloadDelete_v1",
5712
+ "ofType": null
5713
+ },
5709
5714
  {
5710
5715
  "kind": "OBJECT",
5711
5716
  "name": "AutomatedActionOpenshiftWorkloadRestart_v1",
@@ -27325,6 +27330,11 @@
27325
27330
  "name": "AutomatedActionNoOp_v1",
27326
27331
  "ofType": null
27327
27332
  },
27333
+ {
27334
+ "kind": "OBJECT",
27335
+ "name": "AutomatedActionOpenshiftWorkloadDelete_v1",
27336
+ "ofType": null
27337
+ },
27328
27338
  {
27329
27339
  "kind": "OBJECT",
27330
27340
  "name": "AutomatedActionOpenshiftWorkloadRestart_v1",
@@ -53916,6 +53926,243 @@
53916
53926
  "enumValues": null,
53917
53927
  "possibleTypes": null
53918
53928
  },
53929
+ {
53930
+ "kind": "OBJECT",
53931
+ "name": "AutomatedActionOpenshiftWorkloadDelete_v1",
53932
+ "description": null,
53933
+ "fields": [
53934
+ {
53935
+ "name": "schema",
53936
+ "description": null,
53937
+ "args": [],
53938
+ "type": {
53939
+ "kind": "NON_NULL",
53940
+ "name": null,
53941
+ "ofType": {
53942
+ "kind": "SCALAR",
53943
+ "name": "String",
53944
+ "ofType": null
53945
+ }
53946
+ },
53947
+ "isDeprecated": false,
53948
+ "deprecationReason": null
53949
+ },
53950
+ {
53951
+ "name": "path",
53952
+ "description": null,
53953
+ "args": [],
53954
+ "type": {
53955
+ "kind": "NON_NULL",
53956
+ "name": null,
53957
+ "ofType": {
53958
+ "kind": "SCALAR",
53959
+ "name": "String",
53960
+ "ofType": null
53961
+ }
53962
+ },
53963
+ "isDeprecated": false,
53964
+ "deprecationReason": null
53965
+ },
53966
+ {
53967
+ "name": "type",
53968
+ "description": null,
53969
+ "args": [],
53970
+ "type": {
53971
+ "kind": "NON_NULL",
53972
+ "name": null,
53973
+ "ofType": {
53974
+ "kind": "SCALAR",
53975
+ "name": "String",
53976
+ "ofType": null
53977
+ }
53978
+ },
53979
+ "isDeprecated": false,
53980
+ "deprecationReason": null
53981
+ },
53982
+ {
53983
+ "name": "description",
53984
+ "description": null,
53985
+ "args": [],
53986
+ "type": {
53987
+ "kind": "SCALAR",
53988
+ "name": "String",
53989
+ "ofType": null
53990
+ },
53991
+ "isDeprecated": false,
53992
+ "deprecationReason": null
53993
+ },
53994
+ {
53995
+ "name": "maxOps",
53996
+ "description": null,
53997
+ "args": [],
53998
+ "type": {
53999
+ "kind": "NON_NULL",
54000
+ "name": null,
54001
+ "ofType": {
54002
+ "kind": "SCALAR",
54003
+ "name": "Int",
54004
+ "ofType": null
54005
+ }
54006
+ },
54007
+ "isDeprecated": false,
54008
+ "deprecationReason": null
54009
+ },
54010
+ {
54011
+ "name": "instances",
54012
+ "description": null,
54013
+ "args": [],
54014
+ "type": {
54015
+ "kind": "NON_NULL",
54016
+ "name": null,
54017
+ "ofType": {
54018
+ "kind": "LIST",
54019
+ "name": null,
54020
+ "ofType": {
54021
+ "kind": "NON_NULL",
54022
+ "name": null,
54023
+ "ofType": {
54024
+ "kind": "OBJECT",
54025
+ "name": "AutomatedActionsInstance_v1",
54026
+ "ofType": null
54027
+ }
54028
+ }
54029
+ }
54030
+ },
54031
+ "isDeprecated": false,
54032
+ "deprecationReason": null
54033
+ },
54034
+ {
54035
+ "name": "permissions",
54036
+ "description": null,
54037
+ "args": [],
54038
+ "type": {
54039
+ "kind": "LIST",
54040
+ "name": null,
54041
+ "ofType": {
54042
+ "kind": "NON_NULL",
54043
+ "name": null,
54044
+ "ofType": {
54045
+ "kind": "OBJECT",
54046
+ "name": "PermissionAutomatedActions_v1",
54047
+ "ofType": null
54048
+ }
54049
+ }
54050
+ },
54051
+ "isDeprecated": false,
54052
+ "deprecationReason": null
54053
+ },
54054
+ {
54055
+ "name": "arguments",
54056
+ "description": null,
54057
+ "args": [],
54058
+ "type": {
54059
+ "kind": "NON_NULL",
54060
+ "name": null,
54061
+ "ofType": {
54062
+ "kind": "LIST",
54063
+ "name": null,
54064
+ "ofType": {
54065
+ "kind": "NON_NULL",
54066
+ "name": null,
54067
+ "ofType": {
54068
+ "kind": "OBJECT",
54069
+ "name": "AutomatedActionOpenshiftWorkloadDeleteArgument_v1",
54070
+ "ofType": null
54071
+ }
54072
+ }
54073
+ }
54074
+ },
54075
+ "isDeprecated": false,
54076
+ "deprecationReason": null
54077
+ }
54078
+ ],
54079
+ "inputFields": null,
54080
+ "interfaces": [
54081
+ {
54082
+ "kind": "INTERFACE",
54083
+ "name": "AutomatedAction_v1",
54084
+ "ofType": null
54085
+ },
54086
+ {
54087
+ "kind": "INTERFACE",
54088
+ "name": "DatafileObject_v1",
54089
+ "ofType": null
54090
+ }
54091
+ ],
54092
+ "enumValues": null,
54093
+ "possibleTypes": null
54094
+ },
54095
+ {
54096
+ "kind": "OBJECT",
54097
+ "name": "AutomatedActionOpenshiftWorkloadDeleteArgument_v1",
54098
+ "description": null,
54099
+ "fields": [
54100
+ {
54101
+ "name": "namespace",
54102
+ "description": null,
54103
+ "args": [],
54104
+ "type": {
54105
+ "kind": "NON_NULL",
54106
+ "name": null,
54107
+ "ofType": {
54108
+ "kind": "OBJECT",
54109
+ "name": "Namespace_v1",
54110
+ "ofType": null
54111
+ }
54112
+ },
54113
+ "isDeprecated": false,
54114
+ "deprecationReason": null
54115
+ },
54116
+ {
54117
+ "name": "api_version",
54118
+ "description": null,
54119
+ "args": [],
54120
+ "type": {
54121
+ "kind": "SCALAR",
54122
+ "name": "String",
54123
+ "ofType": null
54124
+ },
54125
+ "isDeprecated": false,
54126
+ "deprecationReason": null
54127
+ },
54128
+ {
54129
+ "name": "kind",
54130
+ "description": null,
54131
+ "args": [],
54132
+ "type": {
54133
+ "kind": "NON_NULL",
54134
+ "name": null,
54135
+ "ofType": {
54136
+ "kind": "SCALAR",
54137
+ "name": "String",
54138
+ "ofType": null
54139
+ }
54140
+ },
54141
+ "isDeprecated": false,
54142
+ "deprecationReason": null
54143
+ },
54144
+ {
54145
+ "name": "name",
54146
+ "description": null,
54147
+ "args": [],
54148
+ "type": {
54149
+ "kind": "NON_NULL",
54150
+ "name": null,
54151
+ "ofType": {
54152
+ "kind": "SCALAR",
54153
+ "name": "String",
54154
+ "ofType": null
54155
+ }
54156
+ },
54157
+ "isDeprecated": false,
54158
+ "deprecationReason": null
54159
+ }
54160
+ ],
54161
+ "inputFields": null,
54162
+ "interfaces": [],
54163
+ "enumValues": null,
54164
+ "possibleTypes": null
54165
+ },
53919
54166
  {
53920
54167
  "kind": "OBJECT",
53921
54168
  "name": "AutomatedActionOpenshiftWorkloadRestart_v1",