nyl 0.9.3__tar.gz → 0.9.4__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.9.4/.changelog/0.9.4.toml +7 -0
- {nyl-0.9.3 → nyl-0.9.4}/PKG-INFO +1 -1
- {nyl-0.9.3 → nyl-0.9.4}/docs/content/changelog.md +8 -0
- {nyl-0.9.3 → nyl-0.9.4}/pyproject.toml +1 -1
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/commands/template.py +11 -3
- {nyl-0.9.3 → nyl-0.9.4}/uv.lock +1 -1
- {nyl-0.9.3 → nyl-0.9.4}/.changelog/0.7.0.toml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/.changelog/0.7.1.toml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/.changelog/0.7.2.toml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/.changelog/0.8.0.toml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/.changelog/0.8.1.toml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/.changelog/0.9.0.toml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/.changelog/0.9.1.toml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/.changelog/0.9.2.toml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/.changelog/0.9.3.toml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/.envrc +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/.github/workflows/docker.yaml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/.github/workflows/docs.yaml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/.github/workflows/python.yaml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/.github/workflows/update-flake-lock.yaml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/.gitignore +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/DEPRECATION_NOTICE.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/README.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/argocd-cmp/Dockerfile +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/argocd-cmp/README.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/argocd-cmp/plugin.yaml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/argocd-with-nyl/.envrc +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/argocd-with-nyl/.secrets.yaml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/argocd-with-nyl/.sops.yaml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/argocd-with-nyl/README.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/argocd-with-nyl/argocd.yaml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/argocd-with-nyl/nyl-project.yaml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/argocd-with-nyl/nyl-secrets.yaml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/content/index.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/content/reference/applysets.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/content/reference/argocd-plugin.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/content/reference/cluster-connectivity.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/content/reference/configuration/environment.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/content/reference/configuration/profiles.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/content/reference/configuration/projects.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/content/reference/configuration/secrets.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/content/reference/configuration-api/profiles.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/content/reference/configuration-api/secrets.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/content/reference/glossary.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/content/reference/templating/basics.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/content/reference/templating/components.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/content/reference/templating/inlining/helmcharts.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/content/reference/templating/inlining/overview.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/content/reference/templating/inlining/postprocessor.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/content/reference/templating/locals.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/content/reference/templating/secrets.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/mkdocs.yml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/pyproject.toml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/docs/uv.lock +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/example/manifests/postgres.yaml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/example/nyl-profiles.toml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/example/nyl-profiles.yaml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/example/nyl-secrets.yaml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/example/secrets.yaml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/flake.lock +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/flake.nix +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/nix/uv.nix +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/renovate.json +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/slap.toml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/kubernetes/README.md +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/kubernetes/__init__.pyi +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/kubernetes/dynamic/__init__.pyi +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/kubernetes/dynamic/client.pyi +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/kubernetes/dynamic/discovery.pyi +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/kubernetes/dynamic/exceptions.pyi +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/kubernetes/dynamic/resource.pyi +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/kubernetes/watch/__init__.pyi +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/kubernetes/watch/watch.pyi +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/__init__.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/commands/__init__.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/commands/add.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/commands/argocd.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/commands/crds.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/commands/new.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/commands/profile.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/commands/run.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/commands/secrets.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/commands/tools/__init__.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/commands/tools/bcrypt.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/commands/tools/sops.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/commands/tun.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/generator/__init__.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/generator/components.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/generator/dispatch.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/generator/dispatch_test.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/generator/helmchart.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/generator/helmchart_test.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/generator/statefulsecret.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/profiles/__init__.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/profiles/config.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/profiles/config_test.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/profiles/kubeconfig.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/profiles/tunnel.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/project/config.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/resources/__init__.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/resources/applyset.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/resources/applyset_test.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/resources/helmchart.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/resources/helmchart_test.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/resources/placeholder.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/resources/postprocessor.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/resources/postprocessor_test.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/resources/statefulsecret.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/secrets/__init__.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/secrets/config.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/secrets/config_test.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/secrets/kubernetes.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/secrets/null.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/secrets/sops.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/secrets/sops_test.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/templating.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/templating_test.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/tools/di.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/tools/fs.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/tools/fs_test.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/tools/kubectl.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/tools/kubernetes.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/tools/kvstore.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/tools/loads.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/tools/logging.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/tools/shell.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/tools/testing.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/tools/typer.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/tools/types.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/src/nyl/tools/yaml.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/testdata/helm-test-chart/Chart.yaml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/testdata/helm-test-chart/templates/sa.yaml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/testdata/helm-test-chart/values.yaml +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/tests/__init__.py +0 -0
- {nyl-0.9.3 → nyl-0.9.4}/tests/conftest.py +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
release-date = "2025-04-22"
|
|
2
|
+
|
|
3
|
+
[[entries]]
|
|
4
|
+
id = "296fd4bd-785e-4ca8-bebf-245b770bf1ef"
|
|
5
|
+
type = "fix"
|
|
6
|
+
description = "Fix previously breaking change that would cause a KeyError when the NYL_PROFILE environment variable was not set in the ArgoCD plugin when the project has no default profile."
|
|
7
|
+
author = "@NiklasRosenstein"
|
{nyl-0.9.3 → nyl-0.9.4}/PKG-INFO
RENAMED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 0.9.4 (2025-04-22)
|
|
2
|
+
|
|
3
|
+
<table><tr><th>Type</th><th>Description</th><th>PR</th><th>Issues</th><th>Author</th></tr>
|
|
4
|
+
<tr><td>Fix</td><td>
|
|
5
|
+
|
|
6
|
+
Fix previously breaking change that would cause a KeyError when the NYL_PROFILE environment variable was not set in the ArgoCD plugin when the project has no default profile.</td><td></td><td></td><td>@NiklasRosenstein</td></tr>
|
|
7
|
+
</table>
|
|
8
|
+
|
|
1
9
|
## 0.9.3 (2025-04-22)
|
|
2
10
|
|
|
3
11
|
<table><tr><th>Type</th><th>Description</th><th>PR</th><th>Issues</th><th>Author</th></tr>
|
|
@@ -218,9 +218,17 @@ def template(
|
|
|
218
218
|
)
|
|
219
219
|
|
|
220
220
|
# Seed the template engine with the profile values.
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
221
|
+
# If no profile was specified via --profile or ARGOCD_ENV_NYL_PROFILE, we fall back to the default profile.
|
|
222
|
+
# However, if the default profile does not exist, we don't want to raise an error, as this would be a
|
|
223
|
+
# breaking change for users who upgrade Nyl without having a default profile defined.
|
|
224
|
+
# If a profile *was* specified and it doesn't exist, we *do* want to raise an error.
|
|
225
|
+
profile_config = PROVIDER.get(ProfileManager).config.profiles.get(profile or DEFAULT_PROFILE)
|
|
226
|
+
if profile_config is not None:
|
|
227
|
+
vars(template_engine.values).update(profile_config.values)
|
|
228
|
+
elif profile is not None:
|
|
229
|
+
# A profile was explicitly requested, but it doesn't exist. Raise the error.
|
|
230
|
+
raise KeyError(f"Profile '{profile}' not found in nyl-profiles.yaml")
|
|
231
|
+
# else: No profile was requested, and the default profile doesn't exist. Do nothing.
|
|
224
232
|
|
|
225
233
|
# Look for objects that contain local variables and feed them into the template engine.
|
|
226
234
|
for manifest in source.manifests[:]:
|
{nyl-0.9.3 → nyl-0.9.4}/uv.lock
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
|
{nyl-0.9.3 → nyl-0.9.4}/.envrc
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|