nyl 0.0.4__tar.gz → 0.0.5__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.
- {nyl-0.0.4 → nyl-0.0.5}/PKG-INFO +1 -1
- {nyl-0.0.4 → nyl-0.0.5}/pyproject.toml +1 -1
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/commands/template.py +10 -1
- {nyl-0.0.4 → nyl-0.0.5}/README.md +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/__init__.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/commands/__init__.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/commands/crds.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/commands/new.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/commands/profile.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/commands/secrets.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/commands/tun.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/generator/__init__.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/generator/dispatch.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/generator/dispatch_test.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/generator/helmchart.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/generator/statefulsecret.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/profiles/__init__.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/profiles/config.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/profiles/kubeconfig.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/profiles/tunnel.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/project/config.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/resources/__init__.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/resources/applyset.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/resources/applyset_test.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/resources/helmchart.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/resources/statefulsecret.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/secrets/__init__.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/secrets/config.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/secrets/null.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/secrets/sops.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/secrets/sops_test.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/tools/fs.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/tools/kubectl.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/tools/kvstore.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/tools/shell.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/tools/typer.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/src/nyl/tools/types.py +0 -0
- {nyl-0.0.4 → nyl-0.0.5}/tests/__init__.py +0 -0
{nyl-0.0.4 → nyl-0.0.5}/PKG-INFO
RENAMED
|
@@ -46,6 +46,12 @@ def template(
|
|
|
46
46
|
"Implies `--no-applyset-part-of`. When an ApplySet is defined in the source file, it will be applied "
|
|
47
47
|
"separately. Note that this option implies `kubectl --prune`.",
|
|
48
48
|
),
|
|
49
|
+
automatic_applyset: Optional[bool] = Option(
|
|
50
|
+
None,
|
|
51
|
+
help="Specify whether an automatic ApplySet should be generated for the template files. If the option is not "
|
|
52
|
+
"specified, the option will be derived from the `nyl-project.yaml`, or alternative, fall back to the global "
|
|
53
|
+
"default (which is `true`).",
|
|
54
|
+
),
|
|
49
55
|
applyset_part_of: bool = Option(
|
|
50
56
|
True,
|
|
51
57
|
help="Add the 'applyset.kubernetes.io/part-of' label to all resources belonging to an ApplySet (if declared). "
|
|
@@ -84,6 +90,9 @@ def template(
|
|
|
84
90
|
load_kube_config()
|
|
85
91
|
|
|
86
92
|
project = ProjectConfig.load()
|
|
93
|
+
if automatic_applyset is None:
|
|
94
|
+
automatic_applyset = project.config.automatic_applyset
|
|
95
|
+
|
|
87
96
|
if project.file:
|
|
88
97
|
state_dir = project.file.parent / ".nyl"
|
|
89
98
|
else:
|
|
@@ -134,7 +143,7 @@ def template(
|
|
|
134
143
|
applyset = ApplySet.load(manifest)
|
|
135
144
|
source.manifests.remove(manifest)
|
|
136
145
|
|
|
137
|
-
if not applyset and
|
|
146
|
+
if not applyset and automatic_applyset:
|
|
138
147
|
if len(namespaces) > 1:
|
|
139
148
|
logger.opt(ansi=True).error(
|
|
140
149
|
"Multiple namespaces defined in <yellow>{}</>, but automatic ApplySet generation is enabled. "
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|