Coder Social home page Coder Social logo

Comments (7)

jglick avatar jglick commented on July 24, 2024 2

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.

corneliusweig avatar corneliusweig commented on July 24, 2024 1

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.

guettli avatar guettli commented on July 24, 2024 1

this could be related to an issue of snap: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1849753

from konfig.

corneliusweig avatar corneliusweig commented on July 24, 2024

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.

Routhinator avatar Routhinator commented on July 24, 2024

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.

jglick avatar jglick commented on July 24, 2024

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.

jglick avatar jglick commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.