-
Notifications
You must be signed in to change notification settings - Fork 706
Open
Description
Describe the bug
flux build kustomization fails on Windows when using a --path other than .. On Linux, all invocations with ., a relative path or an absolute path for --path succeed and correctly render the manifests.
Steps to reproduce
- Create a local folder
testwith akustomization.yamlkind: Kustomization resources: - test.yaml - Create
test.yamlin thetestfolder with some test manifest like:kind: Pod metadata: name: test-pod namespace: default spec: containers: - name: test-container image: nginx:latest - Create a
test.yamlwith:kind: Kustomization metadata: name: test namespace: default cdinto the test folder on Windows and runflux build kustomization test --namespace default --kustomization-file ..\test.yaml --path . --dry-run- The commands succeeds and prints the pod manifest
cd ..and thenflux build kustomization test --namespace default --kustomization-file .\test.yaml --path .\test\ --dry-run- Observe the error
✗ failed to generate kustomization.yaml: failed to save original kustomization.yaml: open test\test\kustomization.yaml.original: The system cannot find the path specified. <nil> <nil> - Run
flux build kustomization test --namespace default --kustomization-file C:\<absolute-path>\test.yaml --path C:\<absolute-path>\test\ --dry-run - Observe the error
✗ failed to generate kustomization.yaml: failed to save original kustomization.yaml: open C:\<absolute-path>\test\C:\<absolute-path>\test\kustomization.yaml.original: The filename, directory name, or volume label syntax is incorrect. <nil> <nil>
Expected behavior
All invocations with ., a relative path or an absolute path return the rendered manifest
Screenshots and recordings
No response
OS / Distro
Windows 11
Flux version
v2.7.5
Flux check
N/A
Git provider
No response
Container Registry provider
No response
Additional context
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
No labels