Troubleshooting Components
Component Not Found
Symptom:
- Render/diff/apply fails to resolve a component kind.
Checks:
- Confirm
apiVersionis exactlycomponents.nyl.niklasrosenstein.github.com/v1for Component resources. - Confirm
kindmatches<apiVersion>/<kind>directory layout. - Confirm
Chart.yamlexists at<components_search_path>/<kind>/Chart.yaml. - Confirm
components_search_pathsare valid from thenyl.tomllocation.
Example expected path for kind: example/v1/Nginx:
components/example/v1/Nginx/Chart.yaml
Wrong Chart Selected
Symptom:
- Nyl resolves a shared component when repo-local component was expected.
Cause:
- Search paths are ordered; first match wins.
Fix:
- Put preferred path earlier in
project.components_search_paths.
Alias Not Applied
Symptom:
- Resource is treated as a normal Kubernetes resource instead of a chart-backed resource.
Checks:
- Alias key is exact:
<apiVersion>/<kind>. - Manifest
apiVersionandkindexactly match key case and spelling. - Alias target uses a valid local path or remote shortcut syntax.
Filtering Doesn’t Show Generated Resources
Symptom:
-c ConfigMapmisses ConfigMaps produced by Helm rendering.
Cause:
- Filtering runs before expansion.
Fix:
- Filter top-level chart resources (
-c HelmChartor matching component resources), then inspect rendered output.
Fast Validation Loop
Use:
nyl validate --strict
nyl render <manifest-file>
This catches path/config issues before cluster-facing commands.