kubernator 1.0.0.dev20230807191813__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/app.py +1 -1
- kubernator/istio.py +8 -4
- {kubernator-1.0.0.dev20230807191813.dist-info → kubernator-1.0.0.dev20230807194830.dist-info}/METADATA +2 -2
- {kubernator-1.0.0.dev20230807191813.dist-info → kubernator-1.0.0.dev20230807194830.dist-info}/RECORD +10 -9
- {kubernator-1.0.0.dev20230807191813.dist-info → kubernator-1.0.0.dev20230807194830.dist-info}/WHEEL +0 -0
- {kubernator-1.0.0.dev20230807191813.dist-info → kubernator-1.0.0.dev20230807194830.dist-info}/entry_points.txt +0 -0
- {kubernator-1.0.0.dev20230807191813.dist-info → kubernator-1.0.0.dev20230807194830.dist-info}/namespace_packages.txt +0 -0
- {kubernator-1.0.0.dev20230807191813.dist-info → kubernator-1.0.0.dev20230807194830.dist-info}/top_level.txt +0 -0
- {kubernator-1.0.0.dev20230807191813.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/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.
|
|
@@ -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/)
|
{kubernator-1.0.0.dev20230807191813.dist-info → kubernator-1.0.0.dev20230807194830.dist-info}/RECORD
RENAMED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
kubernator/LICENSE,sha256=wKKdOCMTCPQRV5gDkVLAsXX8qSnRJ5owk7yWPO1KZNo,11387
|
|
2
2
|
kubernator/__init__.py,sha256=UafMh9ExywKbqCaPwrhnvkmtsH1E0QqkJltHHW-dhZg,886
|
|
3
|
+
kubernator/__main__.py,sha256=f0S60wgpLu--1UlOhzfWail-xt8zyIuODodX98_yPN0,707
|
|
3
4
|
kubernator/api.py,sha256=wT39HqwS_AE8dm_fLQs-OvcFAQiY9ZTz4jczYpTi8G4,15516
|
|
4
|
-
kubernator/app.py,sha256=
|
|
5
|
+
kubernator/app.py,sha256=iVR6re_LBYFo6PIip7_w5OmQmsAc0SYmn6fVCfPdy04,15518
|
|
5
6
|
kubernator/helm.py,sha256=vWiZKOuqMkA5EuZHAvsx7GjI0c1B3S7GkbdYpCOpYm0,8757
|
|
6
|
-
kubernator/istio.py,sha256=
|
|
7
|
+
kubernator/istio.py,sha256=q81QgbeZRTWpkn-SABuRKB6X-sV9H-eoyrdAipyZY2A,7815
|
|
7
8
|
kubernator/k8s.py,sha256=yUsiq0GRprxUKJ_wrDlA9rD7Hb6i91jMyIDjtq3OMSo,18588
|
|
8
9
|
kubernator/k8s_api.py,sha256=sNuTlbfqDjXF7xgUePZBfJ_3Gbuk5V1AbrlCunCgTYc,25906
|
|
9
10
|
kubernator/kops.py,sha256=QqcH3DzJgFlNfaaHQb4T_UCpxcphH0F9cH4QDXf_Ngc,9430
|
|
10
11
|
kubernator/proc.py,sha256=MNJwcpSwY_j-WfxEtI3CIhC59rID47GQwUMOFiIQEMk,5131
|
|
11
12
|
kubernator/template.py,sha256=W7YB9CbolWin0cXuIU_Z0y7c6tO4Lu7DbcoycYHTw38,8045
|
|
12
13
|
kubernator/tf.py,sha256=nmX193EH0h3RFPa2j6u5QVjM2L111yOqOithxfgUEuU,2449
|
|
13
|
-
kubernator-1.0.0.
|
|
14
|
-
kubernator-1.0.0.
|
|
15
|
-
kubernator-1.0.0.
|
|
16
|
-
kubernator-1.0.0.
|
|
17
|
-
kubernator-1.0.0.
|
|
18
|
-
kubernator-1.0.0.
|
|
19
|
-
kubernator-1.0.0.
|
|
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,,
|
{kubernator-1.0.0.dev20230807191813.dist-info → kubernator-1.0.0.dev20230807194830.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|