kubernator 1.0.23.dev20251011181340__tar.gz → 1.0.23.dev20251016050525__tar.gz
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-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/PKG-INFO +1 -1
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/__init__.py +1 -1
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/plugins/istio.py +23 -9
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/plugins/k8s.py +88 -53
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator.egg-info/PKG-INFO +1 -1
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/setup.py +1 -1
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/MANIFEST.in +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/LICENSE +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/__main__.py +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/_json_path.py +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/_k8s_client_patches.py +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/api.py +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/app.py +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/merge.py +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/plugins/__init__.py +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/plugins/awscli.py +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/plugins/eks.py +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/plugins/gke.py +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/plugins/helm.py +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/plugins/k8s_api.py +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/plugins/kops.py +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/plugins/kubeconfig.py +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/plugins/kubectl.py +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/plugins/minikube.py +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/plugins/template.py +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/plugins/terraform.py +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/plugins/terragrunt.py +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/proc.py +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator.egg-info/SOURCES.txt +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator.egg-info/dependency_links.txt +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator.egg-info/entry_points.txt +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator.egg-info/namespace_packages.txt +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator.egg-info/requires.txt +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator.egg-info/top_level.txt +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator.egg-info/zip-safe +0 -0
- {kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kubernator
|
|
3
|
-
Version: 1.0.23.
|
|
3
|
+
Version: 1.0.23.dev20251016050525
|
|
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.
|
|
@@ -25,6 +25,7 @@ from pathlib import Path
|
|
|
25
25
|
from shutil import which
|
|
26
26
|
|
|
27
27
|
import yaml
|
|
28
|
+
|
|
28
29
|
from kubernator.api import (KubernatorPlugin, scan_dir,
|
|
29
30
|
TemplateEngine,
|
|
30
31
|
load_remote_file,
|
|
@@ -34,6 +35,7 @@ from kubernator.api import (KubernatorPlugin, scan_dir,
|
|
|
34
35
|
get_golang_os,
|
|
35
36
|
get_golang_machine,
|
|
36
37
|
prepend_os_path, jp, load_file)
|
|
38
|
+
from kubernator.plugins.k8s import api_exc_normalize_body, api_exc_format_body
|
|
37
39
|
from kubernator.plugins.k8s_api import K8SResourcePluginMixin
|
|
38
40
|
|
|
39
41
|
logger = logging.getLogger("kubernator.istio")
|
|
@@ -277,11 +279,17 @@ class IstioPlugin(KubernatorPlugin, K8SResourcePluginMixin):
|
|
|
277
279
|
try:
|
|
278
280
|
res.delete(dry_run=dry_run)
|
|
279
281
|
except ApiException as e:
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
skip =
|
|
283
|
-
|
|
282
|
+
api_exc_normalize_body(e)
|
|
283
|
+
try:
|
|
284
|
+
skip = False
|
|
285
|
+
if e.status == 404 and missing_ok:
|
|
286
|
+
skip = True
|
|
287
|
+
if not skip:
|
|
288
|
+
raise
|
|
289
|
+
except ApiException as e:
|
|
290
|
+
api_exc_format_body(e)
|
|
284
291
|
raise
|
|
292
|
+
|
|
285
293
|
return res
|
|
286
294
|
|
|
287
295
|
def _create_resource_internal(self, manifest, dry_run=True, exists_ok=False):
|
|
@@ -297,12 +305,18 @@ class IstioPlugin(KubernatorPlugin, K8SResourcePluginMixin):
|
|
|
297
305
|
res.create(dry_run=dry_run)
|
|
298
306
|
except ApiException as e:
|
|
299
307
|
skip = False
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
if status
|
|
303
|
-
|
|
304
|
-
|
|
308
|
+
api_exc_normalize_body(e)
|
|
309
|
+
try:
|
|
310
|
+
if e.status == 409:
|
|
311
|
+
status = e.body
|
|
312
|
+
if status["reason"] == "AlreadyExists" and exists_ok:
|
|
313
|
+
skip = True
|
|
314
|
+
if not skip:
|
|
315
|
+
raise
|
|
316
|
+
except ApiException as e:
|
|
317
|
+
api_exc_format_body(e)
|
|
305
318
|
raise
|
|
319
|
+
|
|
306
320
|
return res
|
|
307
321
|
|
|
308
322
|
def _install(self, operators_file, dry_run):
|
|
@@ -30,6 +30,7 @@ from typing import Iterable, Callable, Sequence
|
|
|
30
30
|
|
|
31
31
|
import jsonpatch
|
|
32
32
|
import yaml
|
|
33
|
+
from kubernetes.client import ApiException
|
|
33
34
|
|
|
34
35
|
from kubernator.api import (KubernatorPlugin,
|
|
35
36
|
Globs,
|
|
@@ -83,6 +84,21 @@ def normalize_pkg_version(v: str):
|
|
|
83
84
|
return tuple(map(int, v_split))
|
|
84
85
|
|
|
85
86
|
|
|
87
|
+
def api_exc_normalize_body(e: "ApiException"):
|
|
88
|
+
if e.headers and "content-type" in e.headers:
|
|
89
|
+
content_type = e.headers["content-type"]
|
|
90
|
+
if content_type == "application/json" or content_type.endswith("+json"):
|
|
91
|
+
e.body = json.loads(e.body)
|
|
92
|
+
elif (content_type in ("application/yaml", "application/x-yaml", "text/yaml",
|
|
93
|
+
"text/x-yaml") or content_type.endswith("+yaml")):
|
|
94
|
+
e.body = yaml.safe_load(e.body)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
def api_exc_format_body(e: ApiException):
|
|
98
|
+
if not isinstance(e.body, (str, bytes)):
|
|
99
|
+
e.body = json.dumps(e.body, indent=4)
|
|
100
|
+
|
|
101
|
+
|
|
86
102
|
class KubernetesPlugin(KubernatorPlugin, K8SResourcePluginMixin):
|
|
87
103
|
logger = logger
|
|
88
104
|
|
|
@@ -122,6 +138,7 @@ class KubernetesPlugin(KubernatorPlugin, K8SResourcePluginMixin):
|
|
|
122
138
|
("apps", "Deployment"): K8SPropagationPolicy.ORPHAN,
|
|
123
139
|
("storage.k8s.io", "StorageClass"): K8SPropagationPolicy.ORPHAN,
|
|
124
140
|
(None, "Pod"): K8SPropagationPolicy.BACKGROUND,
|
|
141
|
+
("batch", "Job"): K8SPropagationPolicy.ORPHAN,
|
|
125
142
|
},
|
|
126
143
|
default_includes=Globs(["*.yaml", "*.yml"], True),
|
|
127
144
|
default_excludes=Globs([".*"], True),
|
|
@@ -412,8 +429,8 @@ class KubernetesPlugin(KubernatorPlugin, K8SResourcePluginMixin):
|
|
|
412
429
|
|
|
413
430
|
def handle_400_strict_validation_error(e: ApiException):
|
|
414
431
|
if e.status == 400:
|
|
415
|
-
|
|
416
|
-
|
|
432
|
+
# Assumes the body has been parsed
|
|
433
|
+
status = e.body
|
|
417
434
|
if status["status"] == "Failure":
|
|
418
435
|
if FIELD_VALIDATION_STRICT_MARKER in status["message"]:
|
|
419
436
|
message = status["message"]
|
|
@@ -435,19 +452,24 @@ class KubernetesPlugin(KubernatorPlugin, K8SResourcePluginMixin):
|
|
|
435
452
|
try:
|
|
436
453
|
create_func()
|
|
437
454
|
return
|
|
438
|
-
except ApiException as
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
if status
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
455
|
+
except ApiException as __e:
|
|
456
|
+
api_exc_normalize_body(__e)
|
|
457
|
+
try:
|
|
458
|
+
if exists_ok or wait_for_delete:
|
|
459
|
+
if __e.status == 409:
|
|
460
|
+
status = __e.body
|
|
461
|
+
if status["reason"] == "AlreadyExists":
|
|
462
|
+
if wait_for_delete:
|
|
463
|
+
sleep(self.context.k8s.conflict_retry_delay)
|
|
464
|
+
logger.info("Retry creating resource %s%s%s", resource, status_msg,
|
|
465
|
+
" (ignoring existing)" if exists_ok else "")
|
|
466
|
+
continue
|
|
467
|
+
else:
|
|
468
|
+
return
|
|
469
|
+
raise
|
|
470
|
+
except ApiException as ___e:
|
|
471
|
+
api_exc_format_body(___e)
|
|
472
|
+
raise
|
|
451
473
|
|
|
452
474
|
merge_instrs, normalized_manifest = extract_merge_instructions(resource.manifest, resource)
|
|
453
475
|
if merge_instrs:
|
|
@@ -461,15 +483,20 @@ class KubernetesPlugin(KubernatorPlugin, K8SResourcePluginMixin):
|
|
|
461
483
|
remote_resource = resource.get()
|
|
462
484
|
logger.trace("Current resource %s: %s", resource, remote_resource)
|
|
463
485
|
except ApiException as e:
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
486
|
+
api_exc_normalize_body(e)
|
|
487
|
+
try:
|
|
488
|
+
if e.status == 404:
|
|
489
|
+
try:
|
|
490
|
+
create()
|
|
491
|
+
return 1, 0, 0
|
|
492
|
+
except ApiException as e:
|
|
493
|
+
api_exc_normalize_body(e)
|
|
494
|
+
if not handle_400_strict_validation_error(e):
|
|
495
|
+
raise
|
|
496
|
+
else:
|
|
497
|
+
raise
|
|
498
|
+
except ApiException as _e:
|
|
499
|
+
api_exc_format_body(_e)
|
|
473
500
|
raise
|
|
474
501
|
else:
|
|
475
502
|
logger.trace("Attempting to retrieve a normalized patch for resource %s: %s", resource, normalized_manifest)
|
|
@@ -479,36 +506,44 @@ class KubernetesPlugin(KubernatorPlugin, K8SResourcePluginMixin):
|
|
|
479
506
|
dry_run=True,
|
|
480
507
|
force=True)
|
|
481
508
|
except ApiException as e:
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
509
|
+
try:
|
|
510
|
+
api_exc_normalize_body(e)
|
|
511
|
+
|
|
512
|
+
if e.status == 422:
|
|
513
|
+
status = e.body
|
|
514
|
+
# Assumes the body has been unmarshalled
|
|
515
|
+
details = status["details"]
|
|
516
|
+
immutable_key = details.get("group"), details["kind"]
|
|
517
|
+
|
|
518
|
+
try:
|
|
519
|
+
propagation_policy = self.context.k8s.immutable_changes[immutable_key]
|
|
520
|
+
except KeyError:
|
|
521
|
+
raise e from None
|
|
522
|
+
else:
|
|
523
|
+
for cause in details["causes"]:
|
|
524
|
+
if (
|
|
525
|
+
cause["reason"] == "FieldValueInvalid" and
|
|
526
|
+
"field is immutable" in cause["message"]
|
|
527
|
+
or
|
|
528
|
+
cause["reason"] == "FieldValueForbidden" and
|
|
529
|
+
("Forbidden: updates to" in cause["message"]
|
|
530
|
+
or
|
|
531
|
+
"Forbidden: pod updates" in cause["message"])
|
|
532
|
+
):
|
|
533
|
+
logger.info("Deleting resource %s (cascade %s)%s", resource,
|
|
534
|
+
propagation_policy.policy,
|
|
535
|
+
status_msg)
|
|
536
|
+
delete_func(propagation_policy=propagation_policy)
|
|
537
|
+
create(exists_ok=dry_run, wait_for_delete=not dry_run)
|
|
538
|
+
return 1, 0, 1
|
|
539
|
+
raise
|
|
491
540
|
else:
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
("Forbidden: updates to" in cause["message"]
|
|
499
|
-
or
|
|
500
|
-
"Forbidden: pod updates" in cause["message"])
|
|
501
|
-
):
|
|
502
|
-
logger.info("Deleting resource %s (cascade %s)%s", resource,
|
|
503
|
-
propagation_policy.policy,
|
|
504
|
-
status_msg)
|
|
505
|
-
delete_func(propagation_policy=propagation_policy)
|
|
506
|
-
create(exists_ok=dry_run, wait_for_delete=not dry_run)
|
|
507
|
-
return 1, 0, 1
|
|
508
|
-
raise
|
|
509
|
-
else:
|
|
510
|
-
if not handle_400_strict_validation_error(e):
|
|
511
|
-
raise
|
|
541
|
+
if not handle_400_strict_validation_error(e):
|
|
542
|
+
raise
|
|
543
|
+
except ApiException as _e:
|
|
544
|
+
api_exc_format_body(_e)
|
|
545
|
+
raise
|
|
546
|
+
|
|
512
547
|
else:
|
|
513
548
|
logger.trace("Merged resource %s: %s", resource, merged_resource)
|
|
514
549
|
if merge_instrs:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kubernator
|
|
3
|
-
Version: 1.0.23.
|
|
3
|
+
Version: 1.0.23.dev20251016050525
|
|
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.
|
|
@@ -21,7 +21,7 @@ class install(_install):
|
|
|
21
21
|
if __name__ == '__main__':
|
|
22
22
|
setup(
|
|
23
23
|
name = 'kubernator',
|
|
24
|
-
version = '1.0.23.
|
|
24
|
+
version = '1.0.23.dev20251016050525',
|
|
25
25
|
description = 'Kubernator is the a pluggable framework for K8S provisioning',
|
|
26
26
|
long_description = '# Kubernator\n\nKubernator™ (Ktor™) is an integrated solution for the Kubernetes state management. It operates on directories,\nprocessing their content via a collection of plugins, generating Kubernetes resources in the process, validating them,\ntransforming them and then applying against the Kubernetes cluster.\n\n[](https://gitter.im/karellen/Lobby)\n[](https://github.com/karellen/kubernator/actions/workflows/kubernator.yml)\n[](https://coveralls.io/r/karellen/kubernator?branch=master)\n\n[](https://pypi.org/project/kubernator/)\n[](https://pypi.org/project/kubernator/)\n[](https://pypi.org/project/kubernator/)\n[](https://pypi.org/project/kubernator/)\n[](https://pypi.org/project/kubernator/)\n\n## Notices\n\n### Beta Software\n\nWhile fully functional in the current state and used in production, this software is in **BETA**. A lot of things\nare expected to change rapidly, including main APIs, initialization procedures and some core features. Documentation at\nthis stage is basically non-existent.\n\n### License\n\nThe product is licensed under the Apache License, Version 2.0. Please see LICENSE for further details.\n\n### Warranties and Liability\n\nKubernator and its plugins are provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either\nexpress or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT,\nMERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of\nusing or redistributing Kubernator and assume any risks associated with doing so.\n\n### Trademarks\n\n"Kubernator" and "Ktor" are trademarks or registered trademarks of Express Systems USA, Inc and Karellen, Inc. All other\ntrademarks are property of their respective owners.\n\n## Problem Statement\n\n## Solution\n\n## Using Kubernator with Docker\n\nA simple example is as follows:\n```\n$ docker run --mount type=bind,source="$(pwd)",target=/root,readonly -t ghcr.io/karellen/kubernator:latest\n```\n\n## Using Kubernator on MacOS\n\n```\n$ brew install python3.11\n$ pip3.11 install \'kubernator~=1.0.9\'\n$ kubernator --version\n```\n\nPlease note, that some plugins (e.g. `awscli`, `eks`) may require additional volume mounts or environmental\nvariables to be passed for credentials and other external configuration.\n\n## Mode of Operation\n\nKubernator is a command line utility. Upon startup and processing of the command line arguments and initializing\nlogging, Kubernator initializes plugins. Current plugins include:\n\n0. Kubernator App\n1. Terraform\n2. kOps\n3. Kubernetes\n4. Helm\n5. Template\n\nThe order of initialization matters as it\'s the order the plugin handlers are executed!\n\nThe entire application operates in the following stages by invoking each plugin\'s stage handler in sequence:\n\n1. Plugin Init Stage\n2. Pre-start script (if specified)\n3. Plugin Start Stage\n4. For each directory in the pipeline:\n 1. Plugin Before Directory Stage\n 2. If `.kubernator.py` is present in the directory:\n 1. Plugin Before Script Stage\n 2. `.kubernator.py` script\n 3. Plugin After Script Stage\n 3. Plugin After Directory Stage\n5. Plugin End Stage\n\nEach plugin individually plays a specific role and performs a specific function which will be described in a later\nsection.\n\n## State/Context\n\nThere is a global state that is carried through as the application is running. It is a hierarchy of objects (`context`)\nthat follows the parent-child relationship as the application traverses the directory structure. For example, given the\ndirectory structure `/a/b`, `/a/c`, and `/a/c/d` any value of the context set or modified in context scoped to\ndirectory `/a` is visible in directories `/a/b`, `/a/c` and `/a/c/d`, while the same modified or set in `/a/b` is only\nvisible there, while one in `/a/c` is visible in `/a/c` and in `/a/c/d` but not `/a` or `/a/b`.\n\nAdditionally, there is a `context.globals` which is the top-most context that is available in all stages that are not\nassociated with the directory structure.\n\nNote, that in cases where the directory structure traversal moves to remote directories (that are actualized by local\ntemporary directories), such remote directory structure enters the context hierarchy as a child of the directory in\nwhich remote was registered.\n\nAlso note, that context carries not just data by references to essential functions.\n\nIn pre-start and `.kubernator.py` scripts the context is fully available as a global variable `ktor`.\n\n### Plugins\n\n#### Kubernator App Plugin\n\nThe role of the Kubernator App Plugin is to traverse the directory structure, expose essential functions through context\nand to run Kubernator scripts.\n\nIn the *After Directory Stage* Kubernator app scans the directories immediately available in the current, sorts them in\nthe alphabetic order, excludes those matching any of the patterns in `context.app.excludes` and then queues up the\nremaining directories in the order the match the patterns in `context.app.includes`.\n\nThus, for a directory content `/a/foo`, `/a/bal`, `/a/bar`, `/a/baz`, excludes `f*`, and includes `baz` and `*`, the\nresulting queue of directories to traverse will be `/a/baz`, `/a/bal`, `/a/bar`.\n\nNotice, that user can further interfere with processing order of the directory queue by asking Kubernator to walk\narbitrary paths, both local and remote.\n\n##### Context\n\n* `ktor.app.args`\n > Namespace containing command line argument values\n* `ktor.app.walk_local(*paths: Union[Path, str, bytes])`\n > Immediately schedules the paths to be traversed after the current directory by adding them to the queue\n > Relative path is relative to the current directory\n* `ktor.app.walk_remote(repo, *path_prefixes: Union[Path, str, bytes])`\n > Immediately schedules the path prefixes under the remote repo URL to be traversed after the current directory by\n > adding them to the queue. Only Git URLs are currently supported.\n > All absolute path prefixes are relativized based on the repository.\n* `ktor.app.repository_credentials_provider(func: Callable)`\n > Sets a repository credentials provider function `func` that sets/overwrites credentials for URLs being specified by\n > `walk_remote`. The callable `func` accepts a single argument containing a parsed URL in a form of tuple. The `func`\n > is expected to return a tuple of three elements representing URL schema, username and password. If the value should\n > not be changed it should be None. To convert from `git://repo.com/hello` to HTTPS authentication one should write\n > a function returning `("https", "username", "password")`. The best utility is achieved by logic that allows running\n > the plan both in CI and local environments using different authentication mechanics in different environments.\n\n#### Terraform\n\nThis is exclusively designed to pull the configuration options out of Terraform and to allow scripts and plugins to\nutilize that data.\n\n##### Context\n\n* `ktor.tf`\n > A dictionary containing the values from Terraform output\n\n#### Kops\n\n##### Context\n\n#### Kubernetes\n\n##### Context\n\n#### Helm\n\n##### Context\n\n#### Templates\n\n##### Context\n\n## Examples\n\n### Adding Remote Directory\n\n```python\nktor.app.repository_credentials_provider(lambda r: ("ssh", "git", None))\nktor.app.walk_remote("git://repo.example.com/org/project?ref=dev", "/project")\n```\n\n### Adding Local Directory\n\n```python\nktor.app.walk_local("/home/username/local-dir")\n```\n\n### Using Transformers\n\n```python\ndef remove_replicas(resources, r: "K8SResource"):\n if (r.group == "apps" and r.kind in ("StatefulSet", "Deployment")\n and "replicas" in r.manifest["spec"]):\n logger.warning("Resource %s in %s contains `replica` specification that will be removed. Use HPA!!!",\n r, r.source)\n del r.manifest["spec"]["replicas"]\n\n\nktor.k8s.add_transformer(remove_replicas)\n```\n',
|
|
27
27
|
long_description_content_type = 'text/markdown',
|
|
File without changes
|
{kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/LICENSE
RENAMED
|
File without changes
|
{kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/__main__.py
RENAMED
|
File without changes
|
{kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/_json_path.py
RENAMED
|
File without changes
|
|
File without changes
|
{kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/api.py
RENAMED
|
File without changes
|
{kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/app.py
RENAMED
|
File without changes
|
{kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/merge.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kubernator-1.0.23.dev20251011181340 → kubernator-1.0.23.dev20251016050525}/kubernator/proc.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|