kubernator 1.0.19__tar.gz → 1.0.20__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.
Files changed (35) hide show
  1. {kubernator-1.0.19 → kubernator-1.0.20}/PKG-INFO +4 -4
  2. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/__init__.py +1 -1
  3. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/api.py +24 -7
  4. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/plugins/helm.py +26 -9
  5. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/plugins/k8s_api.py +9 -14
  6. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/plugins/template.py +2 -2
  7. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator.egg-info/PKG-INFO +4 -4
  8. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator.egg-info/requires.txt +3 -3
  9. {kubernator-1.0.19 → kubernator-1.0.20}/setup.py +4 -4
  10. {kubernator-1.0.19 → kubernator-1.0.20}/MANIFEST.in +0 -0
  11. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/LICENSE +0 -0
  12. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/__main__.py +0 -0
  13. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/_json_path.py +0 -0
  14. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/_k8s_client_patches.py +0 -0
  15. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/app.py +0 -0
  16. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/merge.py +0 -0
  17. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/plugins/__init__.py +0 -0
  18. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/plugins/awscli.py +0 -0
  19. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/plugins/eks.py +0 -0
  20. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/plugins/istio.py +0 -0
  21. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/plugins/k8s.py +0 -0
  22. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/plugins/kops.py +0 -0
  23. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/plugins/kubeconfig.py +0 -0
  24. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/plugins/kubectl.py +0 -0
  25. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/plugins/minikube.py +0 -0
  26. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/plugins/terraform.py +0 -0
  27. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/plugins/terragrunt.py +0 -0
  28. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator/proc.py +0 -0
  29. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator.egg-info/SOURCES.txt +0 -0
  30. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator.egg-info/dependency_links.txt +0 -0
  31. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator.egg-info/entry_points.txt +0 -0
  32. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator.egg-info/namespace_packages.txt +0 -0
  33. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator.egg-info/top_level.txt +0 -0
  34. {kubernator-1.0.19 → kubernator-1.0.20}/kubernator.egg-info/zip-safe +0 -0
  35. {kubernator-1.0.19 → kubernator-1.0.20}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kubernator
3
- Version: 1.0.19
3
+ Version: 1.0.20
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.
@@ -38,9 +38,9 @@ Requires-Dist: durationpy>=0.7
38
38
  Requires-Dist: gevent>=21.1.2
39
39
  Requires-Dist: jinja2~=3.1
40
40
  Requires-Dist: json-log-formatter~=0.3
41
- Requires-Dist: jsonpatch~=1.32
42
- Requires-Dist: jsonpath-ng~=1.6.1
43
- Requires-Dist: jsonschema<4.0
41
+ Requires-Dist: jsonpatch~=1.33
42
+ Requires-Dist: jsonpath-ng~=1.7.0
43
+ Requires-Dist: jsonschema~=4.23
44
44
  Requires-Dist: kubernetes~=32.0
45
45
  Requires-Dist: openapi-schema-validator~=0.1
46
46
  Requires-Dist: openapi-spec-validator~=0.3
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- __version__ = "1.0.19"
19
+ __version__ = "1.0.20"
20
20
 
21
21
 
22
22
  def _main():
@@ -39,6 +39,7 @@ from typing import Optional, Union, MutableSequence
39
39
  import requests
40
40
  import yaml
41
41
  from diff_match_patch import diff_match_patch
42
+ from gevent import sleep
42
43
  from jinja2 import (Environment,
43
44
  ChainableUndefined,
44
45
  make_logging_undefined,
@@ -108,13 +109,29 @@ def _load_file(logger, path: Path, file_type: FileType, source=None) -> Iterable
108
109
 
109
110
 
110
111
  def _download_remote_file(url, file_name, cache: dict):
111
- with requests.get(url, headers=cache, stream=True) as r:
112
- r.raise_for_status()
113
- if r.status_code != 304:
114
- with open(file_name, "wb") as out:
115
- for chunk in r.iter_content(chunk_size=65535):
116
- out.write(chunk)
117
- return dict(r.headers)
112
+ retry_delay = 0
113
+ while True:
114
+ if retry_delay:
115
+ sleep(retry_delay)
116
+
117
+ with requests.get(url, headers=cache, stream=True) as r:
118
+ if r.status_code == 429:
119
+ if not retry_delay:
120
+ retry_delay = 0.2
121
+ else:
122
+ retry_delay *= 2.0
123
+ if retry_delay > 2.5:
124
+ retry_delay = 2.5
125
+ continue
126
+
127
+ r.raise_for_status()
128
+ if r.status_code != 304:
129
+ with open(file_name, "wb") as out:
130
+ for chunk in r.iter_content(chunk_size=65535):
131
+ out.write(chunk)
132
+ return dict(r.headers)
133
+ else:
134
+ return None
118
135
 
119
136
 
120
137
  def get_app_cache_dir():
@@ -27,7 +27,7 @@ from shutil import which, copy
27
27
  from typing import Sequence
28
28
 
29
29
  import yaml
30
- from jsonschema import Draft7Validator, draft7_format_checker
30
+ from jsonschema import Draft7Validator
31
31
 
32
32
  from kubernator.api import (KubernatorPlugin, Globs, StripNL,
33
33
  scan_dir,
@@ -85,12 +85,12 @@ HELM_SCHEMA = {
85
85
  }
86
86
  },
87
87
  "type": "object",
88
- "required": ["repository", "chart", "version", "name", "namespace"]
88
+ "required": ["chart", "name", "namespace"]
89
89
  }
90
90
 
91
91
  Draft7Validator.check_schema(HELM_SCHEMA)
92
92
  HELM_VALIDATOR_CLS = validator_with_defaults(Draft7Validator)
93
- HELM_VALIDATOR = HELM_VALIDATOR_CLS(HELM_SCHEMA, format_checker=draft7_format_checker)
93
+ HELM_VALIDATOR = HELM_VALIDATOR_CLS(HELM_SCHEMA, format_checker=Draft7Validator.FORMAT_CHECKER)
94
94
 
95
95
 
96
96
  class HelmPlugin(KubernatorPlugin):
@@ -130,7 +130,7 @@ class HelmPlugin(KubernatorPlugin):
130
130
  helm_tar = tarfile.open(helm_file_dl)
131
131
  helm_tar.extractall(self.helm_dir.name)
132
132
 
133
- copy(Path(self.helm_dir.name)/f"{get_golang_os()}-{get_golang_machine()}"/"helm", helm_file)
133
+ copy(Path(self.helm_dir.name) / f"{get_golang_os()}-{get_golang_machine()}" / "helm", helm_file)
134
134
 
135
135
  os.chmod(helm_file, 0o500)
136
136
  prepend_os_path(self.helm_dir.name)
@@ -215,17 +215,34 @@ class HelmPlugin(KubernatorPlugin):
215
215
 
216
216
  return repository_hash
217
217
 
218
- def _internal_add_helm(self, source, *, repository, chart, version, name, namespace, include_crds,
219
- values=None, values_file=None):
218
+ def _internal_add_helm(self, source, *, chart, name, namespace, include_crds,
219
+ values=None, values_file=None, repository=None, version=None):
220
220
  if values and values_file:
221
221
  raise RuntimeError(f"In {source} either values or values file may be specified, but not both")
222
222
 
223
+ if (repository and chart and chart.startswith("oci://") or
224
+ not repository and chart and not chart.startswith("oci://")):
225
+ raise RuntimeError(
226
+ f"In {source} either repository must be specified or OCI-chart must be used, but not both")
227
+
228
+ if not version and repository:
229
+ raise RuntimeError(f"In {source} version must be specified unless OCI-chart is used")
230
+
223
231
  if values_file:
224
232
  values_file = Path(values_file)
225
233
  if not values_file.is_absolute():
226
234
  values_file = self.context.app.cwd / values_file
227
235
 
228
- repository_hash = self._add_repository(repository)
236
+ version_spec = []
237
+ if repository:
238
+ repository_hash = self._add_repository(repository)
239
+ chart_name = f"{repository_hash}/{chart}"
240
+ else:
241
+ chart_name = chart
242
+
243
+ if version:
244
+ version_spec = ["--version", version]
245
+
229
246
  stdin = DEVNULL
230
247
 
231
248
  if values:
@@ -237,11 +254,11 @@ class HelmPlugin(KubernatorPlugin):
237
254
  resources = self.context.app.run_capturing_out(self.stanza() +
238
255
  ["template",
239
256
  name,
240
- f"{repository_hash}/{chart}",
241
- "--version", version,
257
+ chart_name,
242
258
  "-n", namespace,
243
259
  "-a", ",".join(self.context.k8s.get_api_versions())
244
260
  ] +
261
+ version_spec +
245
262
  (["--include-crds"] if include_crds else []) +
246
263
  (["-f", values_file] if values_file else []) +
247
264
  (["-f", "-"] if values else []),
@@ -29,11 +29,10 @@ from typing import Union, Optional
29
29
 
30
30
  import yaml
31
31
  from jsonschema._format import FormatChecker
32
- from jsonschema._types import int_types, str_types
33
- from jsonschema._validators import required
32
+ from jsonschema._keywords import required
34
33
  from jsonschema.exceptions import ValidationError
35
- from jsonschema.validators import extend, Draft7Validator, RefResolver
36
- from openapi_schema_validator import OAS30Validator
34
+ from jsonschema.validators import extend, Draft7Validator
35
+ from openapi_schema_validator import OAS31Validator
37
36
 
38
37
  from kubernator.api import load_file, FileType, load_remote_file, calling_frame_source
39
38
 
@@ -89,11 +88,11 @@ def is_integer(instance):
89
88
  # bool inherits from int, so ensure bools aren't reported as ints
90
89
  if isinstance(instance, bool):
91
90
  return False
92
- return isinstance(instance, int_types)
91
+ return isinstance(instance, int)
93
92
 
94
93
 
95
94
  def is_string(instance):
96
- return isinstance(instance, str_types)
95
+ return isinstance(instance, str)
97
96
 
98
97
 
99
98
  def type_validator(validator, data_type, instance, schema):
@@ -107,7 +106,7 @@ def type_validator(validator, data_type, instance, schema):
107
106
  yield ValidationError("%r is not of type %s" % (instance, data_type))
108
107
 
109
108
 
110
- K8SValidator = extend(OAS30Validator, validators={
109
+ K8SValidator = extend(OAS31Validator, validators={
111
110
  "type": type_validator,
112
111
  "required": required
113
112
  })
@@ -148,10 +147,6 @@ def check_int_or_string(value):
148
147
  return check_int32(value) if is_integer(value) else is_string(value)
149
148
 
150
149
 
151
- # def make_api_version(group, version):
152
- # return f"{group}/{version}" if group else version
153
-
154
-
155
150
  def to_group_and_version(api_version):
156
151
  group, _, version = api_version.partition("/")
157
152
  if not version:
@@ -663,10 +658,8 @@ class K8SResourcePluginMixin:
663
658
  yield error
664
659
  else:
665
660
  rdef = error
666
- # schema = ChainMap(manifest, self.resource_definitions_schema)
667
661
  k8s_validator = K8SValidator(rdef.schema,
668
- format_checker=k8s_format_checker,
669
- resolver=RefResolver.from_schema(self.resource_definitions_schema))
662
+ format_checker=k8s_format_checker)
670
663
  yield from k8s_validator.iter_errors(manifest)
671
664
 
672
665
  def _get_manifest_rdef(self, manifest):
@@ -744,6 +737,8 @@ class K8SResourcePluginMixin:
744
737
  rdef_paths[path] = actions
745
738
 
746
739
  for k, schema in k8s_def["definitions"].items():
740
+ # This short-circuits the resolution of the references to the top of the document
741
+ schema["definitions"] = k8s_def["definitions"]
747
742
  for key in k8s_resource_def_key(schema):
748
743
  for rdef in K8SResourceDef.from_manifest(key, schema, self.resource_paths):
749
744
  self.resource_definitions[key] = rdef
@@ -20,7 +20,7 @@ import logging
20
20
  from collections.abc import Mapping
21
21
  from pathlib import Path
22
22
 
23
- from jsonschema import Draft7Validator, draft7_format_checker
23
+ from jsonschema import Draft7Validator
24
24
 
25
25
  from kubernator.api import (KubernatorPlugin, Globs, scan_dir, load_file, FileType, calling_frame_source,
26
26
  validator_with_defaults, TemplateEngine, Template)
@@ -86,7 +86,7 @@ TEMPLATE_SCHEMA = {
86
86
 
87
87
  Draft7Validator.check_schema(TEMPLATE_SCHEMA)
88
88
  TEMPLATE_VALIDATOR_CLS: type[Draft7Validator] = validator_with_defaults(Draft7Validator)
89
- TEMPLATE_VALIDATOR: Draft7Validator = TEMPLATE_VALIDATOR_CLS(TEMPLATE_SCHEMA, format_checker=draft7_format_checker)
89
+ TEMPLATE_VALIDATOR: Draft7Validator = TEMPLATE_VALIDATOR_CLS(TEMPLATE_SCHEMA, format_checker=Draft7Validator.FORMAT_CHECKER)
90
90
 
91
91
 
92
92
  class TemplatePlugin(KubernatorPlugin):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kubernator
3
- Version: 1.0.19
3
+ Version: 1.0.20
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.
@@ -38,9 +38,9 @@ Requires-Dist: durationpy>=0.7
38
38
  Requires-Dist: gevent>=21.1.2
39
39
  Requires-Dist: jinja2~=3.1
40
40
  Requires-Dist: json-log-formatter~=0.3
41
- Requires-Dist: jsonpatch~=1.32
42
- Requires-Dist: jsonpath-ng~=1.6.1
43
- Requires-Dist: jsonschema<4.0
41
+ Requires-Dist: jsonpatch~=1.33
42
+ Requires-Dist: jsonpath-ng~=1.7.0
43
+ Requires-Dist: jsonschema~=4.23
44
44
  Requires-Dist: kubernetes~=32.0
45
45
  Requires-Dist: openapi-schema-validator~=0.1
46
46
  Requires-Dist: openapi-spec-validator~=0.3
@@ -4,9 +4,9 @@ durationpy>=0.7
4
4
  gevent>=21.1.2
5
5
  jinja2~=3.1
6
6
  json-log-formatter~=0.3
7
- jsonpatch~=1.32
8
- jsonpath-ng~=1.6.1
9
- jsonschema<4.0
7
+ jsonpatch~=1.33
8
+ jsonpath-ng~=1.7.0
9
+ jsonschema~=4.23
10
10
  kubernetes~=32.0
11
11
  openapi-schema-validator~=0.1
12
12
  openapi-spec-validator~=0.3
@@ -21,7 +21,7 @@ class install(_install):
21
21
  if __name__ == '__main__':
22
22
  setup(
23
23
  name = 'kubernator',
24
- version = '1.0.19',
24
+ version = '1.0.20',
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[![Gitter](https://img.shields.io/gitter/room/karellen/lobby?logo=gitter)](https://gitter.im/karellen/Lobby)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/karellen/kubernator/kubernator.yml?branch=master)](https://github.com/karellen/kubernator/actions/workflows/kubernator.yml)\n[![Coverage Status](https://img.shields.io/coveralls/github/karellen/kubernator/master?logo=coveralls)](https://coveralls.io/r/karellen/kubernator?branch=master)\n\n[![Kubernator Version](https://img.shields.io/pypi/v/kubernator?logo=pypi)](https://pypi.org/project/kubernator/)\n[![Kubernator Python Versions](https://img.shields.io/pypi/pyversions/kubernator?logo=pypi)](https://pypi.org/project/kubernator/)\n[![Kubernator Downloads Per Day](https://img.shields.io/pypi/dd/kubernator?logo=pypi)](https://pypi.org/project/kubernator/)\n[![Kubernator Downloads Per Week](https://img.shields.io/pypi/dw/kubernator?logo=pypi)](https://pypi.org/project/kubernator/)\n[![Kubernator Downloads Per Month](https://img.shields.io/pypi/dm/kubernator?logo=pypi)](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',
@@ -82,9 +82,9 @@ if __name__ == '__main__':
82
82
  'gevent>=21.1.2',
83
83
  'jinja2~=3.1',
84
84
  'json-log-formatter~=0.3',
85
- 'jsonpatch~=1.32',
86
- 'jsonpath-ng~=1.6.1',
87
- 'jsonschema<4.0',
85
+ 'jsonpatch~=1.33',
86
+ 'jsonpath-ng~=1.7.0',
87
+ 'jsonschema~=4.23',
88
88
  'kubernetes~=32.0',
89
89
  'openapi-schema-validator~=0.1',
90
90
  'openapi-spec-validator~=0.3',
File without changes
File without changes