blendle / kns Goto Github PK
View Code? Open in Web Editor NEWquick Kubernetes Namespace Switcher
License: ISC License
quick Kubernetes Namespace Switcher
License: ISC License
I have the following Dockerfile:
WORKDIR /root
RUN apk add --no-cache \
bash \
jq \
curl \
git \
openssl \
groff \
python3 && \
pip3 install --upgrade pip && \
pip3 install awscli==1.16.86
RUN cd /usr/local/bin && \
curl -sSO https://storage.googleapis.com/kubernetes-release/release/v1.12.0/bin/linux/amd64/kubectl && \
chmod u+x kubectl && \
curl -sSO https://raw.githubusercontent.com/blendle/kns/master/bin/kns && \
chmod u+x kns && \
curl -sSO https://raw.githubusercontent.com/blendle/kns/master/bin/ktx && \
chmod u+x ktx && \
git clone --quiet --depth 1 https://github.com/junegunn/fzf.git ~/.fzf && \
~/.fzf/install && \
ln -s /root/.fzf/bin/fzf /usr/local/bin/fzf
ENV PAGER='cat'
ENTRYPOINT ["/bin/bash"]
If I run ktx
or kns
from a bash prompt inside the container, I can see the contexts and namespaces on the left side of the screen. But on the right side of the screen I see:
sh: /usr/local/bin/../helpers/ktx-preview.sh: not found
How can I fix this?
I just installed this, using brew, on my WSL Debian bookworm insance and when I ran the command I got this error:
zsh: /home/linuxbrew/.linuxbrew/bin/kns: bad interpreter: /bin/sh^M: no such file or directory
current-context
entry from ~/.kube/config
ktx
An error is shown (1):
error: current-context is not set
The tool opens the available contexts as usual.
When you run kns <namespace>
without a working connection to the current context, kns should maybe just set the namespace? Right now it seems to just time-out after a while.
I receive the following errors when trying to run the first homebrew command:
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 1 formula.
==> Tapping blendle/blendle
Cloning into '/usr/local/Homebrew/Library/Taps/blendle/homebrew-blendle'...
remote: Enumerating objects: 306, done.
remote: Counting objects: 100% (41/41), done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 306 (delta 21), reused 24 (delta 12), pack-reused 265
Receiving objects: 100% (306/306), 42.88 KiB | 2.38 MiB/s, done.
Resolving deltas: 100% (143/143), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/blendle/homebrew-blendle/Formula/kubecrt.rb
kubecrt: Calling `cellar` in a bottle block is disabled! Use `brew style --fix` on the formula to update the style or use `sha256` with a `cellar:` argument instead.
Please report this issue to the blendle/blendle tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/blendle/homebrew-blendle/Formula/kubecrt.rb:11
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/blendle/homebrew-blendle/Formula/epp.rb
epp: Calling `cellar` in a bottle block is disabled! Use `brew style --fix` on the formula to update the style or use `sha256` with a `cellar:` argument instead.
Please report this issue to the blendle/blendle tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/blendle/homebrew-blendle/Formula/epp.rb:11
Error: Cannot tap blendle/blendle: invalid syntax in tap!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.