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 CHANGED
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- __version__ = "1.0.16.dev20240514041500"
19
+ __version__ = "1.0.17"
20
20
 
21
21
 
22
22
  def _main():
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", "--pre",
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~={package_major}.0"], logger_stdout, logger_stderr).wait()
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
- K8SResource._k8s_client_version = tuple(map(int, pkg_version("kubernetes").split(".")))
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.16.dev20240514041500
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 ~=15.0
35
- Requires-Dist: diff-match-patch >2023.0
36
- Requires-Dist: gevent >=21.1.2
37
- Requires-Dist: jinja2 ~=3.1
38
- Requires-Dist: json-log-formatter ~=0.3
39
- Requires-Dist: jsonpatch ~=1.32
40
- Requires-Dist: jsonpath-ng ~=1.6.1
41
- Requires-Dist: jsonschema <4.0
42
- Requires-Dist: kubernetes ~=29.0
43
- Requires-Dist: openapi-schema-validator ~=0.1
44
- Requires-Dist: openapi-spec-validator ~=0.3
45
- Requires-Dist: platformdirs ~=4.2
46
- Requires-Dist: requests ~=2.25
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=aqeBXLbCmdMcUrhUStjIfCoLAM5qC7yn9conp2FcC58,933
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=sW_ou7CCsi2buLBdQI0x8xYfLq2LVz-2lnAB9sELumA,26701
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=D9BVseCuhMfiveY4NBoG4ZBWFisE9aWWlnbB7tRO0hk,24200
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.16.dev20240514041500.dist-info/METADATA,sha256=kSnOkWn46LQIGaRRLZuF3x1n7Ckc7t3wVAkMP9sT_Dg,10519
25
- kubernator-1.0.16.dev20240514041500.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
26
- kubernator-1.0.16.dev20240514041500.dist-info/entry_points.txt,sha256=IWDtHzyTleRqDSuVRXEr5GImrI7z_kh21t5DWZ8ldcQ,47
27
- kubernator-1.0.16.dev20240514041500.dist-info/namespace_packages.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
28
- kubernator-1.0.16.dev20240514041500.dist-info/top_level.txt,sha256=_z1CxWeKMI55ckf2vC8HqjbCn_E2Y_P5RdrhE_QWcIs,11
29
- kubernator-1.0.16.dev20240514041500.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
30
- kubernator-1.0.16.dev20240514041500.dist-info/RECORD,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: setuptools (74.1.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5