Comments (7)
Can you
export NDEBUG=y
and show the log output?
Does not produce any additional output.
It could very well be a snap problem
Indeed it seems that way—works when using a manually downloaded kubectl
. This snap uses “classic confinement”, which generally means it should behave like a plain package (I have not encountered any permission-related errors in any other usage), but maybe there is some subtle difference here.
from konfig.
This is a snap problem. There's nothing I can do to konfig
to improve this situation.
FWIW, this seems related: moby/moby#31243 (comment)
from konfig.
this could be related to an issue of snap
: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1849753
from konfig.
Hmm.. curious. Can you export NDEBUG=y
and show the log output?
It could very well be a snap problem which I won't be able to reproduce, so if you want to investigate further that would be great.
from konfig.
Also seeing this with the snap version of kubectl. However I get it with the import command:
kubectl konfig import -s kubeconf2.yaml
error: write /dev/stdout: permission denied
from konfig.
What code here is actually trying to use /dev/stdout
? I do not see any in this repo. Is it something being called by this script? Most uses of /dev/stdout
can be replaced (a bit awkwardly) with temp files.
from konfig.
Indeed. https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1849753/comments/26 suggests a workaround: replace
kubectl … > "$tmpcfg"
with the rather cryptic
kubectl … > >(cat > "$tmpcfg")
from konfig.
Related Issues (20)
- Fix extract subcommand name in the doc HOT 2
- Feature Request - Add option to remove configs too HOT 2
- Use github tarball for krew installations
- Not compatible with Windows error HOT 11
- Drop windows support for krew HOT 1
- slight delay in webrtc apps like discord
- error when importing new file HOT 1
- File content should not be expanded during import
- Importing a config from a file without permission causes loss of ~/.kube/config content HOT 1
- Solve merge conflicts on duplicate data HOT 1
- Error importing kubeconfig files with "--" in its name HOT 10
- can't import konfig anymore HOT 2
- How to install on Windows HOT 1
- How to customize agnoster theme
- Plugin installed with krew gets a permission denied error to write to /dev/stdout HOT 3
- "error: write /dev/stdout: permission denied" While copying the output yaml file into new file
- import does nothing when existing context exists, and says nothing
- Macos Monterey support (12.5.1 21G83) HOT 1
- import command fails when filename contains '-' HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from konfig.