kubernator 1.0.16.dev20240514041500__py3-none-any.whl → 1.0.17__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.
Potentially problematic release.
This version of kubernator might be problematic. Click here for more details.
- kubernator/__init__.py +1 -1
- kubernator/api.py +4 -3
- kubernator/plugins/k8s.py +15 -1
- {kubernator-1.0.16.dev20240514041500.dist-info → kubernator-1.0.17.dist-info}/METADATA +15 -14
- {kubernator-1.0.16.dev20240514041500.dist-info → kubernator-1.0.17.dist-info}/RECORD +10 -10
- {kubernator-1.0.16.dev20240514041500.dist-info → kubernator-1.0.17.dist-info}/WHEEL +1 -1
- {kubernator-1.0.16.dev20240514041500.dist-info → kubernator-1.0.17.dist-info}/entry_points.txt +0 -0
- {kubernator-1.0.16.dev20240514041500.dist-info → kubernator-1.0.17.dist-info}/namespace_packages.txt +0 -0
- {kubernator-1.0.16.dev20240514041500.dist-info → kubernator-1.0.17.dist-info}/top_level.txt +0 -0
- {kubernator-1.0.16.dev20240514041500.dist-info → kubernator-1.0.17.dist-info}/zip-safe +0 -0
kubernator/__init__.py
CHANGED
kubernator/api.py
CHANGED
|
@@ -38,7 +38,6 @@ from typing import Optional, Union, MutableSequence
|
|
|
38
38
|
|
|
39
39
|
import requests
|
|
40
40
|
import yaml
|
|
41
|
-
from platformdirs import user_cache_dir
|
|
42
41
|
from diff_match_patch import diff_match_patch
|
|
43
42
|
from jinja2 import (Environment,
|
|
44
43
|
ChainableUndefined,
|
|
@@ -46,6 +45,7 @@ from jinja2 import (Environment,
|
|
|
46
45
|
Template as JinjaTemplate,
|
|
47
46
|
pass_context)
|
|
48
47
|
from jsonschema import validators
|
|
48
|
+
from platformdirs import user_cache_dir
|
|
49
49
|
|
|
50
50
|
from kubernator._json_path import jp # noqa: F401
|
|
51
51
|
from kubernator._k8s_client_patches import (URLLIB_HEADERS_PATCH,
|
|
@@ -765,9 +765,10 @@ def install_python_k8s_client(run, package_major, logger, logger_stdout, logger_
|
|
|
765
765
|
|
|
766
766
|
if not package_major_dir.exists():
|
|
767
767
|
package_major_dir.mkdir(parents=True, exist_ok=True)
|
|
768
|
-
run([sys.executable, "-m", "pip", "install", "--no-deps", "--no-input",
|
|
768
|
+
run([sys.executable, "-m", "pip", "install", "--no-deps", "--no-input",
|
|
769
769
|
"--root-user-action=ignore", "--break-system-packages", "--disable-pip-version-check",
|
|
770
|
-
"--target", package_major_dir_str, f"kubernetes
|
|
770
|
+
"--target", package_major_dir_str, f"kubernetes>={package_major!s}dev0,<{int(package_major) + 1!s}"],
|
|
771
|
+
logger_stdout, logger_stderr).wait()
|
|
771
772
|
|
|
772
773
|
if not patch_indicator.exists() and not disable_patching:
|
|
773
774
|
for patch_text, target_file, skip_if_found, min_version, max_version, name in (
|
kubernator/plugins/k8s.py
CHANGED
|
@@ -68,6 +68,19 @@ def final_resource_validator(resources: Sequence[K8SResource],
|
|
|
68
68
|
resource, resource.source)
|
|
69
69
|
|
|
70
70
|
|
|
71
|
+
def normalize_pkg_version(v: str):
|
|
72
|
+
v_split = v.split(".")
|
|
73
|
+
rev = v_split[-1]
|
|
74
|
+
if not rev.isdigit():
|
|
75
|
+
new_rev = ""
|
|
76
|
+
for c in rev:
|
|
77
|
+
if not c.isdigit():
|
|
78
|
+
break
|
|
79
|
+
new_rev += c
|
|
80
|
+
v_split[-1] = new_rev
|
|
81
|
+
return tuple(map(int, v_split))
|
|
82
|
+
|
|
83
|
+
|
|
71
84
|
class KubernetesPlugin(KubernatorPlugin, K8SResourcePluginMixin):
|
|
72
85
|
logger = logger
|
|
73
86
|
|
|
@@ -193,7 +206,8 @@ class KubernetesPlugin(KubernatorPlugin, K8SResourcePluginMixin):
|
|
|
193
206
|
k8s.server_git_version = git_version
|
|
194
207
|
|
|
195
208
|
logger.info("Found Kubernetes %s on %s", k8s.server_git_version, k8s.client.configuration.host)
|
|
196
|
-
|
|
209
|
+
|
|
210
|
+
K8SResource._k8s_client_version = normalize_pkg_version(pkg_version("kubernetes"))
|
|
197
211
|
K8SResource._k8s_field_validation = k8s.field_validation
|
|
198
212
|
K8SResource._k8s_field_validation_patched = not k8s.disable_client_patches
|
|
199
213
|
K8SResource._logger = self.logger
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: kubernator
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.17
|
|
4
4
|
Summary: Kubernator is the a pluggable framework for K8S provisioning
|
|
5
5
|
Home-page: https://github.com/karellen/kubernator
|
|
6
6
|
Author: Express Systems USA, Inc.
|
|
@@ -31,19 +31,20 @@ Classifier: Intended Audience :: Developers
|
|
|
31
31
|
Classifier: Development Status :: 4 - Beta
|
|
32
32
|
Requires-Python: >=3.9
|
|
33
33
|
Description-Content-Type: text/markdown
|
|
34
|
-
Requires-Dist: coloredlogs
|
|
35
|
-
Requires-Dist: diff-match-patch
|
|
36
|
-
Requires-Dist:
|
|
37
|
-
Requires-Dist:
|
|
38
|
-
Requires-Dist:
|
|
39
|
-
Requires-Dist:
|
|
40
|
-
Requires-Dist:
|
|
41
|
-
Requires-Dist:
|
|
42
|
-
Requires-Dist:
|
|
43
|
-
Requires-Dist:
|
|
44
|
-
Requires-Dist: openapi-
|
|
45
|
-
Requires-Dist:
|
|
46
|
-
Requires-Dist:
|
|
34
|
+
Requires-Dist: coloredlogs~=15.0
|
|
35
|
+
Requires-Dist: diff-match-patch>2023.0
|
|
36
|
+
Requires-Dist: durationpy>=0.7
|
|
37
|
+
Requires-Dist: gevent>=21.1.2
|
|
38
|
+
Requires-Dist: jinja2~=3.1
|
|
39
|
+
Requires-Dist: json-log-formatter~=0.3
|
|
40
|
+
Requires-Dist: jsonpatch~=1.32
|
|
41
|
+
Requires-Dist: jsonpath-ng~=1.6.1
|
|
42
|
+
Requires-Dist: jsonschema<4.0
|
|
43
|
+
Requires-Dist: kubernetes~=30.0
|
|
44
|
+
Requires-Dist: openapi-schema-validator~=0.1
|
|
45
|
+
Requires-Dist: openapi-spec-validator~=0.3
|
|
46
|
+
Requires-Dist: platformdirs~=4.2
|
|
47
|
+
Requires-Dist: requests<=2.31.0
|
|
47
48
|
|
|
48
49
|
# Kubernator
|
|
49
50
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
kubernator/LICENSE,sha256=wKKdOCMTCPQRV5gDkVLAsXX8qSnRJ5owk7yWPO1KZNo,11387
|
|
2
|
-
kubernator/__init__.py,sha256=
|
|
2
|
+
kubernator/__init__.py,sha256=gAjhdip8fRJb9Pn3h8PXD--afamYsaBOkCNxZTJKDXA,915
|
|
3
3
|
kubernator/__main__.py,sha256=f0S60wgpLu--1UlOhzfWail-xt8zyIuODodX98_yPN0,707
|
|
4
4
|
kubernator/_json_path.py,sha256=pjQKXxgbpQWETYBIrIuJZHgugF92IbEAM19AC7JUmAQ,3162
|
|
5
5
|
kubernator/_k8s_client_patches.py,sha256=PEeWPInnW38NDyK7G24_Dmw-x7xHpN3vJWZeckdqgK0,76892
|
|
6
|
-
kubernator/api.py,sha256=
|
|
6
|
+
kubernator/api.py,sha256=kEmfsSbiNxogn-ZG2n7_m93yF-Wg9379sMUySnNGaSY,26736
|
|
7
7
|
kubernator/app.py,sha256=ZtQm60Cb1z2SkD338B6nue3wLOo_auRqZRW5ou_-d84,20949
|
|
8
8
|
kubernator/merge.py,sha256=eW5fajnDdI2n8aUqRfTmdG6GWDvDtcVKPKsp3fiB5Nk,5882
|
|
9
9
|
kubernator/proc.py,sha256=8YlgbppyHic_51fVTPD7OP8x5yuRuL8j1kThR8MJjNI,5119
|
|
@@ -12,7 +12,7 @@ kubernator/plugins/awscli.py,sha256=S6X7-qFiaZ7NDVDl2Jg0t-ih9KAJ45cUjjzd5Qe93ZM,
|
|
|
12
12
|
kubernator/plugins/eks.py,sha256=xe7vyPHNwuP8gEYDSzPyBkm-RkAtP64wCOqs9U5I7xI,2273
|
|
13
13
|
kubernator/plugins/helm.py,sha256=3BYZBPoiMUtNgmhdcbYCVRTPtaQMYzhfnMqXWyZRJZc,10525
|
|
14
14
|
kubernator/plugins/istio.py,sha256=hD-VCNVGELt7cGFbE7S7dTiqKE7rfhzE8qA9X5tsllE,10532
|
|
15
|
-
kubernator/plugins/k8s.py,sha256=
|
|
15
|
+
kubernator/plugins/k8s.py,sha256=Zj3q_bUmbOADfjSHy2X0BhgrbXuH-fM8Vq75sYFy0nE,24496
|
|
16
16
|
kubernator/plugins/k8s_api.py,sha256=w2aB7CU0rPqRgzhI5mLMJUUSpWlJGCsX_bHl4SjfzM8,27594
|
|
17
17
|
kubernator/plugins/kops.py,sha256=QsrQJUF6wGJo2QRVqP92pG5vmOTYQIc25PD_DWCzrAA,9635
|
|
18
18
|
kubernator/plugins/kubeconfig.py,sha256=uwtHmF2I6LiTPrC3M88G5SfYxDWtuh0MqcMfrHHoNRA,2178
|
|
@@ -21,10 +21,10 @@ kubernator/plugins/minikube.py,sha256=kWPDIS4X1JnEoXw_rIOvgvFtjJMch39uL0mD7gQwtj
|
|
|
21
21
|
kubernator/plugins/template.py,sha256=KEiPfI7TbYXmF4a8ATWuFhxxWbcASHttFM_ekYEZ8Ps,8371
|
|
22
22
|
kubernator/plugins/terraform.py,sha256=a1MPl9G8Rznjd28uMRdYWrjpFDLlFAVmLFH4hFEsMsQ,5285
|
|
23
23
|
kubernator/plugins/terragrunt.py,sha256=-qN8tTqPUXJ9O7CEiJVUB0GSUQU3DUTkv-aWdIIsm7Q,5051
|
|
24
|
-
kubernator-1.0.
|
|
25
|
-
kubernator-1.0.
|
|
26
|
-
kubernator-1.0.
|
|
27
|
-
kubernator-1.0.
|
|
28
|
-
kubernator-1.0.
|
|
29
|
-
kubernator-1.0.
|
|
30
|
-
kubernator-1.0.
|
|
24
|
+
kubernator-1.0.17.dist-info/METADATA,sha256=mnATlQPIcepM7Xnt81EwQVC10W02martshWA5wxSx20,10521
|
|
25
|
+
kubernator-1.0.17.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
|
26
|
+
kubernator-1.0.17.dist-info/entry_points.txt,sha256=IWDtHzyTleRqDSuVRXEr5GImrI7z_kh21t5DWZ8ldcQ,47
|
|
27
|
+
kubernator-1.0.17.dist-info/namespace_packages.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
28
|
+
kubernator-1.0.17.dist-info/top_level.txt,sha256=_z1CxWeKMI55ckf2vC8HqjbCn_E2Y_P5RdrhE_QWcIs,11
|
|
29
|
+
kubernator-1.0.17.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
30
|
+
kubernator-1.0.17.dist-info/RECORD,,
|
{kubernator-1.0.16.dev20240514041500.dist-info → kubernator-1.0.17.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{kubernator-1.0.16.dev20240514041500.dist-info → kubernator-1.0.17.dist-info}/namespace_packages.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|