Comments (10)
It's explained in the -h/-help message.
from kubectl-foreach.
-q Disable and accept confirmation prompts ($KUBECTL_FOREACH_DISABLE_PROMPTS)
I am not talking about this one
from kubectl-foreach.
Usage:
kubectl foreach [OPTIONS] [PATTERN]... -- [KUBECTL_ARGS...]
Patterns can be used to match context names from kubeconfig:
(empty): matches all contexts
NAME: matches context with exact name
/PATTERN/: matches context with regular expression
^NAME: remove context with exact name from the matched results
^/PATTERN/: remove contexts matching the regular expression from the results
Options:
-c=NUM Limit parallel executions (default: 0, unlimited)
-I=VAL Replace VAL occurring in KUBECTL_ARGS with context name
-q Disable and accept confirmation prompts ($KUBECTL_FOREACH_DISABLE_PROMPTS)
-h/--help Print help
Examples:
# get nodes on contexts named a b c
kubectl foreach a b c -- get nodes
# get nodes on all contexts named c0..9 except c1 (note the escaping)
kubectl foreach '/^c[0-9]/' ^c1 -- get nodes
# get nodes on all contexts that has "prod" but not "foo"
kubectl foreach /prod/ ^/foo/ -- get nodes
# use 'kubectl tail' plugin to follow logs of pods in contexts named *test*
kubectl foreach -I _ /test/ -- tail --context=_ -l app=foo
from kubectl-foreach.
I do not see the one I am looking for.I apologize if I miss it. Can you please show me
from kubectl-foreach.
I am asking how to hide this information
from kubectl-foreach.
Got it, thanks. I assumed -q
was turning that off as well. I might've left that in there because it helped me a lot, especially to understand if I got the match patterns wrong.
What's the primary use case? Are you trying to parse the output, or is it just visual cosmetics?
from kubectl-foreach.
I am running this command in a loop and the above statement is repeating it. I would like to hide it if it is possible
from kubectl-foreach.
Quickest fix would be fork & delete the code and recompile.
from kubectl-foreach.
Compile and copy the binary to some place? any instructions
from kubectl-foreach.
I can create a PR if you can make a release
from kubectl-foreach.
Related Issues (14)
- detect and fail when replacement character (-I) is not used
- remove colors when piped to another program
- [Idea] Generate structured output
- Some `Fprintf` statements aren't getting logged HOT 2
- [Idea] Being able to find clusters/contexts that have a matching k8s resource HOT 3
- output table misalignment HOT 1
- [Idea] Warn if --context=some-cluster is set HOT 1
- error on 'go install'
- [Idea] allow non-kubectl commands with -I HOT 2
- Document exclusion with regexp in help/usage
- [Idea] Allow configuration of pattern groups through a config file HOT 2
- [Bug] do not pass stdin HOT 1
- swallowing output for non \n terminated lines
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-foreach.