qontract-reconcile 0.9.1rc242__py3-none-any.whl → 0.9.1rc243__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.9.1rc242.dist-info → qontract_reconcile-0.9.1rc243.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.9.1rc242.dist-info → qontract_reconcile-0.9.1rc243.dist-info}/RECORD +6 -6
- reconcile/utils/oc.py +23 -17
- {qontract_reconcile-0.9.1rc242.dist-info → qontract_reconcile-0.9.1rc243.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.9.1rc242.dist-info → qontract_reconcile-0.9.1rc243.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.9.1rc242.dist-info → qontract_reconcile-0.9.1rc243.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.9.1rc242.dist-info → qontract_reconcile-0.9.1rc243.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: qontract-reconcile
|
3
|
-
Version: 0.9.
|
3
|
+
Version: 0.9.1rc243
|
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
|
@@ -471,7 +471,7 @@ reconcile/utils/ldap_client.py,sha256=atreTLA1f7gnG54Ub3JWkToP9tCwAci-q17dqB5XSh
|
|
471
471
|
reconcile/utils/lean_terraform_client.py,sha256=no9MMgG6TsgjM3EypIhLQtRmPZl9eNnZ0k0llWSBn6Y,865
|
472
472
|
reconcile/utils/make.py,sha256=QaEwucrzbl8-VHS66Wfdjfo0ubmAcvt_hZGpiGsKU50,231
|
473
473
|
reconcile/utils/metrics.py,sha256=7DO12hEJ7sNOjrTNmA24l5wmAe4MT0WgY-Y2iPhBgXI,2015
|
474
|
-
reconcile/utils/oc.py,sha256
|
474
|
+
reconcile/utils/oc.py,sha256=SMjqezK6XQEWYgkXAEVGeNXdbEC1wAnzdAn439fK-L0,68610
|
475
475
|
reconcile/utils/oc_connection_parameters.py,sha256=jlEMObRAx0NuWQfEF7NXkLoY-Ewrr9egA7nUr_oUHyM,10011
|
476
476
|
reconcile/utils/oc_filters.py,sha256=RWn8pC5A7ZZT7C6WPq9bOw5KBNkiAb5puFSr_FpdAf8,1358
|
477
477
|
reconcile/utils/oc_map.py,sha256=2y8A2B7iSNG4dTxaF9OkKlbw0DYcUwjeF3uv-P0lTBM,9538
|
@@ -559,8 +559,8 @@ tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y
|
|
559
559
|
tools/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
560
560
|
tools/test/test_qontract_cli.py,sha256=awwTHEc2DWlykuqGIYM0WOBoSL0KRnOraCLk3C7izis,1401
|
561
561
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
562
|
-
qontract_reconcile-0.9.
|
563
|
-
qontract_reconcile-0.9.
|
564
|
-
qontract_reconcile-0.9.
|
565
|
-
qontract_reconcile-0.9.
|
566
|
-
qontract_reconcile-0.9.
|
562
|
+
qontract_reconcile-0.9.1rc243.dist-info/METADATA,sha256=qS1WgtZ7FKOBBRdze5SVZeHuFnArF6mR6uYKQDZa5vs,2287
|
563
|
+
qontract_reconcile-0.9.1rc243.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
564
|
+
qontract_reconcile-0.9.1rc243.dist-info/entry_points.txt,sha256=aIVvB7OTCxYu0QkONzBPfFEyg68Pr8KUVKEEm4ChDVc,333
|
565
|
+
qontract_reconcile-0.9.1rc243.dist-info/top_level.txt,sha256=j0CHPIc8TsVRB50wOz_jhxjjaRyCJB3NOQeXhuHS67c,34
|
566
|
+
qontract_reconcile-0.9.1rc243.dist-info/RECORD,,
|
reconcile/utils/oc.py
CHANGED
@@ -711,27 +711,33 @@ class OCDeprecated: # pylint: disable=too-many-public-methods
|
|
711
711
|
cmd = ["sa", "-n", namespace, "get-token", name]
|
712
712
|
return self._run(cmd)
|
713
713
|
|
714
|
+
def _process_api_resources(self, results):
|
715
|
+
for line in results:
|
716
|
+
r = line.split()
|
717
|
+
kind = r[-1]
|
718
|
+
namespaced = r[-2].lower() == "true"
|
719
|
+
group_version = r[-3].split("/", 1)
|
720
|
+
# Core group (v1)
|
721
|
+
group = ""
|
722
|
+
api_version = group_version
|
723
|
+
if len(group_version) > 1:
|
724
|
+
# group/version
|
725
|
+
group = group_version[0]
|
726
|
+
api_version = group_version[1]
|
727
|
+
obj = OCDeprecatedApiResource(kind, group, api_version, namespaced)
|
728
|
+
d = self.api_resources.setdefault(kind, [])
|
729
|
+
d.append(obj)
|
730
|
+
|
714
731
|
def get_api_resources(self):
|
715
732
|
with self.api_resources_lock:
|
716
733
|
if not self.api_resources:
|
717
734
|
cmd = ["api-resources", "--no-headers"]
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
# Core group (v1)
|
725
|
-
group = ""
|
726
|
-
api_version = group_version
|
727
|
-
if len(group_version) > 1:
|
728
|
-
# group/version
|
729
|
-
group = group_version[0]
|
730
|
-
api_version = group_version[1]
|
731
|
-
obj = OCDeprecatedApiResource(kind, group, api_version, namespaced)
|
732
|
-
d = self.api_resources.setdefault(kind, [])
|
733
|
-
d.append(obj)
|
734
|
-
|
735
|
+
try:
|
736
|
+
results = self._run(cmd).decode("utf-8").split("\n")
|
737
|
+
self._process_api_resources(results)
|
738
|
+
except AttributeError:
|
739
|
+
results = self._run(cmd).split("\n")
|
740
|
+
self._process_api_resources(results)
|
735
741
|
return self.api_resources
|
736
742
|
|
737
743
|
def get_version(self):
|
File without changes
|
{qontract_reconcile-0.9.1rc242.dist-info → qontract_reconcile-0.9.1rc243.dist-info}/entry_points.txt
RENAMED
File without changes
|
{qontract_reconcile-0.9.1rc242.dist-info → qontract_reconcile-0.9.1rc243.dist-info}/top_level.txt
RENAMED
File without changes
|