Comments (3)
This issue should be fixed by the latest fix. @2rs2ts Would you be able to verify this fix against master branch?
You can copy kubectl-view-utilization from master branch (chmod +x kubectl-view-utilization) and execute in current derectory ./kubectl-view-utilization instead using command kubectl view-utilization
Effectively in order to test your for loop command would looks like this
for ctx in $(kubectx) ; do ./kubectl-view-utilization --context $ctx -h ; done
from kubectl-view-utilization.
Thank you for reporting this bug. Looks like there is error when checking if context exists function.
https://github.com/etopeter/kubectl-view-utilization/blob/master/kubectl-view-utilization#L146
test_kubectl_context() {
local output
# Check if context exists in kubeconfig
output=$(kubectl config get-contexts ${VIEW_UTILIZATION_CONTEXT} --no-headers | awk '{print $1;}')
if [ "${output}" == "${VIEW_UTILIZATION_CONTEXT}" ]; then
context="--context=${VIEW_UTILIZATION_CONTEXT}"
else
echo "Context error"
exit 1
fi
}
Fix for that should be simple.
from kubectl-view-utilization.
I can confirm your fix works. Thanks for the quick patch!
from kubectl-view-utilization.
Related Issues (20)
- Bad resource computation for pods. HOT 6
- Feature request: json output HOT 1
- What about other resources like ephemeral storage or some custom? HOT 1
- Utilization % doesn't change when nodes are drained HOT 3
- Feature request: support --context flag HOT 4
- Show node breakdown view HOT 2
- Node utilization visualization HOT 1
- Plugin should hide headers optionally --no-headers HOT 1
- Installation with brew HOT 2
- memory graph not showing low utilization
- [krew] Distribute with license HOT 2
- Memory report showing error HOT 8
- `kubectl view-utilization` broken HOT 2
- Problems with memory output HOT 4
- human readable format doesn't work for CPU.allocatable HOT 1
- Node cpu Request not reporting correct
- Add binary for Apple Silicone
- Add the ability to sort results by column name
- Add the ability to show resource request / limits by pod in a given namespace?
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 kubectl-view-utilization.