kubernator 1.0.0.dev20211022025240__py3-none-any.whl → 1.0.0.dev20230807194830__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/__main__.py +21 -0
- kubernator/api.py +2 -2
- kubernator/app.py +1 -1
- kubernator/istio.py +8 -4
- {kubernator-1.0.0.dev20211022025240.dist-info → kubernator-1.0.0.dev20230807194830.dist-info}/METADATA +4 -6
- kubernator-1.0.0.dev20230807194830.dist-info/RECORD +20 -0
- {kubernator-1.0.0.dev20211022025240.dist-info → kubernator-1.0.0.dev20230807194830.dist-info}/WHEEL +1 -1
- {kubernator-1.0.0.dev20211022025240.dist-info → kubernator-1.0.0.dev20230807194830.dist-info}/entry_points.txt +0 -1
- kubernator-1.0.0.dev20211022025240.dist-info/RECORD +0 -19
- {kubernator-1.0.0.dev20211022025240.dist-info → kubernator-1.0.0.dev20230807194830.dist-info}/namespace_packages.txt +0 -0
- {kubernator-1.0.0.dev20211022025240.dist-info → kubernator-1.0.0.dev20230807194830.dist-info}/top_level.txt +0 -0
- {kubernator-1.0.0.dev20211022025240.dist-info → kubernator-1.0.0.dev20230807194830.dist-info}/zip-safe +0 -0
kubernator/__main__.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright 2020 Express Systems USA, Inc
|
|
4
|
+
# Copyright 2023 Karellen, Inc.
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
#
|
|
18
|
+
|
|
19
|
+
from kubernator import main
|
|
20
|
+
|
|
21
|
+
main()
|
kubernator/api.py
CHANGED
|
@@ -42,7 +42,7 @@ from jinja2 import (Environment,
|
|
|
42
42
|
ChainableUndefined,
|
|
43
43
|
make_logging_undefined,
|
|
44
44
|
Template as JinjaTemplate,
|
|
45
|
-
|
|
45
|
+
pass_context)
|
|
46
46
|
from jsonschema import validators
|
|
47
47
|
|
|
48
48
|
_CACHE_HEADER_TRANSLATION = {"etag": "if-none-match",
|
|
@@ -327,7 +327,7 @@ class TemplateEngine:
|
|
|
327
327
|
base=CollectingUndefined
|
|
328
328
|
)
|
|
329
329
|
|
|
330
|
-
@
|
|
330
|
+
@pass_context
|
|
331
331
|
def variable_finalizer(ctx, value):
|
|
332
332
|
normalized_value = str(value)
|
|
333
333
|
if self.VARIABLE_START_STRING in normalized_value and self.VARIABLE_END_STRING in normalized_value:
|
kubernator/app.py
CHANGED
|
@@ -282,7 +282,7 @@ class App(KubernatorPlugin):
|
|
|
282
282
|
default_includes=Globs(context.app.default_includes),
|
|
283
283
|
default_excludes=Globs(context.app.default_excludes),
|
|
284
284
|
includes=Globs(context.app.default_includes),
|
|
285
|
-
excludes=Globs(context.app.
|
|
285
|
+
excludes=Globs(context.app.default_excludes),
|
|
286
286
|
)
|
|
287
287
|
|
|
288
288
|
def handle_before_dir(self, cwd: Path):
|
kubernator/istio.py
CHANGED
|
@@ -74,11 +74,13 @@ class IstioPlugin(KubernatorPlugin, K8SResourcePluginMixin):
|
|
|
74
74
|
version_out: str = context.app.run_capturing_out(self.istio_stanza + ["version", "-o", "json"],
|
|
75
75
|
stderr_logger)
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
version_out_js = json.loads(version_out)
|
|
78
|
+
version = version_out_js["clientVersion"]["version"]
|
|
78
79
|
logger.info("Found Istio client version %s", version)
|
|
79
80
|
|
|
80
|
-
self.client_version = version.split(".")
|
|
81
|
-
mesh_versions = set(m.value.split(".") for m in MESH_PILOT_JP.find(
|
|
81
|
+
self.client_version = tuple(version.split("."))
|
|
82
|
+
mesh_versions = set(tuple(m.value.split(".")) for m in MESH_PILOT_JP.find(version_out_js))
|
|
83
|
+
|
|
82
84
|
if mesh_versions:
|
|
83
85
|
self.server_version = max(mesh_versions)
|
|
84
86
|
|
|
@@ -141,7 +143,9 @@ class IstioPlugin(KubernatorPlugin, K8SResourcePluginMixin):
|
|
|
141
143
|
|
|
142
144
|
if context.app.args.command == "apply":
|
|
143
145
|
logger.info("Running Istio precheck")
|
|
144
|
-
context.app.run(self.istio_stanza + ["x", "precheck"
|
|
146
|
+
context.app.run(self.istio_stanza + ["x", "precheck"],
|
|
147
|
+
stdout_logger, stderr_logger).wait()
|
|
148
|
+
context.app.run(self.istio_stanza + ["validate", "-f", operators_file.name],
|
|
145
149
|
stdout_logger, stderr_logger).wait()
|
|
146
150
|
|
|
147
151
|
self._operator_init(operators_file, True)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: kubernator
|
|
3
|
-
Version: 1.0.0.
|
|
3
|
+
Version: 1.0.0.dev20230807194830
|
|
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.
|
|
@@ -12,10 +12,10 @@ Project-URL: Bug Tracker, https://github.com/karellen/kubernator/issues
|
|
|
12
12
|
Project-URL: Documentation, https://github.com/karellen/kubernator/
|
|
13
13
|
Project-URL: Source Code, https://github.com/karellen/kubernator/
|
|
14
14
|
Keywords: kubernetes k8s kube top provisioning kOps terraform tf AWS
|
|
15
|
-
Platform: UNKNOWN
|
|
16
15
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.9
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
19
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
20
20
|
Classifier: Operating System :: POSIX
|
|
21
21
|
Classifier: Operating System :: POSIX :: Linux
|
|
@@ -33,7 +33,7 @@ Description-Content-Type: text/markdown
|
|
|
33
33
|
Requires-Dist: appdirs (~=1.4)
|
|
34
34
|
Requires-Dist: coloredlogs (~=15.0)
|
|
35
35
|
Requires-Dist: gevent (>=21.1.2)
|
|
36
|
-
Requires-Dist: jinja2 (~=
|
|
36
|
+
Requires-Dist: jinja2 (~=3.1)
|
|
37
37
|
Requires-Dist: json-log-formatter (~=0.3)
|
|
38
38
|
Requires-Dist: jsonpatch (~=1.32)
|
|
39
39
|
Requires-Dist: jsonpath-ng (~=1.5)
|
|
@@ -50,7 +50,7 @@ processing their content via a collection of plugins, generating Kubernetes reso
|
|
|
50
50
|
transforming them and then applying against the Kubernetes cluster.
|
|
51
51
|
|
|
52
52
|
[](https://gitter.im/karellen/Lobby)
|
|
53
|
-
[](https://github.com/karellen/kubernator/actions/workflows/kubernator.yml)
|
|
54
54
|
[](https://coveralls.io/r/karellen/kubernator?branch=master)
|
|
55
55
|
|
|
56
56
|
[](https://pypi.org/project/kubernator/)
|
|
@@ -227,5 +227,3 @@ def remove_replicas(resources, r: "K8SResource"):
|
|
|
227
227
|
|
|
228
228
|
ktor.k8s.add_transformer(remove_replicas)
|
|
229
229
|
```
|
|
230
|
-
|
|
231
|
-
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
kubernator/LICENSE,sha256=wKKdOCMTCPQRV5gDkVLAsXX8qSnRJ5owk7yWPO1KZNo,11387
|
|
2
|
+
kubernator/__init__.py,sha256=UafMh9ExywKbqCaPwrhnvkmtsH1E0QqkJltHHW-dhZg,886
|
|
3
|
+
kubernator/__main__.py,sha256=f0S60wgpLu--1UlOhzfWail-xt8zyIuODodX98_yPN0,707
|
|
4
|
+
kubernator/api.py,sha256=wT39HqwS_AE8dm_fLQs-OvcFAQiY9ZTz4jczYpTi8G4,15516
|
|
5
|
+
kubernator/app.py,sha256=iVR6re_LBYFo6PIip7_w5OmQmsAc0SYmn6fVCfPdy04,15518
|
|
6
|
+
kubernator/helm.py,sha256=vWiZKOuqMkA5EuZHAvsx7GjI0c1B3S7GkbdYpCOpYm0,8757
|
|
7
|
+
kubernator/istio.py,sha256=q81QgbeZRTWpkn-SABuRKB6X-sV9H-eoyrdAipyZY2A,7815
|
|
8
|
+
kubernator/k8s.py,sha256=yUsiq0GRprxUKJ_wrDlA9rD7Hb6i91jMyIDjtq3OMSo,18588
|
|
9
|
+
kubernator/k8s_api.py,sha256=sNuTlbfqDjXF7xgUePZBfJ_3Gbuk5V1AbrlCunCgTYc,25906
|
|
10
|
+
kubernator/kops.py,sha256=QqcH3DzJgFlNfaaHQb4T_UCpxcphH0F9cH4QDXf_Ngc,9430
|
|
11
|
+
kubernator/proc.py,sha256=MNJwcpSwY_j-WfxEtI3CIhC59rID47GQwUMOFiIQEMk,5131
|
|
12
|
+
kubernator/template.py,sha256=W7YB9CbolWin0cXuIU_Z0y7c6tO4Lu7DbcoycYHTw38,8045
|
|
13
|
+
kubernator/tf.py,sha256=nmX193EH0h3RFPa2j6u5QVjM2L111yOqOithxfgUEuU,2449
|
|
14
|
+
kubernator-1.0.0.dev20230807194830.dist-info/METADATA,sha256=zuJq9DMFr2lD_xlxcCepKx5wGDd5Ik18X_XB1KhE20g,9961
|
|
15
|
+
kubernator-1.0.0.dev20230807194830.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
|
16
|
+
kubernator-1.0.0.dev20230807194830.dist-info/entry_points.txt,sha256=IWDtHzyTleRqDSuVRXEr5GImrI7z_kh21t5DWZ8ldcQ,47
|
|
17
|
+
kubernator-1.0.0.dev20230807194830.dist-info/namespace_packages.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
18
|
+
kubernator-1.0.0.dev20230807194830.dist-info/top_level.txt,sha256=_z1CxWeKMI55ckf2vC8HqjbCn_E2Y_P5RdrhE_QWcIs,11
|
|
19
|
+
kubernator-1.0.0.dev20230807194830.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
20
|
+
kubernator-1.0.0.dev20230807194830.dist-info/RECORD,,
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
kubernator/LICENSE,sha256=wKKdOCMTCPQRV5gDkVLAsXX8qSnRJ5owk7yWPO1KZNo,11387
|
|
2
|
-
kubernator/__init__.py,sha256=UafMh9ExywKbqCaPwrhnvkmtsH1E0QqkJltHHW-dhZg,886
|
|
3
|
-
kubernator/api.py,sha256=hTBo8cdBK-x7-1KGfMq9KNNm2Oebru1e9ux3HM9ydTQ,15522
|
|
4
|
-
kubernator/app.py,sha256=hOJQEGhsvTM_PrPAzMU_2w-XFDlNn32vPO4EpfUg7lo,15518
|
|
5
|
-
kubernator/helm.py,sha256=vWiZKOuqMkA5EuZHAvsx7GjI0c1B3S7GkbdYpCOpYm0,8757
|
|
6
|
-
kubernator/istio.py,sha256=YuxLibXu0wAypUEvASuQ6uRnXvzAJuDId1laLfAq5vQ,7622
|
|
7
|
-
kubernator/k8s.py,sha256=yUsiq0GRprxUKJ_wrDlA9rD7Hb6i91jMyIDjtq3OMSo,18588
|
|
8
|
-
kubernator/k8s_api.py,sha256=sNuTlbfqDjXF7xgUePZBfJ_3Gbuk5V1AbrlCunCgTYc,25906
|
|
9
|
-
kubernator/kops.py,sha256=QqcH3DzJgFlNfaaHQb4T_UCpxcphH0F9cH4QDXf_Ngc,9430
|
|
10
|
-
kubernator/proc.py,sha256=MNJwcpSwY_j-WfxEtI3CIhC59rID47GQwUMOFiIQEMk,5131
|
|
11
|
-
kubernator/template.py,sha256=W7YB9CbolWin0cXuIU_Z0y7c6tO4Lu7DbcoycYHTw38,8045
|
|
12
|
-
kubernator/tf.py,sha256=nmX193EH0h3RFPa2j6u5QVjM2L111yOqOithxfgUEuU,2449
|
|
13
|
-
kubernator-1.0.0.dev20211022025240.dist-info/METADATA,sha256=2vCINHYnOT5d4O29md-xVPai6RaWvvJdfj5An3-gj_Y,9912
|
|
14
|
-
kubernator-1.0.0.dev20211022025240.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
|
|
15
|
-
kubernator-1.0.0.dev20211022025240.dist-info/entry_points.txt,sha256=0Hy6500stC827jQNjnMyH1PoglDJBnaIzRUBbOw8Vvg,48
|
|
16
|
-
kubernator-1.0.0.dev20211022025240.dist-info/namespace_packages.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
17
|
-
kubernator-1.0.0.dev20211022025240.dist-info/top_level.txt,sha256=_z1CxWeKMI55ckf2vC8HqjbCn_E2Y_P5RdrhE_QWcIs,11
|
|
18
|
-
kubernator-1.0.0.dev20211022025240.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
19
|
-
kubernator-1.0.0.dev20211022025240.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|