You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you do?
I'm trying to use operator-sdk on Windows. After fixing a bug in Go itself that stops this from working correctly, I tried to do a "make local".
What did you expect to see?
The "make local" built everything, then failed because the name of the file it had built was "my-operator" rather than "my-operator.exe".
What did you see instead? Under which circumstances?
It should work just the same as it does on Linux/macOS.
Are you writing your operator in ansible, helm, or go? Go
Possible Solution
Fix cmd/operator-sdk/run/local.go so that it appends .exe to outputBinName on Windows.
Additional context
You need a fix for gengo issue #166 before any of this will work; otherwise the operator-sdk generate k8s step will generate files in the wrong place.
The text was updated successfully, but these errors were encountered:
al45tair
added a commit
to al45tair/operator-sdk
that referenced
this issue
Jan 29, 2020
On Windows, we need to add the .exe suffix to the executable that is
generated by the operator-sdk run --local command, otherwise it will
fail because the file doesn't have an executable extension.
Fixesoperator-framework#2480
On Windows, we need to add the .exe suffix to the executable that is
generated by the operator-sdk run --local command, otherwise it will
fail because the file doesn't have an executable extension.
Fixes#2480
* CHANGELOG.md: add bugfix
Co-authored-by: Camila Macedo <[email protected]>
Bug Report
What did you do?
I'm trying to use operator-sdk on Windows. After fixing a bug in Go itself that stops this from working correctly, I tried to do a "make local".
What did you expect to see?
The "make local" built everything, then failed because the name of the file it had built was "my-operator" rather than "my-operator.exe".
What did you see instead? Under which circumstances?
It should work just the same as it does on Linux/macOS.
Environment
operator-sdk version: 87787d1
go version:
go version go1.13.7 windows/amd64
Kubernetes version information:
Kubernetes cluster kind: various
Are you writing your operator in ansible, helm, or go? Go
Possible Solution
Fix
cmd/operator-sdk/run/local.go
so that it appends.exe
tooutputBinName
on Windows.Additional context
You need a fix for gengo issue #166 before any of this will work; otherwise the
operator-sdk generate k8s
step will generate files in the wrong place.The text was updated successfully, but these errors were encountered: