New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flux build/diff: fs-security-constraint error #2785
Comments
@Thaval can we get the root of |
@souleb What do you mean: The files and contents or the absolute path of ./corpsol? |
The absolute path of |
What's the current state? |
Hello There. I felt behind, but I still plan to fix this. |
Alright, thanks! :) Could you reproduce this? Let me know if you need more information. |
getting the same error for
same error for any kustomizations (I only use flux ones, not kustomize ones)\path combo |
Fixing this on Windows is not going to be easy as none of the Flux maintainers use MSFT products. I suggest installing the Flux CLI on Windows Subsystem for Linux which has no issues. |
can you, perhaps, point me to the code that is throwing? I'm willing to try, however I'm not really good with go :( |
The error comes from our own filesystem implementation https://github.com/fluxcd/pkg/blob/main/kustomize/filesys/fs_secure.go |
thanks, i'll try looking at it, but at a glance it doesn't look like something I'll be able to figure out xD |
@stefanprodan Ok, understand this. Totally new to golang, but I only use Windows. However, is there a guide on how to kickstart flux development? Would like to know how to run the code and test changes. Just a note for myself: |
⋊> ~ make build-dev 10:14:28
⋊> ~ ./bin/flux diff kustomization ... |
this doesnt build a binary for windows? at least for me. i think this works to build for windows: |
okay, with this build it is actually working! sweeeet.
|
Describe the bug
When running
flux build ...
, an error is shown that indicates security issue. For example:will display the following error
The kustomization.yaml looks like this
Steps to reproduce
flux build kustomization my-app --path ./corpsol --kustomization-file ./corpsol/kustomization.yaml
Expected behavior
The kustomization should be built successfully, so that a preview is shown.
Screenshots and recordings
No response
OS / Distro
Windows 10
Flux version
v0.30.2
Flux check
flux check
► checking prerequisites
✔ Kubernetes 1.22.6 >=1.20.6-0
► checking controllers
✔ helm-controller: deployment ready
► ghcr.io/fluxcd/helm-controller:v0.21.0
✔ kustomize-controller: deployment ready
► ghcr.io/fluxcd/kustomize-controller:v0.25.0
✔ notification-controller: deployment ready
► ghcr.io/fluxcd/notification-controller:v0.23.5
✔ source-controller: deployment ready
► ghcr.io/fluxcd/source-controller:v0.24.4
✔ all checks passed
Git provider
No response
Container Registry provider
No response
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: