qontract-reconcile 0.10.1rc683__py3-none-any.whl → 0.10.1rc685__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.1rc683.dist-info → qontract_reconcile-0.10.1rc685.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc683.dist-info → qontract_reconcile-0.10.1rc685.dist-info}/RECORD +9 -8
- reconcile/aus/base.py +1 -1
- reconcile/aus/version_gates/__init__.py +6 -1
- reconcile/aus/version_gates/ingress_gate_handler.py +32 -0
- reconcile/cli.py +1 -1
- {qontract_reconcile-0.10.1rc683.dist-info → qontract_reconcile-0.10.1rc685.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc683.dist-info → qontract_reconcile-0.10.1rc685.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc683.dist-info → qontract_reconcile-0.10.1rc685.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc683.dist-info → qontract_reconcile-0.10.1rc685.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: qontract-reconcile
|
3
|
-
Version: 0.10.
|
3
|
+
Version: 0.10.1rc685
|
4
4
|
Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
|
5
5
|
Home-page: https://github.com/app-sre/qontract-reconcile
|
6
6
|
Author: Red Hat App-SRE Team
|
{qontract_reconcile-0.10.1rc683.dist-info → qontract_reconcile-0.10.1rc685.dist-info}/RECORD
RENAMED
@@ -9,7 +9,7 @@ reconcile/aws_iam_password_reset.py,sha256=NwErtrqgBiXr7eGCAHdtGGOx0S7-4JnSc29Ie
|
|
9
9
|
reconcile/aws_support_cases_sos.py,sha256=Jk6_XjDeJSYxgRGqcEAOcynt9qJF2r5HPIPcSKmoBv8,2974
|
10
10
|
reconcile/blackbox_exporter_endpoint_monitoring.py,sha256=W_VJagnsJR1v5oqjlI3RJJE0_nhtJ0m81RS8zWA5u5c,3538
|
11
11
|
reconcile/checkpoint.py,sha256=R2WFXUXLTB4sWMi4GeA4eegsuf_1-Q4vH8M0Toh3Ij4,5036
|
12
|
-
reconcile/cli.py,sha256=
|
12
|
+
reconcile/cli.py,sha256=2cp3O1XtwAdmN5VN7I7J-sUX41gRS2Y2lWoj-l4aZ_8,93610
|
13
13
|
reconcile/closedbox_endpoint_monitoring_base.py,sha256=SMhkcQqprWvThrIJa3U_3uh5w1h-alleW1QnCJFY4Qw,4909
|
14
14
|
reconcile/cluster_deployment_mapper.py,sha256=2Ah-nu-Mdig0pjuiZl_XLrmVAjYzFjORR3dMlCgkmw0,2352
|
15
15
|
reconcile/dashdotdb_base.py,sha256=a5aPLVxyqPSbjdB0Ty-uliOtxwvEbbEljHJKxdK3-Zk,4813
|
@@ -120,7 +120,7 @@ reconcile/vpc_peerings_validator.py,sha256=Kv22HJVlTW9l9GB2eXwjPWqdDbr_VuvQBNPtt
|
|
120
120
|
reconcile/aus/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
121
121
|
reconcile/aus/advanced_upgrade_service.py,sha256=W1_YgNNj_wYCIbcVkwME7DwU89nikkooHOYZ5PyR6vo,22302
|
122
122
|
reconcile/aus/aus_label_source.py,sha256=qoP8Fgxuu1tCuhG6ixCWve7Ll-KD6a79E2uLAmC0ifw,4184
|
123
|
-
reconcile/aus/base.py,sha256=
|
123
|
+
reconcile/aus/base.py,sha256=2Av1IZIjQZF-GRujbpqGAc7pl-a25WznpKTuUwg80eY,47457
|
124
124
|
reconcile/aus/cluster_version_data.py,sha256=j4UyEBi5mQuvPq5Lo7a_L_0blxvH790wJV07uAiikFU,7126
|
125
125
|
reconcile/aus/healthchecks.py,sha256=S8_KPn_zFiOo_wf5XlVmz-I3tUDYAim3EGSqiSPMvLQ,2707
|
126
126
|
reconcile/aus/metrics.py,sha256=nKT4m2zGT-QOMR0c-z-npVNKWsNMubzdffpU_f9n4II,3927
|
@@ -130,8 +130,9 @@ reconcile/aus/ocm_upgrade_scheduler.py,sha256=1KwIxLTZrOnFlUBAtdc52cghvq45z5tXY4
|
|
130
130
|
reconcile/aus/ocm_upgrade_scheduler_org.py,sha256=giRXVtlKcWoXLfPoCDPjOavAIC5_tNR6eGf6avPxveQ,3065
|
131
131
|
reconcile/aus/upgrades.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
132
132
|
reconcile/aus/version_gate_approver.py,sha256=sZEVB0qVpAXpqymHxavFprkqmqt29fZAIuzSjPHLLrQ,7239
|
133
|
-
reconcile/aus/version_gates/__init__.py,sha256=
|
133
|
+
reconcile/aus/version_gates/__init__.py,sha256=DUODBcyey5-fTsuKquG3RU7BbWBuUWpqEQeHejbBCUI,479
|
134
134
|
reconcile/aus/version_gates/handler.py,sha256=S_isQPYHbG4DERiUEvQBZ6ngiFX3uMmATA-Q_eNKmFk,839
|
135
|
+
reconcile/aus/version_gates/ingress_gate_handler.py,sha256=ZCtyggBzzcb0prtdbMpJsVkj5leYN-vS7srM9vbq9xo,1096
|
135
136
|
reconcile/aus/version_gates/ocp_gate_handler.py,sha256=RW1ppDaCZXVegV9AzzqYXxDUu_Z_7d43Z5h2Pk_piKc,716
|
136
137
|
reconcile/aus/version_gates/sts_version_gate_handler.py,sha256=PhJ7yBh2q-rv9CJcfFhc0H11nyDyG7NAryNS3F74xdY,3697
|
137
138
|
reconcile/aws_ami_cleanup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -723,8 +724,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=SX7qL3D1SIRKFo95FoQztvf
|
|
723
724
|
tools/test/test_qontract_cli.py,sha256=OvalpVRfY4pNmpMaWHHYqBjV68b1eGQjX8SCyTAXb1w,3501
|
724
725
|
tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
|
725
726
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
726
|
-
qontract_reconcile-0.10.
|
727
|
-
qontract_reconcile-0.10.
|
728
|
-
qontract_reconcile-0.10.
|
729
|
-
qontract_reconcile-0.10.
|
730
|
-
qontract_reconcile-0.10.
|
727
|
+
qontract_reconcile-0.10.1rc685.dist-info/METADATA,sha256=FgJpIZttWeXbU1AnOqTNomY1tNGRnpYT0mv4dA4AHEU,2382
|
728
|
+
qontract_reconcile-0.10.1rc685.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
729
|
+
qontract_reconcile-0.10.1rc685.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
|
730
|
+
qontract_reconcile-0.10.1rc685.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
731
|
+
qontract_reconcile-0.10.1rc685.dist-info/RECORD,,
|
reconcile/aus/base.py
CHANGED
@@ -1093,7 +1093,7 @@ def calculate_diff(
|
|
1093
1093
|
)
|
1094
1094
|
if gates:
|
1095
1095
|
gate_ids = [gate.id for gate in gates]
|
1096
|
-
logging.
|
1096
|
+
logging.info(
|
1097
1097
|
f"[{spec.org.org_id}/{spec.org.name}/{spec.cluster.name}] found gates for {target_version_prefix} - {gate_ids} "
|
1098
1098
|
"Skip creation of an upgrade policy until all of them have been acked by the version-gate-approver integration or a user."
|
1099
1099
|
)
|
@@ -1,9 +1,14 @@
|
|
1
1
|
from typing import Type
|
2
2
|
|
3
|
-
from reconcile.aus.version_gates import
|
3
|
+
from reconcile.aus.version_gates import (
|
4
|
+
ingress_gate_handler,
|
5
|
+
ocp_gate_handler,
|
6
|
+
sts_version_gate_handler,
|
7
|
+
)
|
4
8
|
from reconcile.aus.version_gates.handler import GateHandler
|
5
9
|
|
6
10
|
HANDLERS: dict[str, Type[GateHandler]] = {
|
7
11
|
ocp_gate_handler.GATE_LABEL: ocp_gate_handler.OCPGateHandler,
|
8
12
|
sts_version_gate_handler.GATE_LABEL: sts_version_gate_handler.STSGateHandler,
|
13
|
+
ingress_gate_handler.GATE_LABEL: ingress_gate_handler.IngressGateHandler,
|
9
14
|
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
from reconcile.aus.version_gates.handler import GateHandler
|
2
|
+
from reconcile.utils.ocm.base import OCMCluster, OCMVersionGate
|
3
|
+
from reconcile.utils.ocm_base_client import OCMBaseClient
|
4
|
+
|
5
|
+
GATE_LABEL = "api.openshift.com/gate-ingress"
|
6
|
+
|
7
|
+
|
8
|
+
class IngressGateHandler(GateHandler):
|
9
|
+
"""
|
10
|
+
https://access.redhat.com/node/7028653
|
11
|
+
"""
|
12
|
+
|
13
|
+
@staticmethod
|
14
|
+
def gate_applicable_to_cluster(_: OCMCluster) -> bool:
|
15
|
+
# applicable to all cluster types
|
16
|
+
return True
|
17
|
+
|
18
|
+
def handle(
|
19
|
+
self,
|
20
|
+
ocm_api: OCMBaseClient,
|
21
|
+
ocm_org_id: str,
|
22
|
+
cluster: OCMCluster,
|
23
|
+
gate: OCMVersionGate,
|
24
|
+
dry_run: bool,
|
25
|
+
) -> bool:
|
26
|
+
# there is no automatic remediation for this gate
|
27
|
+
# users need to manually do the required changes to their clusters
|
28
|
+
# and then need to ack the gate on their own or let version-gate-approver
|
29
|
+
# do it for them when they list this gate under upgradePolicy.versionGateApprovals
|
30
|
+
# in their cluster file or the sre-capabilities.aus.version-gate-approvals
|
31
|
+
# OCM subscription label
|
32
|
+
return True
|
reconcile/cli.py
CHANGED
File without changes
|
File without changes
|
{qontract_reconcile-0.10.1rc683.dist-info → qontract_reconcile-0.10.1rc685.dist-info}/top_level.txt
RENAMED
File without changes
|